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
diff --git a/.prettierignore b/.prettierignore
index 41fbef8..5dc073f 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,8 +1,9 @@
package.json
package-lock.json
_site
-assets/css/dark-mode-preview.scss
-assets/css/just-the-docs.scss
+assets/css/just-the-docs-default.scss
+assets/css/just-the-docs-light.scss
+assets/css/just-the-docs-dark.scss
assets/js/vendor/lunr.min.js
assets/js/search-data.json
assets/js/just-the-docs.js
diff --git a/.stylelintrc.json b/.stylelintrc.json
index a14d920..329ca34 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,7 +1,8 @@
{
"ignoreFiles": [
- "assets/css/just-the-docs.scss",
- "assets/css/dark-mode-preview.scss",
+ "assets/css/just-the-docs-default.scss",
+ "assets/css/just-the-docs-light.scss",
+ "assets/css/just-the-docs-dark.scss",
"_sass/vendor/**/*.scss"
],
"extends": ["stylelint-config-primer", "stylelint-config-prettier"],
diff --git a/_config.yml b/_config.yml
index a090670..2ef1604 100644
--- a/_config.yml
+++ b/_config.yml
@@ -38,15 +38,32 @@ aux_links:
"Just the Docs on GitHub":
- "//github.com/pmarsceill/just-the-docs"
-# Footer content appears at the bottom of every page's main content
-footer_content: "Copyright © 2017-2019 Patrick Marsceill. Distributed by an MIT license."
+# Sort order for navigation links
+nav_sort: case_insensitive # default, equivalent to nil
+# nav_sort: case_sensitive # Capital letters sorted before lowercase
-# Color scheme currently only supports "dark" or nil (default)
+# Footer content
+# appears at the bottom of every page's main content
+footer_content: "Copyright © 2017-2020 Patrick Marsceill. Distributed by an MIT license."
+
+# 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", "light"/nil (default), or a custom scheme that you define
color_scheme: nil
# Google Analytics Tracking (optional)
# e.g, UA-1234567-89
ga_tracking: UA-2709176-10
+ga_tracking_anonymize_ip: true # Use GDPR compliant Google Analytics settings (true/nil by default)
plugins:
- jekyll-seo-tag
diff --git a/_includes/css/custom.scss.liquid b/_includes/css/custom.scss.liquid
new file mode 100644
index 0000000..2ad1576
--- /dev/null
+++ b/_includes/css/custom.scss.liquid
@@ -0,0 +1 @@
+@import "./custom/custom";
diff --git a/_includes/css/just-the-docs.scss.liquid b/_includes/css/just-the-docs.scss.liquid
new file mode 100644
index 0000000..495cd6d
--- /dev/null
+++ b/_includes/css/just-the-docs.scss.liquid
@@ -0,0 +1,7 @@
+{% if site.logo %}
+$logo: "{{ site.logo | absolute_url }}";
+{% endif %}
+@import "./support/support";
+@import "./color_schemes/{{ include.color_scheme }}";
+@import "./modules";
+{% include css/custom.scss.liquid %}
diff --git a/_includes/head.html b/_includes/head.html
index eae6a5e..4f22497 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -2,17 +2,17 @@
- {% if site.plugins.jekyll-seo == nil %}
+ {% unless site.plugins contains "jekyll-seo-tag" %}
{{ page.title }} - {{ site.title }}
{% if page.description %}
{% endif %}
- {% endif %}
+ {% endunless %}
-
+
{% if site.ga_tracking != nil %}
@@ -21,7 +21,7 @@
function gtag(){dataLayer.push(arguments);}
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 %});
{% endif %}
diff --git a/_includes/nav.html b/_includes/nav.html
index dafacc8..7ce7259 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -1,6 +1,15 @@