Skip to content

Commit 7f5b4bc

Browse files
committed
feat: rename to Prexus
1 parent 411f5da commit 7f5b4bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2595
-638
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
_site/*
22
*.scssc
33
Gemfile.lock
4-
jekyll-theme-rop-*.gem
4+
prexus-*.gem

.rspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--require spec_helper
2+
--exclude-pattern "spec/fixtures/**/*_spec.rb"
3+
--format documentation
4+
--color

.rubocop_todo.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
# Include: **/*.gemspec
1212
Gemspec/RequiredRubyVersion:
1313
Exclude:
14-
- 'jekyll-theme-rop.gemspec'
14+
- 'prexus.gemspec'
1515

1616
# Offense count: 2
1717
# Configuration parameters: AllowedParentClasses.
1818
Lint/MissingSuper:
1919
Exclude:
20-
- 'lib/rop/filterable_index.rb'
21-
- 'lib/rop/png_diagram_page.rb'
20+
- 'lib/prexus/filterable_index.rb'
21+
- 'lib/prexus/png_diagram_page.rb'
2222

2323
# Offense count: 11
2424
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
@@ -69,7 +69,7 @@ Naming/FileName:
6969
Exclude:
7070
- 'Rakefile.rb'
7171
- 'lib/jekyll-theme-open-project.rb'
72-
- 'lib/jekyll-theme-rop.rb'
72+
- 'lib/prexus.rb'
7373

7474
# Offense count: 1
7575
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
@@ -80,24 +80,24 @@ Naming/FileName:
8080
Naming/PredicateName:
8181
Exclude:
8282
- 'spec/**/*'
83-
- 'lib/rop/project_reader.rb'
83+
- 'lib/prexus/project_reader.rb'
8484

8585
# Offense count: 1
8686
Style/ClassVars:
8787
Exclude:
88-
- 'lib/rop/project_reader.rb'
88+
- 'lib/prexus/project_reader.rb'
8989

9090
# Offense count: 9
9191
# Configuration parameters: AllowedConstants.
9292
Style/Documentation:
9393
Exclude:
9494
- 'spec/**/*'
9595
- 'test/**/*'
96-
- 'lib/jekyll-theme-rop.rb'
97-
- 'lib/rop/filterable_index.rb'
98-
- 'lib/rop/png_diagram_page.rb'
99-
- 'lib/rop/project_reader.rb'
100-
- 'lib/rop/spec_builder.rb'
96+
- 'lib/prexus.rb'
97+
- 'lib/prexus/filterable_index.rb'
98+
- 'lib/prexus/png_diagram_page.rb'
99+
- 'lib/prexus/project_reader.rb'
100+
- 'lib/prexus/spec_builder.rb'
101101

102102
# Offense count: 5
103103
# Configuration parameters: AllowedVariables.

Gemfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# frozen_string_literal: true
22

33
source 'https://rubygems.org'
4+
5+
# Specify your gem's dependencies in prexus.gemspec
46
gemspec
57

6-
gem 'bundler'
7-
gem 'rake'
8-
gem 'rubocop'
8+
gem 'rake', '~> 13.0'
9+
10+
group :development, :test do
11+
gem 'jekyll-feed', '~> 0.15'
12+
gem 'rspec', '~> 3.0'
13+
gem 'rspec-mocks', '~> 3.0'
14+
gem 'rubocop', '~> 1.21'
15+
gem 'simplecov', '~> 0.21'
16+
gem 'thor', '~> 1.0'
17+
gem 'vcr', '~> 6.0'
18+
gem 'webmock', '~> 3.0'
19+
end

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ prexus:
5858
api_key: '0193b06d928ee52f653c6e5ea95d9f97'
5959
index_name: 'rnpgp'
6060

61-
6261
tagline: >-
6362
Powering end-to-end email encryption in Mozilla Thunderbird. LibrePGP secure.
6463
@@ -82,7 +81,7 @@ prexus:
8281
email: open.source@ribose.com
8382
contact_email: open.source@ribose.com
8483

85-
84+
# Project sites do not set parent_hub
8685
parent_hub:
8786
git_repo_url: https://github.com/riboseinc/open.ribose.com
8887
home_url: https://open.ribose.com/
@@ -362,12 +361,12 @@ hub site can also have its own software and specifications.
362361

363362
The gem provides the following Ruby components:
364363

365-
- **`Rop::Configuration`**: Centralized configuration management with validation
366-
- **`Rop::GitService`**: Repository operations, caching, and cleanup
367-
- **`Rop::HubSiteReader`**: Hub site content aggregation and processing
368-
- **`Rop::ProjectSiteReader`**: Project site functionality and parent hub integration
369-
- **`Rop::CLI`**: Command-line interface for cache management
370-
- **`Rop::Metanorma`**: Metanorma integration utilities
364+
- **`Prexus::Configuration`**: Centralized configuration management with validation
365+
- **`Prexus::GitService`**: Repository operations, caching, and cleanup
366+
- **`Prexus::HubSiteReader`**: Hub site content aggregation and processing
367+
- **`Prexus::ProjectSiteReader`**: Project site functionality and parent hub integration
368+
- **`Prexus::CLI`**: Command-line interface for cache management
369+
- **`Prexus::Metanorma`**: Metanorma integration utilities
371370

372371
## Migrating from `jekyll-theme-open-project` to the new `prexus`
373372

_config.yml

Lines changed: 100 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
markdown: kramdown
2-
3-
includes_dir: .
1+
# Hub site configuration for testing
2+
url: "https://riboseinc.github.io/prexus"
43

5-
permalink: /blog/:year-:month-:day-:title/
6-
7-
# algolia_search:
8-
# api_key: ''
9-
# index_name: ''
10-
# Uncomment this if you want to use Algolia’s search.
11-
# It’s free for open-source projects.
4+
markdown: kramdown
125

136
exclude:
147
- home-hero.html
@@ -21,19 +14,12 @@ exclude:
2114
- /_projects/*/assets/css/*
2215
- /_projects/**/docs/*
2316
- .sass-cache/
24-
25-
external_links:
26-
selector: 'body.site--project main a, body.site--hub.layout--post main a'
27-
ignored_selectors:
28-
- .layout--home a
29-
- a[href*=travis]
30-
- a[href*=coverity]
31-
- a[href*=codecov]
32-
33-
landing_priority: [software, specs, blog]
17+
- Gemfile*
18+
- README.*
19+
- vendor # for deployment
3420

3521
plugins:
36-
- jekyll-theme-rop
22+
- prexus
3723
- jekyll-seo-tag
3824
- jekyll-sitemap
3925
- jekyll-data
@@ -42,6 +28,91 @@ plugins:
4228
- kramdown-parser-gfm
4329
- kramdown-syntax-coderay
4430

31+
# Prexus site configuration
32+
prexus:
33+
title: Prexus
34+
description: Managing a nexus of open-source software and specification projects.
35+
# The above two are used by jekyll-seo-tag for things such as
36+
# `<title>` and `<meta>` tags, as well as elsewhere by the theme.
37+
38+
permalink: /blog/:year-:month-:day-:title/
39+
40+
# algolia_search:
41+
# api_key: '0193b06d928ee52f653c6e5ea95d9f97'
42+
# index_name: 'rnpgp'
43+
44+
landing_priority:
45+
- software
46+
- custom_intro
47+
- specs
48+
- blog
49+
50+
external_links:
51+
selector: 'body.site--project main a, body.site--hub.layout--post main a'
52+
ignored_selectors:
53+
- .layout--home a
54+
- a[href*=travis]
55+
- a[href*=coverity]
56+
- a[href*=codecov]
57+
58+
fontawesome_cdn:
59+
version: v5.8.1
60+
integrity: "sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ"
61+
# Only applies if no_auto_fontawesome is not set.
62+
63+
no_auto_fontawesome: false
64+
# If set to yes, site (with default design) must specify <script> elements
65+
# that make required FA styles available in SVG mode.
66+
67+
tagline: >-
68+
Managing a nexus of open-source software and specification projects.
69+
70+
pitch: >-
71+
Prexus provides a Jekyll theme (with accompanying plugin code) aiming to help
72+
organizations and individuals present open-source software and specifications in
73+
a navigable and elegant way.
74+
75+
76+
author: "Ribose Inc."
77+
78+
authors:
79+
- name: Ribose Inc.
80+
email: open.source@ribose.com
81+
contact_email: open.source@ribose.com
82+
83+
parent_hub:
84+
git_repo_url: https://github.com/riboseinc/open.ribose.com
85+
home_url: https://open.ribose.com/
86+
87+
social:
88+
links:
89+
- {social link 1 URL}
90+
- {social link 2 URL}
91+
92+
legal:
93+
name: Ribose
94+
tos_link: https://www.ribose.com/terms-of-service
95+
privacy_policy_link: https://www.ribose.com/privacy-policy
96+
97+
home_calls_to_action:
98+
- { url: "/about", title: "About Prexus" }
99+
100+
github_repo_url: https://github.com/riboseinc/prexus
101+
102+
tag_namespaces:
103+
software:
104+
writtenin: "Written in"
105+
bindingsfor: "Bindings for"
106+
user: "Target user"
107+
interface: "Interface"
108+
specs:
109+
audience: "Audience"
110+
completion_status: "Status"
111+
112+
# Jekyll configuration
113+
# includes_dir: '_includes'
114+
115+
# Must be set for Prexus
45116
collections:
46117
projects:
47118
output: false
@@ -53,21 +124,16 @@ collections:
53124
permalink: /specs/:path/
54125
posts:
55126
output: true
56-
permalink: /blog/:month-:day-:year/:title/
127+
permalink: /blog/:year-:month-:day-:title/
57128
pages:
58129
output: true
59130
permalink: /:name/
60131

61-
fontawesome_cdn:
62-
version: v5.8.1
63-
integrity: "sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ"
64-
# Only applies if no_auto_fontawesome is not set.
65-
66-
no_auto_fontawesome: false
67-
# If set to yes, site (with default design) must specify <script> elements
68-
# that make required FA styles available in SVG mode.
69-
132+
# Must be set for Prexus
70133
defaults:
134+
# Theme defaults.
135+
# MUST be duplicated from theme’s _config.yml
136+
# (does not get inherited, unlike the collections hash)
71137
- scope:
72138
path: ""
73139
values:
@@ -87,3 +153,6 @@ defaults:
87153
type: specs
88154
values:
89155
layout: spec
156+
157+
url: {link to production site URL, without trailing slash}
158+

_config_test.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

_includes/assets/symbol.svg

Lines changed: 19 additions & 0 deletions
Loading

_includes/custom-intro.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<section class="summary">
2+
<p>
3+
Ribose proudly announces availability of Prexus.
4+
</p>
5+
</section>

_includes/featured_posts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{% assign posts = site.posts_combined %}
1+
{% assign posts = site.prexus.posts_combined %}
22

33
<section class="featured-posts">
44
<h2 class="title">From the <a href="/blog/">Blog</a></h2>
55

66
<div class="items">
7-
{% for item in posts | limit: site.max_featured_posts %}
7+
{% for item in posts | limit: site.prexus.max_featured_posts %}
88
{% include post-card.html post=item %}
99
{% endfor %}
1010
</div>

0 commit comments

Comments
 (0)