mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-15 23:52:23 -06:00
Merge d56b22a3ec1d85c0e20a1f4d2e40791b66ed150c into 3ff76320ce566313d9f47795f8e2434643cb2b27
This commit is contained in:
commit
6edea8eb54
15
_config.yml
15
_config.yml
@ -38,15 +38,28 @@ aux_links:
|
|||||||
"Just the Docs on GitHub":
|
"Just the Docs on GitHub":
|
||||||
- "//github.com/pmarsceill/just-the-docs"
|
- "//github.com/pmarsceill/just-the-docs"
|
||||||
|
|
||||||
# Footer content appears at the bottom of every page's main content
|
# Footer content
|
||||||
|
# appears at the bottom of every page's main content
|
||||||
footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
|
footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
|
||||||
|
|
||||||
|
# Footer last edited timestamp
|
||||||
|
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
|
||||||
|
last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
|
||||||
|
|
||||||
|
# Footer "Edit this page on GitHub" link text
|
||||||
|
gh_edit_link: true # show or hide edit this page link
|
||||||
|
gh_edit_link_text: "Edit this page on GitHub."
|
||||||
|
gh_edit_repository: "https://github.com/pmarsceill/just-the-docs" # the github URL for your repo
|
||||||
|
gh_edit_branch: "master" # the branch that your docs is served from
|
||||||
|
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
|
||||||
|
|
||||||
# Color scheme currently only supports "dark" or nil (default)
|
# Color scheme currently only supports "dark" or nil (default)
|
||||||
color_scheme: nil
|
color_scheme: nil
|
||||||
|
|
||||||
# Google Analytics Tracking (optional)
|
# Google Analytics Tracking (optional)
|
||||||
# e.g, UA-1234567-89
|
# e.g, UA-1234567-89
|
||||||
ga_tracking: UA-2709176-10
|
ga_tracking: UA-2709176-10
|
||||||
|
ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings (true by default)
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-seo-tag
|
- jekyll-seo-tag
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||||
|
|
||||||
{% if site.plugins.jekyll-seo == nil %}
|
{% unless site.plugins contains "jekyll-seo-tag" %}
|
||||||
<title>{{ page.title }} - {{ site.title }}</title>
|
<title>{{ page.title }} - {{ site.title }}</title>
|
||||||
|
|
||||||
{% if page.description %}
|
{% if page.description %}
|
||||||
<meta name="Description" content="{{ page.description }}">
|
<meta name="Description" content="{{ page.description }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endunless %}
|
||||||
|
|
||||||
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
|
||||||
|
|
||||||
@ -21,7 +21,7 @@
|
|||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', "{{ site.ga_tracking }}");
|
gtag('config', '{{ site.ga_tracking }}'{% unless site.ga_tracking_anonymize_ip == nil %}, { 'anonymize_ip': true }{% endunless %});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -13,22 +13,26 @@
|
|||||||
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
|
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
|
||||||
<ul class="navigation-list-child-list ">
|
<ul class="navigation-list-child-list ">
|
||||||
{%- for child in children_list -%}
|
{%- for child in children_list -%}
|
||||||
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
{%- unless child.nav_exclude -%}
|
||||||
{%- if page.url == child.url or page.parent == child.title -%}
|
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
|
||||||
{%- assign second_level_url = child.url | absolute_url -%}
|
{%- if page.url == child.url or page.parent == child.title -%}
|
||||||
{%- endif -%}
|
{%- assign second_level_url = child.url | absolute_url -%}
|
||||||
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
{%- endif -%}
|
||||||
{%- if child.has_children -%}
|
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
|
||||||
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
|
{%- if child.has_children -%}
|
||||||
<ul class="navigation-list-child-list">
|
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
|
||||||
{%- for grand_child in grand_children_list -%}
|
<ul class="navigation-list-child-list">
|
||||||
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
{%- for grand_child in grand_children_list -%}
|
||||||
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
{%- unless grand_child.nav_exclude -%}
|
||||||
</li>
|
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
|
||||||
{%- endfor -%}
|
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
|
||||||
</ul>
|
</li>
|
||||||
{%- endif -%}
|
{%- endunless -%}
|
||||||
</li>
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
{%- endif -%}
|
||||||
|
</li>
|
||||||
|
{%- endunless -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
@ -86,10 +86,29 @@ layout: table_wrappers
|
|||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.footer_content != nil %}
|
{% if site.footer_content != nil or site.show_last_edit_time or site.show_gh_edit_link %}
|
||||||
<hr>
|
<hr>
|
||||||
<footer role="contentinfo">
|
<footer role="contentinfo">
|
||||||
|
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
|
||||||
|
<p class="text-small text-grey-dk-000 mb-0">
|
||||||
|
Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}.
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{%
|
||||||
|
if
|
||||||
|
site.gh_edit_link and
|
||||||
|
site.gh_edit_link_text and
|
||||||
|
site.gh_edit_repository and
|
||||||
|
site.gh_edit_view_mode and
|
||||||
|
site.gh_edit_branch
|
||||||
|
%}
|
||||||
|
<p class="text-small text-grey-dk-000 mb-0">
|
||||||
|
<a href="{{ site.gh_edit_repository }}/{{site.gh_edit_view_mode}}/{{site.gh_edit_branch}}/{{ page.path }}">{{ site.edit_link_text }}</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if site.footer_content != nil %}
|
||||||
<p class="text-small text-grey-dk-000 mb-0">{{ site.footer_content }}</p>
|
<p class="text-small text-grey-dk-000 mb-0">{{ site.footer_content }}</p>
|
||||||
|
{% endif %}
|
||||||
</footer>
|
</footer>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -63,10 +63,28 @@ heading_anchors: true
|
|||||||
## Footer content
|
## Footer content
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Footer content appears at the bottom of every page's main content
|
# Footer content
|
||||||
|
# appears at the bottom of every page's main content
|
||||||
footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
|
footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
|
||||||
|
|
||||||
|
# Footer last edited timestamp
|
||||||
|
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
|
||||||
|
last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
|
||||||
|
|
||||||
|
# Footer "Edit this page on GitHub" link text
|
||||||
|
gh_edit_link: true # show or hide edit this page link
|
||||||
|
gh_edit_link_text: "Edit this page on GitHub."
|
||||||
|
gh_edit_repository: "https://github.com/pmarsceill/just-the-docs" # the github URL for your repo
|
||||||
|
gh_edit_branch: "master" # the branch that your docs is served from
|
||||||
|
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- the "page last modified" data will only display if a page has a key called `last_modified_date`, formatted in some readable date format
|
||||||
|
- `last_edit_time_format` uses Ruby's DateTime formatter; see examples and more information [at this link.](https://apidock.com/ruby/DateTime/strftime)
|
||||||
|
- `gh_edit_repository` is the URL of the project's GitHub repository
|
||||||
|
- `gh_edit_branch` is the branch that the docs site is served from; defaults to `master`
|
||||||
|
- `gh_edit_view_mode` is `"tree"` by default, which brings the user to the github page; switch to `"edit"` to bring the user directly into editing mode
|
||||||
|
|
||||||
## Color scheme
|
## Color scheme
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -85,4 +103,5 @@ See [Customization]({{ site.baseurl }}{% link docs/customization.md %}) for more
|
|||||||
# Google Analytics Tracking (optional)
|
# Google Analytics Tracking (optional)
|
||||||
# e.g, UA-1234567-89
|
# e.g, UA-1234567-89
|
||||||
ga_tracking: UA-5555555-55
|
ga_tracking: UA-5555555-55
|
||||||
|
ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings (true by default)
|
||||||
```
|
```
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "just-the-docs"
|
spec.name = "just-the-docs"
|
||||||
spec.version = "0.2.8"
|
spec.version = "0.2.9"
|
||||||
spec.authors = ["Patrick Marsceill"]
|
spec.authors = ["Patrick Marsceill"]
|
||||||
spec.email = ["patrick.marsceill@gmail.com"]
|
spec.email = ["patrick.marsceill@gmail.com"]
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) }
|
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) }
|
||||||
spec.executables << 'just-the-docs'
|
spec.executables << 'just-the-docs'
|
||||||
|
|
||||||
spec.add_runtime_dependency "bundler", "~> 2.1.4"
|
spec.add_development_dependency "bundler", "~> 2.1.4"
|
||||||
spec.add_runtime_dependency "jekyll", ">= 3.8.5", "< 4.1.0"
|
spec.add_runtime_dependency "jekyll", ">= 3.8.5", "< 4.1.0"
|
||||||
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.0"
|
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.0"
|
||||||
spec.add_runtime_dependency "rake", ">= 12.3.1", "< 13.1.0"
|
spec.add_runtime_dependency "rake", ">= 12.3.1", "< 13.1.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "just-the-docs",
|
"name": "just-the-docs",
|
||||||
"version": "0.2.8",
|
"version": "0.2.9",
|
||||||
"description": "A modern Jekyll theme for documentation",
|
"description": "A modern Jekyll theme for documentation",
|
||||||
"repository": "pmarsceill/just-the-docs",
|
"repository": "pmarsceill/just-the-docs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user