diff --git a/_config.yml b/_config.yml index 2af82026334b1d374b4fb50d499428389d6a0b7a..46b37fb19b0123d61be07815475b3e3238238db9 100644 --- a/_config.yml +++ b/_config.yml @@ -48,4 +48,4 @@ compress_html: endings: all startings: [] blank_lines: false - profile: false \ No newline at end of file + profile: false diff --git a/_sass/search.scss b/_sass/search.scss index a8b6a8e14fe63f64fd1a89f83802d7ddfbaa85a8..3eaa24fcc7273f095854dc7b6fc23aaf415926f4 100644 --- a/_sass/search.scss +++ b/_sass/search.scss @@ -17,8 +17,8 @@ .search-input-wrap { display: flex; height: 100%; - background-color: $search-background-color; padding: $sp-2; + background-color: $search-background-color; border-radius: $border-radius; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); @@ -27,8 +27,8 @@ padding-right: 0; padding-bottom: 0; padding-left: 0; - border-radius: 0; background-color: $body-background-color; + border-radius: 0; box-shadow: none; } } @@ -70,11 +70,11 @@ .search-results-wrap { position: absolute; - display: none; z-index: 100; + display: none; width: 100%; - border-radius: $border-radius; background: $search-background-color; + border-radius: $border-radius; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08); &.active { diff --git a/assets/css/dark-mode-preview.scss b/assets/css/dark-mode-preview.scss index 6f6fbea36085a98a5be9dc8b08fc02556fb9e76b..8b77da6a86422fb0fea410952175c34f65525478 100644 --- a/assets/css/dark-mode-preview.scss +++ b/assets/css/dark-mode-preview.scss @@ -33,7 +33,6 @@ @import "./search"; @import "./tables"; @import "./code"; -@import "./anchor_headings"; @import "./utilities/utilities"; // diff --git a/assets/css/just-the-docs.scss b/assets/css/just-the-docs.scss index b6d17d594eb8ddcd705c4762b28665e178de335a..6a2eefa5ca319368e85410163b74139dacb98eb0 100644 --- a/assets/css/just-the-docs.scss +++ b/assets/css/just-the-docs.scss @@ -41,5 +41,4 @@ @import "./search"; @import "./tables"; @import "./code"; -@import "./anchor_headings"; @import "./utilities/utilities"; diff --git a/docs/configuration.md b/docs/configuration.md index 095fc2099a058ead01952065dd6c81ced18c5c40..f4646cbd00175edd81a34aec61410e173a16e71e 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -38,6 +38,16 @@ aux_links: - "//github.com/pmarsceill/just-the-docs" ``` +## Heading anchors +```yaml +# Heading anchors appear on hover over h1-h6 tags +# allowing users to deep link to a particular heading +# on a page. +# +# Supprts true (default) or false/nil +heading_anchors: true +``` + ## Color scheme ```yaml