From 94c1dc37365b59122f178e58d03880c0819206ea Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Sat, 16 Nov 2019 11:44:46 +0100 Subject: [PATCH 01/83] Hides dispay of grandchildren Display of grandchildren links in the navigation is now delayed until their parent is selected. To test, select the `Grandchildren test` node. Only the direct children should appear. Selecting one of them then shows its children. --- _includes/nav.html | 6 +++++- docs/grandchildren-test/buttons.md | 11 +++++++++++ docs/grandchildren-test/buttons/grandchild.md | 9 +++++++++ docs/grandchildren-test/index.md | 12 ++++++++++++ docs/grandchildren-test/labels.md | 11 +++++++++++ docs/grandchildren-test/labels/label-grandchild.md | 9 +++++++++ 6 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 docs/grandchildren-test/buttons.md create mode 100644 docs/grandchildren-test/buttons/grandchild.md create mode 100644 docs/grandchildren-test/index.md create mode 100644 docs/grandchildren-test/labels.md create mode 100644 docs/grandchildren-test/labels/label-grandchild.md diff --git a/_includes/nav.html b/_includes/nav.html index d561a42..eb96e28 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -10,6 +10,7 @@ {%- endif -%} {{ node.title }} {%- if node.has_children -%} + {%- if page.url == node.url or page.parent == node.title or page.grand_parent == node.title -%} {%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%} + {%- endif -%} {%- endif -%} {%- endfor -%} {%- endif -%} + {%- endif -%} {%- endif -%} {%- endunless -%} diff --git a/docs/grandchildren-test/buttons.md b/docs/grandchildren-test/buttons.md new file mode 100644 index 0000000..96fc21e --- /dev/null +++ b/docs/grandchildren-test/buttons.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Buttons +parent: Grandchildren test +has_children: true +--- + +Buttons +---- + +Child of [Grandchildren test](..) diff --git a/docs/grandchildren-test/buttons/grandchild.md b/docs/grandchildren-test/buttons/grandchild.md new file mode 100644 index 0000000..093d200 --- /dev/null +++ b/docs/grandchildren-test/buttons/grandchild.md @@ -0,0 +1,9 @@ +--- +layout: default +title: Buttons Child Page +parent: Buttons +grand_parent: Grandchildren test +--- + +Buttons Child Page +---- diff --git a/docs/grandchildren-test/index.md b/docs/grandchildren-test/index.md new file mode 100644 index 0000000..dd03d58 --- /dev/null +++ b/docs/grandchildren-test/index.md @@ -0,0 +1,12 @@ +--- +layout: default +title: Grandchildren test +has_children: true +nav_order: 8 +--- + +Grandchildren test +================== + +Has a child [Buttons](buttons) +and a grandchild [Child of Buttons](buttons/grandchild) diff --git a/docs/grandchildren-test/labels.md b/docs/grandchildren-test/labels.md new file mode 100644 index 0000000..f4b9ea8 --- /dev/null +++ b/docs/grandchildren-test/labels.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Labels +parent: Grandchildren test +has_children: true +--- + +Labels +---- + +Child of Grandchildren test diff --git a/docs/grandchildren-test/labels/label-grandchild.md b/docs/grandchildren-test/labels/label-grandchild.md new file mode 100644 index 0000000..f6c9550 --- /dev/null +++ b/docs/grandchildren-test/labels/label-grandchild.md @@ -0,0 +1,9 @@ +--- +layout: default +title: Labels Child Page +parent: Labels +grand_parent: Grandchildren test +--- + +Labels Child Page +---- From 367db86fff5e37e1f5c55de7a291cf34ea4bcb89 Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Sat, 16 Nov 2019 15:14:54 +0100 Subject: [PATCH 02/83] Update just-the-docs.gemspec Trying to get the navigation to remain in the forked site --- just-the-docs.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/just-the-docs.gemspec b/just-the-docs.gemspec index 4be9738..0e38b4d 100644 --- a/just-the-docs.gemspec +++ b/just-the-docs.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.email = ["patrick.marsceill@gmail.com"] spec.summary = %q{A modern, highly customizable, and responsive Jekyll theme for documention with built-in search.} - spec.homepage = "https://github.com/pmarsceill/just-the-docs" + # spec.homepage = "https://github.com/pmarsceill/just-the-docs" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) } From f978770956cfc2792eba21f77efc138690047da3 Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Sat, 16 Nov 2019 15:18:42 +0100 Subject: [PATCH 03/83] Update just-the-docs.gemspec Trying to get the navigation to remain in the forked site --- just-the-docs.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/just-the-docs.gemspec b/just-the-docs.gemspec index 0e38b4d..67c5f01 100644 --- a/just-the-docs.gemspec +++ b/just-the-docs.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.email = ["patrick.marsceill@gmail.com"] spec.summary = %q{A modern, highly customizable, and responsive Jekyll theme for documention with built-in search.} - # spec.homepage = "https://github.com/pmarsceill/just-the-docs" + spec.homepage = "https://pdmosses.github.io/just-the-docs" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) } From 5f50531cce0646f31b9ee363e72934c085e9da82 Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Sat, 16 Nov 2019 15:20:43 +0100 Subject: [PATCH 04/83] Update just-the-docs.gemspec Trying to get the navigation to remain in the forked site --- just-the-docs.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/just-the-docs.gemspec b/just-the-docs.gemspec index 67c5f01..2381106 100644 --- a/just-the-docs.gemspec +++ b/just-the-docs.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.email = ["patrick.marsceill@gmail.com"] spec.summary = %q{A modern, highly customizable, and responsive Jekyll theme for documention with built-in search.} - spec.homepage = "https://pdmosses.github.io/just-the-docs" + spec.homepage = "https://github.com/pdmosses/just-the-docs" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r{^(assets|bin|_layouts|_includes|lib|Rakefile|_sass|LICENSE|README)}i) } From 33d1e0f8d7b0805ff668759379b1f513deeed44d Mon Sep 17 00:00:00 2001 From: Peter Mosses Date: Sat, 16 Nov 2019 15:23:29 +0100 Subject: [PATCH 05/83] Update _config.yml Trying to get the navigation to remain in the forked site --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index a090670..7e71f3e 100644 --- a/_config.yml +++ b/_config.yml @@ -16,7 +16,7 @@ title: Just the Docs description: A Jekyll theme for documentation baseurl: "/just-the-docs" # the subpath of your site, e.g. /blog -url: "https://pmarsceill.github.io" # the base hostname & protocol for your site, e.g. http://example.com +url: "https://pdmosses.github.io" # the base hostname & protocol for your site, e.g. http://example.com permalink: pretty exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"] From d00aadeee73bc2b35b17bf7c0bba3f6f4465c824 Mon Sep 17 00:00:00 2001 From: PLanCompS <18308236+pdmosses@users.noreply.github.com> Date: Mon, 27 Apr 2020 16:28:30 +0200 Subject: [PATCH 06/83] Update .gitignore Added `.jekyll-cache` --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index b447a12..a802a86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.gem .bundle +.jekyll-cache .sass-cache _site Gemfile.lock From 7cfc63e1384d91548fc25810a544b07daacca9d0 Mon Sep 17 00:00:00 2001 From: Henrique Vianna Date: Mon, 1 Jun 2020 14:35:15 -0300 Subject: [PATCH 07/83] Fix native font stack precedence issue on Windows systems. --- _sass/custom/custom.scss | 2 +- _sass/support/_variables.scss | 2 +- docs/ui-components/typography.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss index 9ac503b..b608d93 100644 --- a/_sass/custom/custom.scss +++ b/_sass/custom/custom.scss @@ -2,7 +2,7 @@ //// Typography //// -//$body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, roboto, noto, "segoe ui", arial, sans-serif; +//$body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", "segoe ui", helvetica, roboto, noto, arial, sans-serif; //$mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace; //$root-font-size: 16px; // Base font-size for rems //$body-line-height: 1.4; diff --git a/_sass/support/_variables.scss b/_sass/support/_variables.scss index 76d8b5d..8ee5399 100644 --- a/_sass/support/_variables.scss +++ b/_sass/support/_variables.scss @@ -3,7 +3,7 @@ // $body-font-family: -apple-system, BlinkMacSystemFont, "helvetica neue", - helvetica, roboto, noto, "segoe ui", arial, sans-serif !default; + "segoe ui", helvetica, roboto, noto, arial, sans-serif !default; $mono-font-family: "SFMono-Regular", Menlo, Consolas, Monospace !default; $root-font-size: 16px !default; // Base font-size for rems $body-line-height: 1.4 !default; diff --git a/docs/ui-components/typography.md b/docs/ui-components/typography.md index 2838a79..3db988c 100644 --- a/docs/ui-components/typography.md +++ b/docs/ui-components/typography.md @@ -21,7 +21,7 @@ nav_order: 1 By default, Just the Docs uses a native system font stack for sans-serif fonts: ```scss --apple-system, BlinkMacSystemFont, "helvetica neue", helvetica, roboto, noto, "segoe ui", arial, sans-serif +-apple-system, BlinkMacSystemFont, "helvetica neue", "segoe ui", helvetica, roboto, noto, arial, sans-serif ``` ABCDEFGHIJKLMNOPQRSTUVWXYZ From d7050b3f044e797465efc2bae370a9a10375d130 Mon Sep 17 00:00:00 2001 From: marksie1988 Date: Fri, 26 Jun 2020 10:08:11 +0100 Subject: [PATCH 08/83] :star: change to relative_url --- _includes/head.html | 8 ++++---- _includes/nav.html | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index eae6a5e..79c7d34 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -10,9 +10,9 @@ {% endif %} {% endif %} - + - + {% if site.ga_tracking != nil %} @@ -27,9 +27,9 @@ {% endif %} {% if site.search_enabled != false %} - + {% endif %} - + diff --git a/_includes/nav.html b/_includes/nav.html index d561a42..92dbbcf 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -6,24 +6,24 @@ {%- if node.parent == nil -%}