jekyll-theme-open-project 2.1.1 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +66 -17
- data/_includes/item-doc-page.html +1 -1
- data/_includes/legal.html +1 -1
- data/_layouts/docs-base.html +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bffbb3817e8009e2863eae303aa8430a46e9e75cf98553220eaa7789c2fd4de
|
4
|
+
data.tar.gz: db7bd76912fe826732d2a9d0312126e02818f6fe46d314bae228cc0998a79d1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3589a0fa9f0827d510d373ffc5678c4a667e3cc109140d098e4d6380cbf3c219b9086145e4e4a5c6d214ec4162a044f3558a608970c2543f24d08c966230cca5
|
7
|
+
data.tar.gz: 281fc34190e88d364e9b377b837a9fe8f88729094433dcbb5a8082a68ec9763a05aa6f1957c51788cadffb82ea2ef838f8e80baac6d6d32d7e497120bd2ea6e7
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -5,9 +5,11 @@ aiming to help organizations and individuals present
|
|
5
5
|
open-source software and specifications in a navigable and elegant way.
|
6
6
|
|
7
7
|
Open Project fits two types of sites:
|
8
|
-
that describe one individual project, and that combine projects into sort of an open hub.
|
9
8
|
|
10
|
-
|
9
|
+
* a site that describes one individual project
|
10
|
+
* a site that combine projects into sort of an open hub.
|
11
|
+
|
12
|
+
**Demo**: See [Ribose Open](https://open.ribose.com/) project sites -- for example,
|
11
13
|
[Metanorma](https://www.metanorma.com),
|
12
14
|
[RNP](https://www.rnpgp.com),
|
13
15
|
[Cryptode](https://www.cryptode.com),
|
@@ -38,9 +40,9 @@ to AWS S3.
|
|
38
40
|
* [Includes](#theme-includes)
|
39
41
|
|
40
42
|
|
41
|
-
##
|
43
|
+
## Getting started
|
42
44
|
|
43
|
-
###
|
45
|
+
### Set up Ruby and Jekyll
|
44
46
|
|
45
47
|
The currently recommended Ruby version is 2.6.
|
46
48
|
(In case you aren’t using Ruby often, the easiest way to install one may be with RVM.)
|
@@ -48,10 +50,10 @@ The currently recommended Ruby version is 2.6.
|
|
48
50
|
The currently recommended Jekyll version is 3 or newer
|
49
51
|
(read about [Jekyll installation](https://jekyllrb.com/docs/#instructions)).
|
50
52
|
|
51
|
-
|
53
|
+
NOTE: this theme is known to not work with Ruby older than 2.3,
|
52
54
|
and hasn’t been tested on newer versions.
|
53
55
|
|
54
|
-
### Start new Jekyll site
|
56
|
+
### Start a new Jekyll site
|
55
57
|
|
56
58
|
jekyll new my-open-site
|
57
59
|
|
@@ -59,7 +61,7 @@ If you use Git for site source version management,
|
|
59
61
|
see the “Extra .gitignore rules” section below
|
60
62
|
for additional lines you should add to your `.gitignore`.
|
61
63
|
|
62
|
-
###
|
64
|
+
### Install Open Site theme into the Jekyll site
|
63
65
|
|
64
66
|
Add this line to your Jekyll site's `Gemfile`,
|
65
67
|
replacing default theme requirement:
|
@@ -91,15 +93,32 @@ Execute the following to install dependencies:
|
|
91
93
|
|
92
94
|
$ bundle
|
93
95
|
|
94
|
-
###
|
96
|
+
### Configure your Open Site for the first time
|
95
97
|
|
96
|
-
Edit _config.yml to add necessary site-wide configuration options,
|
98
|
+
Edit `_config.yml` to add necessary site-wide configuration options,
|
97
99
|
and add files and folders to site contents. This step depends
|
98
100
|
on the type of site you’re creating: hub or individual project site.
|
99
101
|
|
100
102
|
Further sections explain core concepts of open project and hub, and go
|
101
103
|
into detail about how to configure a project or hub site.
|
102
104
|
|
105
|
+
Before building the first time you must do this:
|
106
|
+
|
107
|
+
1. Configure [common settings](#common-settings)
|
108
|
+
2. Add your logo(s) according to [logo](#logo)
|
109
|
+
|
110
|
+
Please see the [configuration section](#configuration) for more details.
|
111
|
+
|
112
|
+
NOTE: It may be required to copy the following properties from
|
113
|
+
this theme’s `_config.yaml` to your site’s: `collections`, `includes_dir`.
|
114
|
+
|
115
|
+
This is likely caused by changed behavior of jekyll-data gem in recent versions,
|
116
|
+
which is responsible for “inheritance” of `_config.yaml` between theme and site.
|
117
|
+
|
118
|
+
You can add any custom collections for your site
|
119
|
+
after collections copied from theme’s config.
|
120
|
+
|
121
|
+
|
103
122
|
### Building site
|
104
123
|
|
105
124
|
Execute to build the site locally and watch for changes:
|
@@ -110,17 +129,30 @@ This assumes you have mysite.local mapped in your hosts file,
|
|
110
129
|
otherwise omit --host and it’ll use “localhost” as domain name.
|
111
130
|
|
112
131
|
|
113
|
-
##
|
132
|
+
## Configuration
|
133
|
+
|
134
|
+
There are 3 areas to configure when you first create an Open Site, namely:
|
135
|
+
|
136
|
+
* [Common setup](#common-setup), settings that apply to both Hub and Project sites;
|
137
|
+
* [Hub site](#hub-site);
|
138
|
+
* [Project site](#project-site)
|
139
|
+
|
140
|
+
|
141
|
+
## Common setup
|
142
|
+
|
143
|
+
### Common settings
|
144
|
+
|
145
|
+
(mandatory)
|
114
146
|
|
115
147
|
These settings apply to both site types (hub and project).
|
116
148
|
|
117
|
-
- You may want to remove the default about.md page added by Jekyll,
|
149
|
+
- You may want to remove the default `about.md` page added by Jekyll,
|
118
150
|
as this theme does not account for its existence.
|
119
151
|
|
120
152
|
- Add `hero_include: home-hero.html` to YAML frontmatter
|
121
153
|
in your main `index.md`.
|
122
154
|
|
123
|
-
- Add following items to site’s _config.yml
|
155
|
+
- Add following items to site’s `_config.yml`
|
124
156
|
(and don’t forget to remove default theme requirement there):
|
125
157
|
|
126
158
|
```yaml
|
@@ -133,12 +165,21 @@ These settings apply to both site types (hub and project).
|
|
133
165
|
# URL to GitHub repo for the site.
|
134
166
|
# Using GitHub & specifying this setting is currently required
|
135
167
|
# for “suggest edits” buttons to show on documentation pages.
|
168
|
+
github_repo_branch: main
|
169
|
+
# Optional, default is `main`.
|
136
170
|
|
137
171
|
title: Example
|
138
172
|
description: The example of examples
|
139
173
|
# The above two are used by jekyll-seo-tag for things such as
|
140
174
|
# `<title>` and `<meta>` tags, as well as elsewhere by the theme.
|
141
175
|
|
176
|
+
default_repo_branch: main
|
177
|
+
# Optional, default is `main`.
|
178
|
+
# Whenever a branch name isn’t specified for some repository
|
179
|
+
# (such as project docs or specs), this name will be used.
|
180
|
+
# For configuration options that contain repository settings,
|
181
|
+
# search `git_repo_branch`, `repo_branch`, `github_repo_branch`.
|
182
|
+
|
142
183
|
tagline: Because examples are very important
|
143
184
|
# Used in hero unit on main page.
|
144
185
|
|
@@ -165,6 +206,8 @@ These settings apply to both site types (hub and project).
|
|
165
206
|
|
166
207
|
### Logo
|
167
208
|
|
209
|
+
(mandatory)
|
210
|
+
|
168
211
|
By “logo” is meant the combination of site symbol as a graphic
|
169
212
|
and name as word(s).
|
170
213
|
|
@@ -172,10 +215,10 @@ and name as word(s).
|
|
172
215
|
Should look OK in dimensions of 30x30px, and fit inside a square.
|
173
216
|
Should be in SVG format (see also the SVG guidelines section).
|
174
217
|
|
175
|
-
-
|
218
|
+
- Provide your site-wide symbol in <site root>/assets/symbol.svg.
|
176
219
|
|
177
|
-
-
|
178
|
-
under
|
220
|
+
- Provide the symbol as PNG renders as `favicon.png` and `favicon-192x192.png`
|
221
|
+
under `<site root>/assets/`; use transparent background.
|
179
222
|
|
180
223
|
- **Site name** displayed to the right of the symbol.
|
181
224
|
Limit the name to 1-3 words.
|
@@ -222,7 +265,7 @@ hero_include: index-page-hero.html
|
|
222
265
|
In general, posts are authored as per usual Jekyll setup.
|
223
266
|
|
224
267
|
It is recommended that you provide explicit hand-crafted post excerpts,
|
225
|
-
as automatically-generated excerpts may break post card
|
268
|
+
as automatically-generated excerpts may break the post card layout.
|
226
269
|
|
227
270
|
Theme also anticipates author information within frontmatter.
|
228
271
|
Together with excerpts, here’s how post frontmatter (in addition to anything
|
@@ -299,6 +342,7 @@ featured: true | false
|
|
299
342
|
|
300
343
|
site:
|
301
344
|
git_repo_url: <Git URL to standalone project site source repo>
|
345
|
+
git_repo_branch: <branch name in the above repo>
|
302
346
|
|
303
347
|
home_url: <URL to standalone project site>
|
304
348
|
|
@@ -376,6 +420,7 @@ author: "Company or Individual Name Goes Here"
|
|
376
420
|
# reference the hub.
|
377
421
|
parent_hub:
|
378
422
|
git_repo_url: git@example.com:path/to-repo.git
|
423
|
+
git_repo_branch: somebranchname
|
379
424
|
home_url: https://www.example.com/
|
380
425
|
|
381
426
|
algolia_search:
|
@@ -520,7 +565,7 @@ description: A sentence.
|
|
520
565
|
# but used for HTML metadata if jekyll-seo-tag is enabled
|
521
566
|
|
522
567
|
tags: [Ruby, Python, RFC, "<some_namespace_id>:<appropriate_tag>"]
|
523
|
-
#
|
568
|
+
# NOTE: Avoid whitespaces and other characters that may make Jekyll
|
524
569
|
# percent-encode the tag in URLs. Replace " " (a regular space)
|
525
570
|
# with "_" (underline); underlines will be rewritten as spaces when tags
|
526
571
|
# are presented to site users.
|
@@ -566,9 +611,12 @@ repo_url: https://github.com/riboseinc/asciidoctor-rfc
|
|
566
611
|
# Used for things like showing how long ago
|
567
612
|
# the was project updated last.
|
568
613
|
|
614
|
+
repo_branch: main
|
615
|
+
|
569
616
|
docs_source:
|
570
617
|
git_repo_url: git@example.com:path/to-repo.git
|
571
618
|
git_repo_subtree: docs
|
619
|
+
git_repo_branch: main
|
572
620
|
# Documentation, the contents of which will be made part of the project site.
|
573
621
|
# See the nearby section about documentation.
|
574
622
|
```
|
@@ -610,6 +658,7 @@ YAML frontmatter specific to specs:
|
|
610
658
|
spec_source:
|
611
659
|
git_repo_url: https://github.com/<user>/<repo>
|
612
660
|
git_repo_subtree: images
|
661
|
+
git_repo_branch: main
|
613
662
|
build:
|
614
663
|
engine: png_diagrams
|
615
664
|
# See below about building the spec from its source
|
@@ -103,7 +103,7 @@ supporting expandable navigation widget.
|
|
103
103
|
|
104
104
|
{% assign suggest_edits_base_url = item_data.docs.git_repo_url | default: item_data.repo_url %}
|
105
105
|
{% if suggest_edits_base_url %}
|
106
|
-
<a href="{{ suggest_edits_base_url }}/edit/
|
106
|
+
<a href="{{ suggest_edits_base_url }}/edit/{{ item_data.docs.git_repo_branch | default: site.default_repo_branch | default: 'main' }} /{{ item_data.docs.git_repo_subtree | default: "docs" }}/{{ page.path | split: "/" | last }}" class="docs-suggest-edits">Suggest edits to this page</a>
|
107
107
|
{% endif %}
|
108
108
|
</nav>
|
109
109
|
{% endif %}
|
data/_includes/legal.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<span class="copyright">
|
2
|
-
<span class="copyright-head">Copyright ©
|
2
|
+
<span class="copyright-head">Copyright © {{ site.time | date: '%Y' }} {{ site.legal.name }} —</span>
|
3
3
|
<span class="copyright-tail">All rights reserved.</span>
|
4
4
|
</span>
|
5
5
|
|
data/_layouts/docs-base.html
CHANGED
@@ -54,7 +54,7 @@ layout: default
|
|
54
54
|
{% endif %}
|
55
55
|
|
56
56
|
{% if site.github_repo_url %}
|
57
|
-
<a href="{{ site.github_repo_url }}/edit/
|
57
|
+
<a href="{{ site.github_repo_url }}/edit/{{ item_data.docs.github_repo_branch | default: site.default_repo_branch | default: 'main' }}/{{ page.path }}" class="docs-suggest-edits">Suggest edits to this page</a>
|
58
58
|
{% endif %}
|
59
59
|
</nav>
|
60
60
|
{% endif %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-open-project
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-seo-tag
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.1.
|
75
|
+
version: 2.1.6
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.1.
|
82
|
+
version: 2.1.6
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +150,7 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.3'
|
153
|
-
description:
|
153
|
+
description:
|
154
154
|
email:
|
155
155
|
- open.source@ribose.com
|
156
156
|
executables: []
|
@@ -225,7 +225,7 @@ homepage: https://github.com/riboseinc/jekyll-theme-open-project/
|
|
225
225
|
licenses:
|
226
226
|
- MIT
|
227
227
|
metadata: {}
|
228
|
-
post_install_message:
|
228
|
+
post_install_message:
|
229
229
|
rdoc_options: []
|
230
230
|
require_paths:
|
231
231
|
- lib
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
241
|
version: '0'
|
242
242
|
requirements: []
|
243
243
|
rubygems_version: 3.0.6
|
244
|
-
signing_key:
|
244
|
+
signing_key:
|
245
245
|
specification_version: 4
|
246
246
|
summary: Open Project Jekyll theme
|
247
247
|
test_files: []
|