jekyll-theme-open-project 2.0.13 → 2.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 246f2865a2fd368fa40666a1380edd077037a39c
4
- data.tar.gz: 70aec89c09f7ec33fc01dbda6f662c91cd76cbcc
3
+ metadata.gz: 79ea8a8a088c799b53b693af44ff15fe09ae2b8e
4
+ data.tar.gz: 86e8690e0233209490694e5412d9e3d85168cdd8
5
5
  SHA512:
6
- metadata.gz: 12723eac4598d89df05b52252830f7335615d88d704374bcba22aec574839d511e3ab8fc20241d8c1e9012f8e1aac77fba79f863246016d057a23cdfe2b6b420
7
- data.tar.gz: 02ae7b6490367e45f942cfcdf3c096ca246a5d354819a3f4bb5b48737974f45234d403ad3b93f69e9641b7f4f3544fc10a44946a1e83e5243715fef171197d64
6
+ metadata.gz: d2d0cff7661698030d97a7f8d04ae2701b9606bbece07ef96fa21b8126bffefbc683c13c83b4e353aca91b0ed831958ab9ebe2d4645d8ce4531012142e9a7627
7
+ data.tar.gz: 4a2d8bc2fa1dce11f8469720b3afe21669159f45dbd770327a483fa2b5f4676a3bc075ec358f53c0fcaaff2519dcdc5930b1be7b9b05b928523fc9db3d59837d
data/README.md CHANGED
@@ -111,8 +111,9 @@ These settings apply to both site types (hub and project).
111
111
  (and don’t forget to remove default theme requirement there):
112
112
 
113
113
  ```yaml
114
- url: https://example.com/
115
- # Site’s URL with protocol and without optional www. prefix.
114
+ url: https://example.com
115
+ # Site’s URL with protocol, without optional www. prefix
116
+ # and without trailing slash.
116
117
  # Used e.g. for marking external links in docs and blog posts.
117
118
 
118
119
  title: Example
@@ -100,7 +100,9 @@ supporting expandable navigation widget.
100
100
  {% if is_docs_landing == false %}
101
101
  <nav role="toolbar">
102
102
  <button class="docs-nav-toggle">Toggle table of contents</button>
103
- <a href="{{ item_data.docs.git_repo_url }}/edit/master/docs/{{ page.path | split: "/" | last }}" class="docs-suggest-edits">Suggest edits to this page</a>
103
+
104
+ {% assign suggest_edits_base_url = item_data.docs.git_repo_url | default: item_data.repo_url %}
105
+ <a href="{{ suggest_edits_base_url }}/edit/master/{{ item_data.docs.git_repo_subtree | default: "docs" }}/{{ page.path | split: "/" | last }}" class="docs-suggest-edits">Suggest edits to this page</a>
104
106
  </nav>
105
107
  {% endif %}
106
108
 
@@ -47,6 +47,18 @@ layout: default
47
47
  <h1 class="text">{{ prominent_title | default: title }}</h1>
48
48
  </div>
49
49
 
50
+ {% if site.github_repo_url or num_top_nav_items > 0 %}
51
+ <nav role="toolbar">
52
+ {% if num_top_nav_items > 0 %}
53
+ <button class="docs-nav-toggle">Toggle table of contents</button>
54
+ {% endif %}
55
+
56
+ {% if site.github_repo_url %}
57
+ <a href="{{ site.github_repo_url }}/edit/master/{{ page.path }}" class="docs-suggest-edits">Suggest edits to this page</a>
58
+ {% endif %}
59
+ </nav>
60
+ {% endif %}
61
+
50
62
  <div>
51
63
  <div class="lead">{{ page.description }}</div>
52
64
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-open-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 2.0.13
75
+ version: 2.0.14
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.0.13
82
+ version: 2.0.14
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement