jekyll-theme-open-project 2.1.10 → 2.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -7
  3. data/_layouts/default.html +4 -1
  4. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32130c0a3b12cf1e389be7d2d453f88f2f84d5936fd68e24714f7889dfca49f5
4
- data.tar.gz: 3e882c476741d5f698e79aff328db7385a5bbd525ad1ace70e028ef2e6eca063
3
+ metadata.gz: be8bd9a2dab6175b3723b9fad6e3cde3657f0b8a540a696819ebae7793b057c4
4
+ data.tar.gz: 8015bf09f4423122785c9f3b85f69863cadb0e532f12f262c89e4e8a059fd095
5
5
  SHA512:
6
- metadata.gz: 5432789a5e21986187b76b310edb3774399ef2345a24e15dd46942d4f9c921a77a57b34281e7618c8bd04bc5447c3db692a40fd42971da3ceef3d2fb0136c61f
7
- data.tar.gz: 59debbfea2538ce740b37c96a58629ca7537acbcc7d70e753d5983feb42ecd363dc5cb1eb32d268cdb9d9d13a0766e1bd2d9304590d092045b5d5e55390f8f55
6
+ metadata.gz: e80806d51b095832bf2a6cc7f924c4a93e0eb40e80b8e17019fff6f0b0d7979d5158bf45529653fcfe1bb573478489f153b3111fb68a996b3514c422c88f5639
7
+ data.tar.gz: 9e5b66c811e65add28ffc5ddbf9003c4cb64546f03d70df1a5ef0883198c19a68ce454de62bbe4209b4c80ab10d6375ef0150d4ef114a230cbc581e1dccfc4f9
data/README.md CHANGED
@@ -140,6 +140,33 @@ There are 3 areas to configure when you first create an Open Site, namely:
140
140
 
141
141
  ## Common setup
142
142
 
143
+ ### Git repository branch behavior
144
+
145
+ You’ll see many instances of document frontmatter
146
+ referencing Git repository URLs.
147
+
148
+ Note that, wherever a `[*_]repo_url` property is encountered,
149
+ a sibling property `[*_]repo_branch` is supported.
150
+ (This is new in 2.1.17, until that version branch “master” was used for all repositories.)
151
+
152
+ If you reference repositories that don’t use branch name “main”,
153
+ you must either:
154
+
155
+ - use a sibling `[*_]repo_branch` property to specify your custom branch name
156
+ (you can search for `git_repo_branch`, `repo_branch`, `github_repo_branch`
157
+ in this document for examples), or
158
+
159
+ - specify `default_repo_branch` property in `config.yml`
160
+
161
+ (in this case, in scenarios with project sites being used in conjunction
162
+ with a hub site, `default_repo_branch` must be the same
163
+ across all project sites’ and their hub site’s `config.yml`—otherwise you’re advised
164
+ to use the previous option to avoid site build failure).
165
+
166
+ Note that, when a referenced Git repository doesn’t contain the necessary branch
167
+ (either explicitly specified custom branch, or `default_repo_branch`, or branch called “main”),
168
+ this will cause build failure of that project site, or a hub site using that project site.
169
+
143
170
  ### Common settings
144
171
 
145
172
  (mandatory)
@@ -175,10 +202,10 @@ These settings apply to both site types (hub and project).
175
202
 
176
203
  default_repo_branch: main
177
204
  # 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`.
205
+ # Whenever branch name isn’t specified for some repository
206
+ # (such as project docs or specs), this name will be used
207
+ # during site’s build.
208
+ # (See branch behavior section for details.)
182
209
 
183
210
  tagline: Because examples are very important
184
211
  # Used in hero unit on main page.
@@ -201,7 +228,13 @@ These settings apply to both site types (hub and project).
201
228
  # Without this setting, one-file FA distribution, all.js, is included from free FA CDN.
202
229
 
203
230
  theme: jekyll-theme-open-project
204
- permalink: /blog/:month-:day-:year/:title/
231
+
232
+ permalink: /blog/:month-:day-:year-:title/
233
+ # It’s important that dash-separated permalink is used for blog posts.
234
+ # There’re no daily or monthly blog archive pages generated.
235
+ # Hub sites reference posts using that method, and it’s currently non-customizable.
236
+ # With `collections` configuration, specify permalink for posts
237
+ # correctly as well (for an example, see https://github.com/metanorma/metanorma.org/blob/d2b15f6d8c4cea73d45ad899374845ec38348ff1/_config.yml#L60).
205
238
  ```
206
239
 
207
240
  ### Logo
@@ -307,12 +340,13 @@ For project posts, see below the project site section.
307
340
 
308
341
  The hub represents your company or department, links to all projects
309
342
  and offers a software and specification index.
343
+
344
+ Note that a hub site is expected to have at least one document
345
+ in the `projects` collection (see below).
310
346
 
311
347
  Additional items allowed/expected in _config.yml:
312
348
 
313
349
  ```yaml
314
- is_hub: true
315
-
316
350
  # Since a hub would typically represent an organization as opposed
317
351
  # to individual, this would make sense:
318
352
  seo:
@@ -93,8 +93,11 @@
93
93
 
94
94
  <div class="underlay footer">
95
95
  <footer>
96
- {% if site.num_all_specs > 0 or site.num_all_software > 0 %}
96
+ {% if site.num_all_specs > 0 or site.num_all_software > 0 or site.extra_footer_links %}
97
97
  <nav class="links" aria-label="site links">
98
+ {% for link in site.extra_footer_links %}
99
+ <a href="{{ link.url }}">{{ link.title }}</a>
100
+ {% endfor %}
98
101
  {% if site.num_all_software > 0 %}
99
102
  <a href="/software/">All {{ site.title }} software</a>
100
103
  {% 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.10
4
+ version: 2.1.11
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: 2021-10-13 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -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
@@ -240,8 +240,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.0.3
244
- signing_key:
243
+ rubygems_version: 3.1.6
244
+ signing_key:
245
245
  specification_version: 4
246
246
  summary: Open Project Jekyll theme
247
247
  test_files: []