jekyll-rtd-theme 1.0.0 → 1.0.1
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/README.md +5 -5
- data/_includes/addons.liquid +7 -1
- data/_includes/addons/analytics/google.liquid +15 -1
- data/_includes/addons/source/i18n.liquid +1 -1
- data/_includes/footer.liquid +1 -1
- data/_includes/reset/defaults.liquid +1 -1
- data/_includes/reset/schema.liquid +4 -0
- data/_layouts/basic.liquid +6 -5
- data/assets/sitemap.xml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb6951c99db8b05f676775f3d340a5ee35053b7f9a3eb4d475a8b5c60cf4b835
|
|
4
|
+
data.tar.gz: 0cb3eabfc0e92c3d35e83538757b9c43d7c450a1343892bfecaac16bdf5f0553
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0b4d12c7fb8a28302bf151a0767dfa73db9e280947a0deb5147b2a164ec6efa33c01b20108186f44914d7144c71827ac37e68cb2416ed56ac9833b7892db30d
|
|
7
|
+
data.tar.gz: ade5cf7162131e9d927baf5f4381882f98ad586c7a8c9b0cf9fb8ad07eead5598215567596ba53e01cd7fc4771a20c754d7e443cd7c90ea29803f3461916ebc2
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Jekyll-rtd-theme
|
|
2
2
|
[][repository]
|
|
3
3
|
[][rubygem]
|
|
4
4
|
[][rubygem]
|
|
@@ -11,7 +11,7 @@ Just another documentation theme compatible with GitHub Pages, based on sphinx_r
|
|
|
11
11
|
![][demo]
|
|
12
12
|
|
|
13
13
|
## Notable features
|
|
14
|
-
- Write documents directly,
|
|
14
|
+
- Write documents directly, automatically generate toctree based on directory
|
|
15
15
|
- Only need one file `_config.yml` to configure site
|
|
16
16
|
- Bundled as a "theme gem" for easier installation/upgrading.
|
|
17
17
|
- Compatible with GitHub Pages.
|
|
@@ -20,14 +20,14 @@ Just another documentation theme compatible with GitHub Pages, based on sphinx_r
|
|
|
20
20
|
- Search engine support
|
|
21
21
|
- Commenting support
|
|
22
22
|
- Google,Baidu,CNZZ Analytics support.
|
|
23
|
-
- UI localized text in English(default), Chinese(中文)
|
|
23
|
+
- UI localized text in English(default), Chinese(中文)...
|
|
24
24
|
- And many features waiting for you to discover.
|
|
25
25
|
|
|
26
26
|
## Roadmap
|
|
27
27
|
See the [open issues][issues] for a list of proposed features (and known issues).
|
|
28
28
|
|
|
29
29
|
## Documents
|
|
30
|
-
For full documentation, see: [https://
|
|
30
|
+
For full documentation, see: [https://jekyll-rtd-theme.rundocs.io][site]
|
|
31
31
|
|
|
32
32
|
## The License
|
|
33
33
|
The theme is available as open source under the terms of the [MIT License][license].
|
|
@@ -36,7 +36,7 @@ The theme is available as open source under the terms of the [MIT License][licen
|
|
|
36
36
|
[repository]: https://github.com/rundocs/jekyll-rtd-theme
|
|
37
37
|
[issues]: https://github.com/rundocs/jekyll-rtd-theme/issues
|
|
38
38
|
[license]: https://github.com/rundocs/jekyll-rtd-theme/blob/master/LICENSE
|
|
39
|
-
[site]: https://
|
|
39
|
+
[site]: https://jekyll-rtd-theme.rundocs.io
|
|
40
40
|
[rubygem]: https://rubygems.org/gems/jekyll-rtd-theme
|
|
41
41
|
[cdn]: https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/
|
|
42
42
|
[codefactor]: https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme
|
data/_includes/addons.liquid
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
|
|
2
2
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
3
|
-
<span class="fa fa-book">
|
|
3
|
+
<span class="fa fa-book">
|
|
4
|
+
{% if site.url contains "rundocs.io" -%}
|
|
5
|
+
RunDocs
|
|
6
|
+
{%- else -%}
|
|
7
|
+
{{ site.title }}
|
|
8
|
+
{%- endif -%}
|
|
9
|
+
</span>
|
|
4
10
|
{% if site.addons_branch %}v: {{ branch }}{% endif %}
|
|
5
11
|
<span class="fa fa-caret-down"></span>
|
|
6
12
|
</span>
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
{%- if site.url contains "rundocs.io" -%}
|
|
2
|
+
<!-- RunDocs Analytics -->
|
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-174262874-1"></script>
|
|
4
|
+
<script>
|
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
|
6
|
+
|
|
7
|
+
function gtag() {
|
|
8
|
+
dataLayer.push(arguments);
|
|
9
|
+
}
|
|
10
|
+
gtag("js", new Date());
|
|
11
|
+
gtag("config", "UA-174262874-1");
|
|
12
|
+
</script>
|
|
13
|
+
{%- endif -%}
|
|
14
|
+
|
|
1
15
|
{%- if site.google.gtag -%}
|
|
2
16
|
<!-- Google Analytics -->
|
|
3
17
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.gtag }}"></script>
|
|
@@ -15,4 +29,4 @@
|
|
|
15
29
|
{%- if site.google.adsense -%}
|
|
16
30
|
<!-- Google AdSense -->
|
|
17
31
|
<script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
18
|
-
{%- endif -%}
|
|
32
|
+
{%- endif -%}
|
data/_includes/footer.liquid
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
|
|
2
|
-
{%- assign version = "1.0.
|
|
2
|
+
{%- assign version = "1.0.1" -%}
|
|
3
3
|
{%- assign addons = "github, i18n, gems, analytics" | split: ", " -%}
|
|
4
4
|
|
|
5
5
|
{%- include reset/site_pages.liquid %}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
{%- assign schema_url = page.url | absolute_url | xml_escape -%}
|
|
2
2
|
{%- assign schema_lastmod = page.date | default: site.time | date_to_xmlschema -%}
|
|
3
|
+
|
|
4
|
+
{%- assign schema_weight_title = page.title | size | divided_by: 200.0 -%}
|
|
5
|
+
{%- assign schema_weight_content = page.content | size | divided_by: 1024.0 -%}
|
|
6
|
+
{%- assign schema_priority = schema_weight_content | plus: schema_weight_title | times: 10 | ceil | divided_by: 10.0 | at_least: 0.1 | at_most: 1.0 -%}
|
data/_layouts/basic.liquid
CHANGED
|
@@ -8,9 +8,9 @@ layout: plugins/compress
|
|
|
8
8
|
|
|
9
9
|
<!--
|
|
10
10
|
{% if site.remote_theme -%}
|
|
11
|
-
remote_theme: {{ site.remote_theme }}, based on v{{ version }}
|
|
11
|
+
rundocs.io, remote_theme: {{ site.remote_theme }}, based on v{{ version }}
|
|
12
12
|
{%- else -%}
|
|
13
|
-
theme: {{ site.theme | default: "jekyll-rtd-theme, based on" }} v{{ version }}
|
|
13
|
+
rundocs.io, theme: {{ site.theme | default: "jekyll-rtd-theme, based on" }} v{{ version }}
|
|
14
14
|
{%- endif %}
|
|
15
15
|
-->
|
|
16
16
|
|
|
@@ -49,9 +49,6 @@ layout: plugins/compress
|
|
|
49
49
|
<link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
|
|
50
50
|
<!-- script -->
|
|
51
51
|
<script src="{{ cdn }}/assets/js/jquery.min.js"></script>
|
|
52
|
-
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
|
53
|
-
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
|
54
|
-
<script>{{ site_script }}</script>
|
|
55
52
|
</head>
|
|
56
53
|
|
|
57
54
|
<body class="wy-body-for-nav">
|
|
@@ -98,6 +95,10 @@ layout: plugins/compress
|
|
|
98
95
|
</section>
|
|
99
96
|
</div>
|
|
100
97
|
{%- if site.addons %}{% include addons.liquid %}{% endif %}
|
|
98
|
+
<!-- script -->
|
|
99
|
+
<script src="{{ cdn }}/assets/js/theme.js"></script>
|
|
100
|
+
<script src="{{ cdn }}/assets/js/anchor.min.js"></script>
|
|
101
|
+
<script>{{ site_script }}</script>
|
|
101
102
|
<!-- analytics -->
|
|
102
103
|
{%- include addons/analytics/baidu.liquid -%}
|
|
103
104
|
{%- include addons/analytics/cnzz.liquid -%}
|
data/assets/sitemap.xml
CHANGED
|
@@ -11,7 +11,7 @@ permalink: /sitemap.xml
|
|
|
11
11
|
{% include reset/schema.liquid %}
|
|
12
12
|
<url>
|
|
13
13
|
<loc>{{ schema_url }}</loc>
|
|
14
|
-
<priority>
|
|
14
|
+
<priority>{{ schema_priority }}</priority>
|
|
15
15
|
<lastmod>{{ schema_lastmod }}</lastmod>
|
|
16
16
|
</url>
|
|
17
17
|
{%- endfor %}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-rtd-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- saowang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-08-
|
|
11
|
+
date: 2020-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: github-pages
|