mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-16 14:23:31 -06:00
Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
facad4c85a | ||
|
3974fb87e2 | ||
|
060bb31a78 | ||
|
4862864318 | ||
|
9aa1eeac3c | ||
|
3a7066ce70 | ||
|
f3b947d64d | ||
|
da4be68cfc | ||
|
6242d32e21 | ||
|
2dd535c2da | ||
|
1b79df8ebb | ||
|
644287cf6b | ||
|
dd4613e8b1 | ||
|
a251382b7a | ||
|
063a130ffd | ||
|
df78a847b2 | ||
|
5110bf71d7 | ||
|
e92afffb9c | ||
|
e434f916ce | ||
|
328893dd30 | ||
|
7de5f7abe5 | ||
|
930a0e0c36 | ||
|
880f4dc8b0 | ||
|
15a0b6e91b |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
jekyll-version: [3.9, 4.3]
|
jekyll-version: [3.9, 4.3]
|
||||||
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
ruby-version: ["3.0", "3.1", "3.2"]
|
ruby-version: ["3.1", "3.2", "3.3"]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: "3.2"
|
ruby-version: "3.3"
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
cache-version: 0 # Increment this number if you need to re-download cached gems
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
|
4
.github/workflows/publish-gem.yml
vendored
4
.github/workflows/publish-gem.yml
vendored
@@ -10,10 +10,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Ruby 3.2
|
- name: Setup Ruby 3.3
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: "3.2"
|
ruby-version: "3.3"
|
||||||
|
|
||||||
- name: Publish to GPR
|
- name: Publish to GPR
|
||||||
run: |
|
run: |
|
||||||
|
81
CHANGELOG.md
81
CHANGELOG.md
@@ -23,6 +23,87 @@ Docs changes made since the latest release:
|
|||||||
|
|
||||||
- N/A
|
- N/A
|
||||||
|
|
||||||
|
## Release v0.9.0
|
||||||
|
|
||||||
|
Hi folks! This minor release adds a `nav_enabled` set of variables to enable/disable the navigation at a site, layout, and page level --- and uses that to add search and auxilary links to the `minimal` layout. In addition, it fixes `search-data.json` corruption with default layouts and some minor CSS/SCSS issues.
|
||||||
|
|
||||||
|
This release should be a straightforward upgrade for all users of Just the Docs. Thank you for your continued support!
|
||||||
|
|
||||||
|
### Using Release `v0.9.0`
|
||||||
|
|
||||||
|
Users who have not pinned the theme version will be **automatically upgraded to `v0.8.0` the next time they build their site**.
|
||||||
|
|
||||||
|
To use this release explicitly as a remote theme:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
remote_theme: just-the-docs/just-the-docs@v0.9.0
|
||||||
|
```
|
||||||
|
|
||||||
|
To use this version explicitly as a gem-based theme, pin the version in your `Gemfile` and re-run `bundle install` or `bundle update just-the-docs`:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
gem "just-the-docs", "0.9.0"
|
||||||
|
```
|
||||||
|
|
||||||
|
To use and pin a previous version of the theme, replace the `0.9.0` with the desired release tag.
|
||||||
|
|
||||||
|
### New Features
|
||||||
|
|
||||||
|
- Added: `nav_enabled` site, layout, and page-level variable to selectively show or hide the side/mobile menu by [@kevinlin1] in [#1441]
|
||||||
|
- Added: site-wide search bar and auxiliary links to the `minimal` layout by [@kevinlin1] in [#1441]
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fixed: protect `search-data.json` file from front matter default for layout by [@mattxwang] in [#1468]
|
||||||
|
- Fixed: Sass mixed declarations by [@bobvandevijver] in [#1495]
|
||||||
|
- Fixed: redundant `monospace` in `pre`, `code`, `kbd`, `samp` reset by [@mattxwang] in [#1508]
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- Docs: Explained the `nav_enabled` variables as an alternative to using the minimal layout [@kevinlin1] in [#1441].
|
||||||
|
|
||||||
|
### New Contributors
|
||||||
|
|
||||||
|
- [@bobvandevijver] made their first contribution in [#1495]
|
||||||
|
|
||||||
|
[@bobvandevijver]: https://github.com/bobvandevijver
|
||||||
|
|
||||||
|
[#1441]: https://github.com/just-the-docs/just-the-docs/pull/1441
|
||||||
|
[#1468]: https://github.com/just-the-docs/just-the-docs/pull/1468
|
||||||
|
[#1495]: https://github.com/just-the-docs/just-the-docs/pull/1495
|
||||||
|
[#1508]: https://github.com/just-the-docs/just-the-docs/pull/1508
|
||||||
|
|
||||||
|
## Release v0.8.2
|
||||||
|
|
||||||
|
Hi everyone! This patch release fixes a bug where a default layout with unrestricted `scope` (`path: ""`) breaks JavaScript functionality. Users who do not use a default layout with unrestricted `scope` should not be affected. This should be a straightforward upgrade for all users. Thank you to [@pdmosses] for triaging and fixing the bug!
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fixed: Protect theme JS file from front matter default for layout by [@pdmosses] in [#1447]
|
||||||
|
|
||||||
|
[#1447]: https://github.com/just-the-docs/just-the-docs/pull/1447
|
||||||
|
|
||||||
|
## Release v0.8.1
|
||||||
|
|
||||||
|
Hi folks! This patch release fixes a bug introduced in `0.8.0` that affects users who build their sites in strict mode. It is a straightforward upgrade that should require no manual migration changes. Thank you to [@Zarthus] for quickly catching and fixing this bug!
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fixed: Liquid filter typo in breadcrumb component (`strip` instead of `trim`) by [@Zarthus] in [#1434]
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- Build docs site using strict mode and `strict_filters` by [@Zarthus] in [#1435]
|
||||||
|
|
||||||
|
### New Contributors
|
||||||
|
|
||||||
|
- [@Zarthus] made their first contribution in [#1434]
|
||||||
|
|
||||||
|
[@Zarthus]: https://github.com/Zarthus
|
||||||
|
|
||||||
|
[#1434]: https://github.com/just-the-docs/just-the-docs/pull/1434
|
||||||
|
[#1435]: https://github.com/just-the-docs/just-the-docs/pull/1435
|
||||||
|
|
||||||
## Release v0.8.0
|
## Release v0.8.0
|
||||||
|
|
||||||
Hi folks! This first minor release of 2024 has a short number of changes: a large improvement of build times for large sites, a new keyboard shortcut to focus the search bar, and sidebar navigation bugfixes for "pretty" URLs (with `.html` omitted) and the clickable area on Safari. This release has no explicit breaking changes and should be a straightforward upgrade for most (if not all) users.
|
Hi folks! This first minor release of 2024 has a short number of changes: a large improvement of build times for large sites, a new keyboard shortcut to focus the search bar, and sidebar navigation bugfixes for "pretty" URLs (with `.html` omitted) and the clickable area on Safari. This release has no explicit breaking changes and should be a straightforward upgrade for most (if not all) users.
|
||||||
|
84
Gemfile.lock
84
Gemfile.lock
@@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
just-the-docs (0.8.0)
|
just-the-docs (0.9.0)
|
||||||
jekyll (>= 3.8.5)
|
jekyll (>= 3.8.5)
|
||||||
jekyll-include-cache
|
jekyll-include-cache
|
||||||
jekyll-seo-tag (>= 2.0)
|
jekyll-seo-tag (>= 2.0)
|
||||||
@@ -14,36 +14,40 @@ GEM
|
|||||||
addressable (2.8.6)
|
addressable (2.8.6)
|
||||||
public_suffix (>= 2.0.2, < 6.0)
|
public_suffix (>= 2.0.2, < 6.0)
|
||||||
afm (0.2.2)
|
afm (0.2.2)
|
||||||
async (2.6.3)
|
async (2.11.0)
|
||||||
console (~> 1.10)
|
console (~> 1.25, >= 1.25.2)
|
||||||
fiber-annotation
|
fiber-annotation
|
||||||
io-event (~> 1.1)
|
io-event (~> 1.5, >= 1.5.1)
|
||||||
timers (~> 4.1)
|
timers (~> 4.1)
|
||||||
base64 (0.2.0)
|
bigdecimal (3.1.8)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.2.2)
|
concurrent-ruby (1.2.3)
|
||||||
console (1.23.2)
|
console (1.25.2)
|
||||||
fiber-annotation
|
fiber-annotation
|
||||||
fiber-local
|
fiber-local (~> 1.1)
|
||||||
|
json
|
||||||
em-websocket (0.5.3)
|
em-websocket (0.5.3)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0)
|
http_parser.rb (~> 0)
|
||||||
ethon (0.16.0)
|
ethon (0.16.0)
|
||||||
ffi (>= 1.15.0)
|
ffi (>= 1.15.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
faraday (2.8.1)
|
faraday (2.9.0)
|
||||||
base64
|
faraday-net_http (>= 2.0, < 3.2)
|
||||||
faraday-net_http (>= 2.0, < 3.1)
|
faraday-net_http (3.1.0)
|
||||||
ruby2_keywords (>= 0.0.4)
|
net-http
|
||||||
faraday-net_http (3.0.2)
|
|
||||||
ffi (1.16.3)
|
ffi (1.16.3)
|
||||||
fiber-annotation (0.2.0)
|
fiber-annotation (0.2.0)
|
||||||
fiber-local (1.0.0)
|
fiber-local (1.1.0)
|
||||||
|
fiber-storage
|
||||||
|
fiber-storage (0.1.0)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
google-protobuf (3.25.1-arm64-darwin)
|
google-protobuf (4.26.1-arm64-darwin)
|
||||||
google-protobuf (3.25.1-x86_64-linux)
|
rake (>= 13)
|
||||||
|
google-protobuf (4.26.1-x86_64-linux)
|
||||||
|
rake (>= 13)
|
||||||
hashery (2.1.2)
|
hashery (2.1.2)
|
||||||
html-proofer (5.0.8)
|
html-proofer (5.0.9)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
async (~> 2.1)
|
async (~> 2.1)
|
||||||
nokogiri (~> 1.13)
|
nokogiri (~> 1.13)
|
||||||
@@ -53,9 +57,9 @@ GEM
|
|||||||
yell (~> 2.0)
|
yell (~> 2.0)
|
||||||
zeitwerk (~> 2.5)
|
zeitwerk (~> 2.5)
|
||||||
http_parser.rb (0.8.0)
|
http_parser.rb (0.8.0)
|
||||||
i18n (1.14.1)
|
i18n (1.14.4)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
io-event (1.2.3)
|
io-event (1.5.1)
|
||||||
jekyll (4.3.3)
|
jekyll (4.3.3)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
@@ -83,63 +87,69 @@ GEM
|
|||||||
jekyll (>= 3.8, < 5.0)
|
jekyll (>= 3.8, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
|
json (2.7.2)
|
||||||
kramdown (2.4.0)
|
kramdown (2.4.0)
|
||||||
rexml
|
rexml
|
||||||
kramdown-parser-gfm (1.1.0)
|
kramdown-parser-gfm (1.1.0)
|
||||||
kramdown (~> 2.0)
|
kramdown (~> 2.0)
|
||||||
liquid (4.0.4)
|
liquid (4.0.4)
|
||||||
listen (3.8.0)
|
listen (3.9.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
mercenary (0.4.0)
|
mercenary (0.4.0)
|
||||||
nokogiri (1.16.2-arm64-darwin)
|
net-http (0.4.1)
|
||||||
|
uri
|
||||||
|
nokogiri (1.16.5-arm64-darwin)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
nokogiri (1.16.2-x86_64-linux)
|
nokogiri (1.16.5-x86_64-linux)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
octokit (6.1.1)
|
octokit (6.1.1)
|
||||||
faraday (>= 1, < 3)
|
faraday (>= 1, < 3)
|
||||||
sawyer (~> 0.9)
|
sawyer (~> 0.9)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
pdf-reader (2.11.0)
|
pdf-reader (2.12.0)
|
||||||
Ascii85 (~> 1.0)
|
Ascii85 (~> 1.0)
|
||||||
afm (~> 0.2.1)
|
afm (~> 0.2.1)
|
||||||
hashery (~> 2.0)
|
hashery (~> 2.0)
|
||||||
ruby-rc4
|
ruby-rc4
|
||||||
ttfunk
|
ttfunk
|
||||||
public_suffix (5.0.4)
|
public_suffix (5.0.5)
|
||||||
racc (1.7.3)
|
racc (1.7.3)
|
||||||
rainbow (3.1.1)
|
rainbow (3.1.1)
|
||||||
rake (13.1.0)
|
rake (13.2.1)
|
||||||
rb-fsevent (0.11.2)
|
rb-fsevent (0.11.2)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.2.6)
|
rexml (3.3.3)
|
||||||
rouge (4.2.0)
|
strscan
|
||||||
|
rouge (4.2.1)
|
||||||
ruby-rc4 (0.1.5)
|
ruby-rc4 (0.1.5)
|
||||||
ruby2_keywords (0.0.5)
|
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sass-embedded (1.69.6-arm64-darwin)
|
sass-embedded (1.75.0-arm64-darwin)
|
||||||
google-protobuf (~> 3.25)
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
sass-embedded (1.69.6-x86_64-linux-gnu)
|
sass-embedded (1.75.0-x86_64-linux-gnu)
|
||||||
google-protobuf (~> 3.25)
|
google-protobuf (>= 3.25, < 5.0)
|
||||||
sawyer (0.9.2)
|
sawyer (0.9.2)
|
||||||
addressable (>= 2.3.5)
|
addressable (>= 2.3.5)
|
||||||
faraday (>= 0.17.3, < 3)
|
faraday (>= 0.17.3, < 3)
|
||||||
|
strscan (3.1.0)
|
||||||
terminal-table (3.0.2)
|
terminal-table (3.0.2)
|
||||||
unicode-display_width (>= 1.1.1, < 3)
|
unicode-display_width (>= 1.1.1, < 3)
|
||||||
timers (4.3.5)
|
timers (4.3.5)
|
||||||
ttfunk (1.7.0)
|
ttfunk (1.8.0)
|
||||||
typhoeus (1.4.0)
|
bigdecimal (~> 3.1)
|
||||||
|
typhoeus (1.4.1)
|
||||||
ethon (>= 0.9.0)
|
ethon (>= 0.9.0)
|
||||||
unicode-display_width (2.5.0)
|
unicode-display_width (2.5.0)
|
||||||
|
uri (0.13.0)
|
||||||
webrick (1.8.1)
|
webrick (1.8.1)
|
||||||
yell (2.2.2)
|
yell (2.2.2)
|
||||||
zeitwerk (2.6.11)
|
zeitwerk (2.6.13)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
arm64-darwin
|
arm64-darwin
|
||||||
x86_64-linux
|
x86_64-linux-gnu
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
bundler (>= 2.3.5)
|
bundler (>= 2.3.5)
|
||||||
@@ -149,4 +159,4 @@ DEPENDENCIES
|
|||||||
just-the-docs!
|
just-the-docs!
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.4.13
|
2.5.9
|
||||||
|
@@ -109,6 +109,10 @@ aux_links:
|
|||||||
# Makes Aux links open in a new tab. Default is false
|
# Makes Aux links open in a new tab. Default is false
|
||||||
aux_links_new_tab: false
|
aux_links_new_tab: false
|
||||||
|
|
||||||
|
# Enable or disable the side/mobile menu globally
|
||||||
|
# Nav menu can also be selectively enabled or disabled using page variables or the minimal layout
|
||||||
|
nav_enabled: true
|
||||||
|
|
||||||
# Sort order for navigation links
|
# Sort order for navigation links
|
||||||
# nav_sort: case_insensitive # default, equivalent to nil
|
# nav_sort: case_insensitive # default, equivalent to nil
|
||||||
nav_sort: case_sensitive # Capital letters sorted before lowercase
|
nav_sort: case_sensitive # Capital letters sorted before lowercase
|
||||||
@@ -118,6 +122,10 @@ nav_external_links:
|
|||||||
- title: Just the Docs on GitHub
|
- title: Just the Docs on GitHub
|
||||||
url: https://github.com/just-the-docs/just-the-docs
|
url: https://github.com/just-the-docs/just-the-docs
|
||||||
|
|
||||||
|
liquid:
|
||||||
|
error_mode: strict
|
||||||
|
strict_filters: true
|
||||||
|
|
||||||
# Footer content
|
# Footer content
|
||||||
# appears at the bottom of every page's main content
|
# appears at the bottom of every page's main content
|
||||||
|
|
||||||
|
@@ -56,7 +56,7 @@
|
|||||||
{%- for nav_split in nav_anchor_splits -%}
|
{%- for nav_split in nav_anchor_splits -%}
|
||||||
{%- unless forloop.last -%}
|
{%- unless forloop.last -%}
|
||||||
|
|
||||||
{%- assign nav_split_next = nav_anchor_splits[forloop.index] | trim -%}
|
{%- assign nav_split_next = nav_anchor_splits[forloop.index] | strip -%}
|
||||||
|
|
||||||
{%- assign nav_split_test =
|
{%- assign nav_split_test =
|
||||||
nav_split_next | remove_first: nav_list_simple | prepend: nav_list_simple -%}
|
nav_split_next | remove_first: nav_list_simple | prepend: nav_list_simple -%}
|
||||||
|
@@ -9,7 +9,13 @@ layout: table_wrappers
|
|||||||
<body>
|
<body>
|
||||||
<a class="skip-to-main" href="#main-content">Skip to main content</a>
|
<a class="skip-to-main" href="#main-content">Skip to main content</a>
|
||||||
{% include icons/icons.html %}
|
{% include icons/icons.html %}
|
||||||
|
{% if page.nav_enabled == true %}
|
||||||
{% include components/sidebar.html %}
|
{% include components/sidebar.html %}
|
||||||
|
{% elsif layout.nav_enabled == true and page.nav_enabled == nil %}
|
||||||
|
{% include components/sidebar.html %}
|
||||||
|
{% elsif site.nav_enabled != false and layout.nav_enabled == nil and page.nav_enabled == nil %}
|
||||||
|
{% include components/sidebar.html %}
|
||||||
|
{% endif %}
|
||||||
<div class="main" id="top">
|
<div class="main" id="top">
|
||||||
{% include components/header.html %}
|
{% include components/header.html %}
|
||||||
<div class="main-content-wrap">
|
<div class="main-content-wrap">
|
||||||
|
@@ -1,34 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: table_wrappers
|
layout: default
|
||||||
|
nav_enabled: false
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
{{ content }}
|
||||||
|
|
||||||
<html lang="{{ site.lang | default: 'en-US' }}">
|
|
||||||
{% include head.html %}
|
|
||||||
<body>
|
|
||||||
<a class="skip-to-main" href="#main-content">Skip to main content</a>
|
|
||||||
{% include icons/icons.html %}
|
|
||||||
<div class="main-content-wrap" id="top">
|
|
||||||
{% include components/breadcrumbs.html %}
|
|
||||||
<div id="main-content" class="main-content" role="main">
|
|
||||||
{% if site.heading_anchors != false %}
|
|
||||||
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
|
|
||||||
{% else %}
|
|
||||||
{{ content }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.has_children == true and page.has_toc != false %}
|
|
||||||
{% include components/children_nav.html %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include components/footer.html %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if site.mermaid %}
|
|
||||||
{% include components/mermaid.html %}
|
|
||||||
{% endif %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
@@ -10,9 +10,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@include fs-4;
|
|
||||||
|
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
|
||||||
|
@include fs-4;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@@ -142,10 +142,10 @@ div.highlighter-rouge {
|
|||||||
|
|
||||||
// for AsciiDoc. we also need to fix the margins for its parent container.
|
// for AsciiDoc. we also need to fix the margins for its parent container.
|
||||||
div.listingblock {
|
div.listingblock {
|
||||||
@include scroll-and-spacing("div.content", "div.content > pre");
|
|
||||||
|
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: $sp-3;
|
margin-bottom: $sp-3;
|
||||||
|
|
||||||
|
@include scroll-and-spacing("div.content", "div.content > pre");
|
||||||
}
|
}
|
||||||
|
|
||||||
// {% highlight LANG %}...{% endhighlight %},
|
// {% highlight LANG %}...{% endhighlight %},
|
||||||
@@ -176,12 +176,12 @@ figure.highlight {
|
|||||||
|
|
||||||
td,
|
td,
|
||||||
pre {
|
pre {
|
||||||
@include fs-2;
|
|
||||||
|
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: $code-background-color;
|
background-color: $code-background-color;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
||||||
|
@include fs-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
td.gl {
|
td.gl {
|
||||||
|
@@ -14,9 +14,9 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background-color: $blue-100;
|
background-color: $blue-100;
|
||||||
@include fs-2;
|
|
||||||
|
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
||||||
|
@include fs-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label-green:not(g) {
|
.label-green:not(g) {
|
||||||
|
@@ -19,12 +19,9 @@
|
|||||||
width: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width});
|
width: calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width});
|
||||||
min-width: $nav-width;
|
min-width: $nav-width;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
& + .main {
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
position: relative;
|
|
||||||
max-width: $content-width;
|
|
||||||
margin-left: $nav-width-md;
|
margin-left: $nav-width-md;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,14 +34,42 @@
|
|||||||
);
|
);
|
||||||
// stylelint-enable function-name-case
|
// stylelint-enable function-name-case
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header {
|
||||||
|
display: none;
|
||||||
|
background-color: $sidebar-color;
|
||||||
|
|
||||||
|
@include mq(md) {
|
||||||
|
display: flex;
|
||||||
|
background-color: $body-background-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.nav-open {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
@include mq(md) {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
margin: auto;
|
||||||
|
|
||||||
|
@include mq(md) {
|
||||||
|
position: relative;
|
||||||
|
max-width: $content-width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content-wrap {
|
.main-content-wrap {
|
||||||
@include container;
|
|
||||||
|
|
||||||
padding-top: $gutter-spacing-sm;
|
padding-top: $gutter-spacing-sm;
|
||||||
padding-bottom: $gutter-spacing-sm;
|
padding-bottom: $gutter-spacing-sm;
|
||||||
|
|
||||||
|
@include container;
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
padding-top: $gutter-spacing;
|
padding-top: $gutter-spacing;
|
||||||
padding-bottom: $gutter-spacing;
|
padding-bottom: $gutter-spacing;
|
||||||
@@ -53,23 +78,12 @@
|
|||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
display: none;
|
border-bottom: $border $border-color;
|
||||||
background-color: $sidebar-color;
|
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: $header-height;
|
height: $header-height;
|
||||||
background-color: $body-background-color;
|
|
||||||
border-bottom: $border $border-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.nav-open {
|
|
||||||
display: block;
|
|
||||||
|
|
||||||
@include mq(md) {
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -112,8 +126,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-title {
|
.site-title {
|
||||||
@include container;
|
|
||||||
|
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -121,6 +133,9 @@
|
|||||||
padding-top: $sp-3;
|
padding-top: $sp-3;
|
||||||
padding-bottom: $sp-3;
|
padding-bottom: $sp-3;
|
||||||
color: $body-heading-color;
|
color: $body-heading-color;
|
||||||
|
|
||||||
|
@include container;
|
||||||
|
|
||||||
@include fs-6;
|
@include fs-6;
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
@@ -186,14 +201,15 @@ body {
|
|||||||
// stylelint-enable selector-max-type
|
// stylelint-enable selector-max-type
|
||||||
|
|
||||||
.site-footer {
|
.site-footer {
|
||||||
@include container;
|
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
padding-top: $sp-4;
|
padding-top: $sp-4;
|
||||||
padding-bottom: $sp-4;
|
padding-bottom: $sp-4;
|
||||||
color: $grey-dk-000;
|
color: $grey-dk-000;
|
||||||
|
|
||||||
|
@include container;
|
||||||
|
|
||||||
@include fs-2;
|
@include fs-2;
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
|
@@ -8,11 +8,11 @@
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
.nav-list-item {
|
.nav-list-item {
|
||||||
@include fs-4;
|
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
|
@include fs-4;
|
||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
@include fs-3;
|
@include fs-3;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
@mixin fs-1 {
|
@mixin fs-1 {
|
||||||
|
& {
|
||||||
font-size: $font-size-1 !important;
|
font-size: $font-size-1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-1-sm !important;
|
font-size: $font-size-1-sm !important;
|
||||||
@@ -7,7 +9,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-2 {
|
@mixin fs-2 {
|
||||||
|
& {
|
||||||
font-size: $font-size-2 !important;
|
font-size: $font-size-2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-3 !important;
|
font-size: $font-size-3 !important;
|
||||||
@@ -15,7 +19,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-3 {
|
@mixin fs-3 {
|
||||||
|
& {
|
||||||
font-size: $font-size-3 !important;
|
font-size: $font-size-3 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-4 !important;
|
font-size: $font-size-4 !important;
|
||||||
@@ -23,7 +29,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-4 {
|
@mixin fs-4 {
|
||||||
|
& {
|
||||||
font-size: $font-size-4 !important;
|
font-size: $font-size-4 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-5 !important;
|
font-size: $font-size-5 !important;
|
||||||
@@ -31,7 +39,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-5 {
|
@mixin fs-5 {
|
||||||
|
& {
|
||||||
font-size: $font-size-5 !important;
|
font-size: $font-size-5 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-6 !important;
|
font-size: $font-size-6 !important;
|
||||||
@@ -39,7 +49,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-6 {
|
@mixin fs-6 {
|
||||||
|
& {
|
||||||
font-size: $font-size-6 !important;
|
font-size: $font-size-6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-7 !important;
|
font-size: $font-size-7 !important;
|
||||||
@@ -48,8 +60,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-7 {
|
@mixin fs-7 {
|
||||||
|
& {
|
||||||
font-size: $font-size-7 !important;
|
font-size: $font-size-7 !important;
|
||||||
line-height: $body-heading-line-height;
|
line-height: $body-heading-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-8 !important;
|
font-size: $font-size-8 !important;
|
||||||
@@ -57,8 +71,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-8 {
|
@mixin fs-8 {
|
||||||
|
& {
|
||||||
font-size: $font-size-8 !important;
|
font-size: $font-size-8 !important;
|
||||||
line-height: $body-heading-line-height;
|
line-height: $body-heading-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-9 !important;
|
font-size: $font-size-9 !important;
|
||||||
@@ -66,8 +82,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-9 {
|
@mixin fs-9 {
|
||||||
|
& {
|
||||||
font-size: $font-size-9 !important;
|
font-size: $font-size-9 !important;
|
||||||
line-height: $body-heading-line-height;
|
line-height: $body-heading-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-10 !important;
|
font-size: $font-size-10 !important;
|
||||||
@@ -75,8 +93,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin fs-10 {
|
@mixin fs-10 {
|
||||||
|
& {
|
||||||
font-size: $font-size-10 !important;
|
font-size: $font-size-10 !important;
|
||||||
line-height: $body-heading-line-height;
|
line-height: $body-heading-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
@include mq(sm) {
|
@include mq(sm) {
|
||||||
font-size: $font-size-10-sm !important;
|
font-size: $font-size-10-sm !important;
|
||||||
|
@@ -21,14 +21,14 @@ table {
|
|||||||
|
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
@include fs-3;
|
|
||||||
|
|
||||||
min-width: 7.5rem;
|
min-width: 7.5rem;
|
||||||
padding: $sp-2 $sp-3;
|
padding: $sp-2 $sp-3;
|
||||||
background-color: $table-background-color;
|
background-color: $table-background-color;
|
||||||
border-bottom: $border rgba($border-color, 0.5);
|
border-bottom: $border rgba($border-color, 0.5);
|
||||||
border-left: $border $border-color;
|
border-left: $border $border-color;
|
||||||
|
|
||||||
|
@include fs-3;
|
||||||
|
|
||||||
&:first-of-type {
|
&:first-of-type {
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
}
|
}
|
||||||
|
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
h1,
|
h1,
|
||||||
.text-alpha {
|
.text-alpha {
|
||||||
@include fs-8;
|
|
||||||
|
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
|
||||||
|
@include fs-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2,
|
h2,
|
||||||
@@ -21,11 +21,11 @@ h3,
|
|||||||
|
|
||||||
h4,
|
h4,
|
||||||
.text-delta {
|
.text-delta {
|
||||||
@include fs-2;
|
|
||||||
|
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
|
|
||||||
|
@include fs-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 code {
|
h4 code {
|
||||||
|
63
_sass/vendor/OneDarkJekyll/syntax.scss
vendored
63
_sass/vendor/OneDarkJekyll/syntax.scss
vendored
@@ -5,198 +5,261 @@ pre.highlight {
|
|||||||
background: #31343f;
|
background: #31343f;
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight pre {
|
.highlight pre {
|
||||||
background: #31343f;
|
background: #31343f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .hll {
|
.highlight .hll {
|
||||||
background: #31343f;
|
background: #31343f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .c {
|
.highlight .c {
|
||||||
color: #63677e;
|
color: #63677e;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .err {
|
.highlight .err {
|
||||||
color: #960050;
|
color: #960050;
|
||||||
background-color: #1e0010;
|
background-color: #1e0010;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .k {
|
.highlight .k {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .l {
|
.highlight .l {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .n {
|
.highlight .n {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .o {
|
.highlight .o {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .p {
|
.highlight .p {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cm {
|
.highlight .cm {
|
||||||
color: #63677e;
|
color: #63677e;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cp {
|
.highlight .cp {
|
||||||
color: #63677e;
|
color: #63677e;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .c1 {
|
.highlight .c1 {
|
||||||
color: #63677e;
|
color: #63677e;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cs {
|
.highlight .cs {
|
||||||
color: #63677e;
|
color: #63677e;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ge {
|
.highlight .ge {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gs {
|
.highlight .gs {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kc {
|
.highlight .kc {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kd {
|
.highlight .kd {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kn {
|
.highlight .kn {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kp {
|
.highlight .kp {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kr {
|
.highlight .kr {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kt {
|
.highlight .kt {
|
||||||
color: #e19ef5;
|
color: #e19ef5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ld {
|
.highlight .ld {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .m {
|
.highlight .m {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s {
|
.highlight .s {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .na {
|
.highlight .na {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nb {
|
.highlight .nb {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nc {
|
.highlight .nc {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .no {
|
.highlight .no {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nd {
|
.highlight .nd {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ni {
|
.highlight .ni {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ne {
|
.highlight .ne {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nf {
|
.highlight .nf {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nl {
|
.highlight .nl {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nn {
|
.highlight .nn {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nx {
|
.highlight .nx {
|
||||||
color: #dee2f7;
|
color: #dee2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .py {
|
.highlight .py {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nt {
|
.highlight .nt {
|
||||||
color: #f9867b;
|
color: #f9867b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nv {
|
.highlight .nv {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ow {
|
.highlight .ow {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .w {
|
.highlight .w {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mf {
|
.highlight .mf {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mh {
|
.highlight .mh {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mi {
|
.highlight .mi {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mo {
|
.highlight .mo {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sb {
|
.highlight .sb {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sc {
|
.highlight .sc {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sd {
|
.highlight .sd {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s2 {
|
.highlight .s2 {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .se {
|
.highlight .se {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sh {
|
.highlight .sh {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .si {
|
.highlight .si {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sx {
|
.highlight .sx {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sr {
|
.highlight .sr {
|
||||||
color: #7be2f9;
|
color: #7be2f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s1 {
|
.highlight .s1 {
|
||||||
color: #a3eea0;
|
color: #a3eea0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ss {
|
.highlight .ss {
|
||||||
color: #7be2f9;
|
color: #7be2f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .bp {
|
.highlight .bp {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vc {
|
.highlight .vc {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vg {
|
.highlight .vg {
|
||||||
color: #fdce68;
|
color: #fdce68;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vi {
|
.highlight .vi {
|
||||||
color: #f9867b;
|
color: #f9867b;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .il {
|
.highlight .il {
|
||||||
color: #eddc96;
|
color: #eddc96;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gu {
|
.highlight .gu {
|
||||||
color: #75715e;
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gd {
|
.highlight .gd {
|
||||||
color: #f92672;
|
color: #f92672;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gi {
|
.highlight .gi {
|
||||||
color: #a6e22e;
|
color: #a6e22e;
|
||||||
}
|
}
|
||||||
|
65
_sass/vendor/OneLightJekyll/syntax.scss
vendored
65
_sass/vendor/OneLightJekyll/syntax.scss
vendored
@@ -5,204 +5,269 @@ pre.highlight {
|
|||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight pre {
|
.highlight pre {
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .hll {
|
.highlight .hll {
|
||||||
background: #f9f9f9;
|
background: #f9f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .c {
|
.highlight .c {
|
||||||
color: #9fa0a6;
|
color: #9fa0a6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .err {
|
.highlight .err {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #e05151;
|
background-color: #e05151;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .k {
|
.highlight .k {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .l {
|
.highlight .l {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .n {
|
.highlight .n {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .o {
|
.highlight .o {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .p {
|
.highlight .p {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cm {
|
.highlight .cm {
|
||||||
color: #9fa0a6;
|
color: #9fa0a6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cp {
|
.highlight .cp {
|
||||||
color: #9fa0a6;
|
color: #9fa0a6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .c1 {
|
.highlight .c1 {
|
||||||
color: #9fa0a6;
|
color: #9fa0a6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .cs {
|
.highlight .cs {
|
||||||
color: #9fa0a6;
|
color: #9fa0a6;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ge {
|
.highlight .ge {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gs {
|
.highlight .gs {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kc {
|
.highlight .kc {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kd {
|
.highlight .kd {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kn {
|
.highlight .kn {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kp {
|
.highlight .kp {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kr {
|
.highlight .kr {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .kt {
|
.highlight .kt {
|
||||||
color: #a625a4;
|
color: #a625a4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ld {
|
.highlight .ld {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .m {
|
.highlight .m {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s {
|
.highlight .s {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .na {
|
.highlight .na {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nb {
|
.highlight .nb {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nc {
|
.highlight .nc {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .no {
|
.highlight .no {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nd {
|
.highlight .nd {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ni {
|
.highlight .ni {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ne {
|
.highlight .ne {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nf {
|
.highlight .nf {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nl {
|
.highlight .nl {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nn {
|
.highlight .nn {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nx {
|
.highlight .nx {
|
||||||
color: #383942;
|
color: #383942;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .py {
|
.highlight .py {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nt {
|
.highlight .nt {
|
||||||
color: #e35549;
|
color: #e35549;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .nv {
|
.highlight .nv {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ow {
|
.highlight .ow {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .w {
|
.highlight .w {
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mf {
|
.highlight .mf {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mh {
|
.highlight .mh {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mi {
|
.highlight .mi {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .mo {
|
.highlight .mo {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sb {
|
.highlight .sb {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sc {
|
.highlight .sc {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sd {
|
.highlight .sd {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s2 {
|
.highlight .s2 {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .se {
|
.highlight .se {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sh {
|
.highlight .sh {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .si {
|
.highlight .si {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sx {
|
.highlight .sx {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .sr {
|
.highlight .sr {
|
||||||
color: #0083bb;
|
color: #0083bb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .s1 {
|
.highlight .s1 {
|
||||||
color: #50a04f;
|
color: #50a04f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .ss {
|
.highlight .ss {
|
||||||
color: #0083bb;
|
color: #0083bb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .bp {
|
.highlight .bp {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vc {
|
.highlight .vc {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vg {
|
.highlight .vg {
|
||||||
color: #ca7601;
|
color: #ca7601;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .vi {
|
.highlight .vi {
|
||||||
color: #e35549;
|
color: #e35549;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .il {
|
.highlight .il {
|
||||||
color: #b66a00;
|
color: #b66a00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gu {
|
.highlight .gu {
|
||||||
color: #75715e;
|
color: #75715e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gd {
|
.highlight .gd {
|
||||||
color: #e05151;
|
color: #e05151;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .gi {
|
.highlight .gi {
|
||||||
color: #43d089;
|
color: #43d089;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .language-json .w + .s2 {
|
.highlight .language-json .w + .s2 {
|
||||||
color: #e35549;
|
color: #e35549;
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight .language-json .kc {
|
.highlight .language-json .kc {
|
||||||
color: #0083bb;
|
color: #0083bb;
|
||||||
}
|
}
|
||||||
|
14
_sass/vendor/normalize.scss/normalize.scss
vendored
14
_sass/vendor/normalize.scss/normalize.scss
vendored
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
html {
|
html {
|
||||||
line-height: 1.15; /* 1 */
|
line-height: 1.15; /* 1 */
|
||||||
-webkit-text-size-adjust: 100%; /* 2 */
|
text-size-adjust: 100%; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sections
|
/* Sections
|
||||||
@@ -62,7 +62,7 @@ hr {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family: monospace, monospace; /* 1 */
|
font-family: monospace; /* 1 */
|
||||||
font-size: 1em; /* 2 */
|
font-size: 1em; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ strong {
|
|||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: monospace, monospace; /* 1 */
|
font-family: monospace; /* 1 */
|
||||||
font-size: 1em; /* 2 */
|
font-size: 1em; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ button,
|
|||||||
[type="button"],
|
[type="button"],
|
||||||
[type="reset"],
|
[type="reset"],
|
||||||
[type="submit"] {
|
[type="submit"] {
|
||||||
-webkit-appearance: button;
|
appearance: button;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -290,7 +290,7 @@ textarea {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"] {
|
[type="search"] {
|
||||||
-webkit-appearance: textfield; /* 1 */
|
appearance: textfield; /* 1 */
|
||||||
outline-offset: -2px; /* 2 */
|
outline-offset: -2px; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ textarea {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
[type="search"]::-webkit-search-decoration {
|
[type="search"]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -308,7 +308,7 @@ textarea {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
-webkit-appearance: button; /* 1 */
|
appearance: button; /* 1 */
|
||||||
font: inherit; /* 2 */
|
font: inherit; /* 2 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
layout: null
|
||||||
---
|
---
|
||||||
(function (jtd, undefined) {
|
(function (jtd, undefined) {
|
||||||
|
|
||||||
@@ -555,12 +556,14 @@ function activateNav() {
|
|||||||
// Document ready
|
// Document ready
|
||||||
|
|
||||||
jtd.onReady(function(){
|
jtd.onReady(function(){
|
||||||
|
if (document.getElementById('site-nav')) {
|
||||||
initNav();
|
initNav();
|
||||||
|
activateNav();
|
||||||
|
scrollNav();
|
||||||
|
}
|
||||||
{%- if site.search_enabled != false %}
|
{%- if site.search_enabled != false %}
|
||||||
initSearch();
|
initSearch();
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
activateNav();
|
|
||||||
scrollNav();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Copy button on code
|
// Copy button on code
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
layout: null
|
||||||
permalink: /assets/js/search-data.json
|
permalink: /assets/js/search-data.json
|
||||||
---
|
---
|
||||||
{
|
{
|
||||||
|
@@ -101,6 +101,14 @@ aux_links:
|
|||||||
aux_links_new_tab: false
|
aux_links_new_tab: false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Navigation sidebar
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Enable or disable the side/mobile menu globally
|
||||||
|
# Nav menu can also be selectively enabled or disabled using page variables or the minimal layout
|
||||||
|
nav_enabled: true
|
||||||
|
```
|
||||||
|
|
||||||
## Heading anchor links
|
## Heading anchor links
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -145,7 +153,7 @@ gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into t
|
|||||||
_note: `footer_content` is deprecated, but still supported. For a better experience we have moved this into an include called `_includes/footer_custom.html` which will allow for robust markup / liquid-based content._
|
_note: `footer_content` is deprecated, but still supported. For a better experience we have moved this into an include called `_includes/footer_custom.html` which will allow for robust markup / liquid-based content._
|
||||||
|
|
||||||
- the "page last modified" data will only display if a page has a key called `last_modified_date`, formatted in some readable date format
|
- 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)
|
- `last_edit_time_format` uses Ruby's DateTime formatter; for examples and information, please refer to the [official Ruby docs on `strftime` formatting](https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html)
|
||||||
- `gh_edit_repository` is the URL of the project's GitHub repository
|
- `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 `main`
|
- `gh_edit_branch` is the branch that the docs site is served from; defaults to `main`
|
||||||
- `gh_edit_source` is the source directory that your project files are stored in (should be the same as [site.source](https://jekyllrb.com/docs/configuration/options/))
|
- `gh_edit_source` is the source directory that your project files are stored in (should be the same as [site.source](https://jekyllrb.com/docs/configuration/options/))
|
||||||
|
@@ -329,43 +329,9 @@ Future versions may subdivide components further; we guarantee that we will only
|
|||||||
|
|
||||||
### Alternative layouts and example (`minimal`)
|
### Alternative layouts and example (`minimal`)
|
||||||
|
|
||||||
Users can develop custom layouts that compose, omit, or add components differently. We provide one first-class example titled `minimal`, inspired by Kevin Lin's work in [just-the-class](https://github.com/kevinlin1/just-the-class). This `minimal` layout does not render the sidebar, header, or search. To see an example, visit the [minimal layout test]({{site.baseurl}}/docs/minimal-test/) page.
|
Users can develop custom layouts that compose, omit, or add components differently. We provide one first-class example titled `minimal`, which disables the navigation sidebar. To see an example, visit the [minimal layout test]({{site.baseurl}}/docs/minimal-test/) page.
|
||||||
|
|
||||||
Here is a simplified code example of what it looks like:
|
Users can indicate this alternative layout in page front matter:
|
||||||
|
|
||||||
{% raw %}
|
|
||||||
|
|
||||||
```liquid
|
|
||||||
<!-- a simplified version of _layouts/minimal.html -->
|
|
||||||
<html>
|
|
||||||
{% include head.html %}
|
|
||||||
<body>
|
|
||||||
{% include icons/icons.html %}
|
|
||||||
{% comment %} Bandaid fix for breadcrumbs here! {% endcomment %}
|
|
||||||
{% include components/breadcrumbs.html %}
|
|
||||||
|
|
||||||
{% if site.heading_anchors != false %}
|
|
||||||
{% include vendor/anchor_headings.html html=content ... %}
|
|
||||||
{% else %}
|
|
||||||
{{ content }}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if page.has_children == true and page.has_toc != false %}
|
|
||||||
{% include components/children_nav.html %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include components/footer.html %}
|
|
||||||
|
|
||||||
{% if site.mermaid %}
|
|
||||||
{% include components/mermaid.html %}
|
|
||||||
{% endif %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
{% endraw %}
|
|
||||||
|
|
||||||
This layout is packaged in Just the Docs. Users can indicate this alternative layout in page front matter:
|
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
||||||
@@ -384,10 +350,10 @@ Similarly, users and developers can create other alternative layouts using Just
|
|||||||
|
|
||||||
Under the hood,
|
Under the hood,
|
||||||
|
|
||||||
- `default` and `minimal` inherit from the `table_wrappers` layout, which wraps all HTML `<table>` tags with a `div .table-wrapper`
|
- `default` inherit from the `table_wrappers` layout, which wraps all HTML `<table>` tags with a `div .table-wrapper`
|
||||||
- `table_wrappers` inherits from `vendor/compress`, which is a local copy of Anatol Broder's [jekyll-compress-html](https://github.com/penibelst/jekyll-compress-html) Jekyll plugin
|
- `table_wrappers` inherits from `vendor/compress`, which is a local copy of Anatol Broder's [jekyll-compress-html](https://github.com/penibelst/jekyll-compress-html) Jekyll plugin
|
||||||
|
|
||||||
Note that as of now, `minimal` and `default` have no inheritance relationship.
|
The `minimal` layout inherits from the `default` but assigns `nav_enabled: false` to disable the navigation sidebar.
|
||||||
|
|
||||||
### Overridden default Jekyll layouts
|
### Overridden default Jekyll layouts
|
||||||
|
|
||||||
|
@@ -28,7 +28,20 @@ Each page that has child pages generally has a list of links to those pages (you
|
|||||||
|
|
||||||
## The `minimal` layout
|
## The `minimal` layout
|
||||||
|
|
||||||
A child and grandchild page of this page use the minimal layout. This differs from the default layout by omitting the sidebar -- and thereby also the navigation panel. To navigate between pages with the minimal layout, you can use the breadcrumbs and the tables of contents.
|
A child and grandchild page of this page use the minimal layout. This differs from the default layout by omitting the sidebar---and thereby also the navigation panel. To navigate between pages with the minimal layout, you can use the breadcrumbs and the tables of contents.
|
||||||
|
|
||||||
|
## Selectively hiding or showing the sidebar
|
||||||
|
|
||||||
|
[Jekyll's front matter defaults] can be used to apply the `minimal` layout for many pages. But there are also other variables that can control the page layout. In `_config.yml`, you can set `nav_enabled: false` to disable the sidebar navigation panel across the entire site. This can then be selectively enabled on a page-by-page basis by assigning the `nav_enabled: true` page [front matter] variable. For instance, this could be used to enable sidebar navigation on a home page while all other pages have sidebar navigation disabled.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
title: Home
|
||||||
|
nav_enabled: true
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
## Other layouts
|
## Other layouts
|
||||||
|
|
||||||
|
@@ -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.8.0"
|
spec.version = "0.9.0"
|
||||||
spec.authors = ["Patrick Marsceill", "Matthew Wang"]
|
spec.authors = ["Patrick Marsceill", "Matthew Wang"]
|
||||||
spec.email = ["patrick.marsceill@gmail.com", "matt@matthewwang.me"]
|
spec.email = ["patrick.marsceill@gmail.com", "matt@matthewwang.me"]
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@ namespace :search do
|
|||||||
|
|
||||||
File.open('assets/js/zzzz-search-data.json', 'w') do |f|
|
File.open('assets/js/zzzz-search-data.json', 'w') do |f|
|
||||||
f.puts '---
|
f.puts '---
|
||||||
|
layout: null
|
||||||
permalink: /assets/js/search-data.json
|
permalink: /assets/js/search-data.json
|
||||||
---
|
---
|
||||||
{
|
{
|
||||||
|
1829
package-lock.json
generated
1829
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,9 +7,9 @@
|
|||||||
"bugs": "https://github.com/just-the-docs/just-the-docs/issues",
|
"bugs": "https://github.com/just-the-docs/just-the-docs/issues",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.3.3",
|
||||||
"stylelint": "^15.11.0",
|
"stylelint": "^16.8.1",
|
||||||
"stylelint-config-standard-scss": "^11.1.0"
|
"stylelint-config-standard-scss": "^13.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "npm-run-all --parallel --continue-on-error lint:*",
|
"lint": "npm-run-all --parallel --continue-on-error lint:*",
|
||||||
@@ -22,8 +22,7 @@
|
|||||||
"ignoreFiles": [
|
"ignoreFiles": [
|
||||||
"assets/css/just-the-docs-default.scss",
|
"assets/css/just-the-docs-default.scss",
|
||||||
"assets/css/just-the-docs-light.scss",
|
"assets/css/just-the-docs-light.scss",
|
||||||
"assets/css/just-the-docs-dark.scss",
|
"assets/css/just-the-docs-dark.scss"
|
||||||
"_sass/vendor/**/*.scss"
|
|
||||||
],
|
],
|
||||||
"extends": [
|
"extends": [
|
||||||
"stylelint-config-standard-scss"
|
"stylelint-config-standard-scss"
|
||||||
|
Reference in New Issue
Block a user