Skip to content

Commit ab18033

Browse files
authored
Merge pull request #2222 from marquiz/release-0.7
[release-0.7] docs: switch to jekyll-theme-read-the-docs
2 parents 5dfc0ef + c87b5fb commit ab18033

File tree

5 files changed

+61
-9
lines changed

5 files changed

+61
-9
lines changed

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ on:
55
- master
66
- release-*
77
tags:
8-
- v*
8+
- v[0-9]+.[0-9]+.[0-9]+
9+
10+
concurrency:
11+
group: gh-pages
12+
13+
permissions:
14+
contents: read
15+
916
jobs:
1017
build:
1118
name: Update gh-pages
1219
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
1322
steps:
1423

1524
- name: Check out repo

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ markdown: kramdown
2626
kramdown:
2727
toc_levels: 1..3
2828

29-
remote_theme: rundocs/jekyll-rtd-theme@v2.0.9
29+
remote_theme: jv-conseil/jekyll-theme-read-the-docs@ce7ed5ad2184b36244a50adbeea2f0a6ab1f8606
3030

3131
# Exclude from processing.
3232
# The following items will not be processed, by default. Create a custom list

docs/_includes/class/addons-wrap.liquid renamed to docs/_includes/templates/addons.liquid

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,31 @@
4343
{% endif %}
4444
</dl>
4545
{% endif %}
46-
{%- assign items = "github" | split: ", " -%}
47-
{% for item in items -%}
48-
{% include addons/{{ item }}.liquid %}
49-
{% endfor -%}
46+
<dl>
47+
<dt>{{ __.github | default: "GitHub" }}</dt>
48+
<dd>
49+
<a href="{{ docs.repository_url }}" title="{{ __.stars | default: 'Stars' }}: {{ rest.stargazers_count }}">
50+
<i class="fa fa-github"></i>
51+
{{ __.homepage | default: "Homepage" }}
52+
</a>
53+
</dd>
54+
<dd>
55+
<a href="{{ docs.issues_url }}" title="{{ __.open_issues | default: 'Open issues' }}: {{ rest.open_issues }}">
56+
<i class="fa fa-question-circle-o"></i>
57+
{{ __.issues | default: "Issues" }}
58+
</a>
59+
</dd>
60+
<dd>
61+
<a href="{{ docs.zip_url }}" title="{{ __.size | default: 'Size' }}: {{ rest.size }} Kb">
62+
<i class="fa fa-download"></i>
63+
{{ __.download | default: "Download" }}
64+
</a>
65+
</dd>
66+
</dl>
5067
<hr>
5168
<div class="license f6 pb-2">
52-
The
53-
<a href="{{ site.baseurl }}/">software</a>
69+
This
70+
<a href="{{ site.baseurl }}/" title="{{ site.title }}">Software</a>
5471
is under the terms of
5572
<a href="{{ docs.repository_url }}">{{ docs.license.name | default: "The Unlicense" }}</a>.
5673
</div>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<div class="content-wrap">
2+
<div class="header d-flex flex-justify-between p-2 hide-lg hide-xl" aria-label="top navigation">
3+
<button id="toggle" aria-label="Toggle menu" class="btn-octicon p-2 m-0 text-white" type="button">
4+
<i class="fa fa-bars"></i>
5+
</button>
6+
<div class="title flex-1 d-flex flex-justify-center">
7+
<a class="h4 no-underline py-1 px-2 rounded-1" href="{{ site.baseurl }}/">{{ site.title }}</a>
8+
</div>
9+
</div>
10+
<div class="bg-red-2">
11+
<div class="content p-3 px-sm-5">
12+
This documentation is for Node Feature Discovery version that is no longer supported. Please upgrade and visit the
13+
<a class="no-underline" href="{{ '../stable' | relative_url }}">documentation of the latest stable release</a>.
14+
</div>
15+
</div>
16+
<div class="content p-3 p-sm-5">
17+
{% include templates/breadcrumbs.liquid %}
18+
<hr>
19+
<div role="main" itemscope="itemscope" itemtype="https://schema.org/Article">
20+
<div class="markdown-body" itemprop="articleBody">
21+
{{ content }}
22+
</div>
23+
</div>
24+
{% include templates/footer.liquid %}
25+
</div>
26+
</div>

docs/_includes/class/sidebar-wrap.liquid renamed to docs/_includes/templates/sidebar.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</form>
1313
</div>
1414
<div class="toctree py-2" data-spy="affix" role="navigation" aria-label="main navigation">
15-
{% include class/_toctree.liquid %}
15+
{% include templates/toctree.liquid %}
1616
</div>
1717
</div>
1818
</div>

0 commit comments

Comments
 (0)