diff --git a/_draft_docs/configuration.md b/_draft_docs/configuration.md index 8d65a9d..9c9a5e6 100644 --- a/_draft_docs/configuration.md +++ b/_draft_docs/configuration.md @@ -71,7 +71,7 @@ color_scheme: "dark" ``` - + diff --git a/_draft_docs/customization.md b/_draft_docs/customization.md index 75e9e3c..25cfb83 100644 --- a/_draft_docs/customization.md +++ b/_draft_docs/customization.md @@ -30,7 +30,7 @@ color_scheme: "dark" ``` - + ## Specific visual customization diff --git a/_draft_docs/search.md b/_draft_docs/search.md index 57a086d..9d2788e 100644 --- a/_draft_docs/search.md +++ b/_draft_docs/search.md @@ -30,7 +30,7 @@ Before you can use search, you must initialize the feature by running this `rake $ bundle exec just-the-docs rake search:init ``` -This command creates the `search-data.json` file that Jekyll uses to create your search index. Alternatively, you can create the file manually in the `assets/js/` directory of your Jekyll site with this content: +This command creates the `search-data.json` file that Jekyll uses to create your search index. Alternatively, you can create the file manually in the `js/` directory of your Jekyll site with this content: ```liquid {% raw %}--- diff --git a/_includes/head.html b/_includes/head.html index d2a5b48..5bbdc3d 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -17,4 +17,5 @@ background: #1b1f23; } + \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index c3817b6..6b99902 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -17,6 +17,12 @@ {%- endfor -%} +{%- if page.layout == 'docs' -%} + +{%- endif -%} + + \ No newline at end of file diff --git a/_includes/search-lunr.html b/_includes/search-lunr.html index 1e6445b..8dc14ac 100644 --- a/_includes/search-lunr.html +++ b/_includes/search-lunr.html @@ -1,94 +1,71 @@
-

+

- -
\ No newline at end of file + + diff --git a/_layouts/default.html b/_layouts/default.html index c81c174..0040259 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,7 +15,7 @@ {%- include footer.html -%} - + diff --git a/_layouts/default_docs.html b/_layouts/default_docs.html index 6666cd7..4c6fa13 100644 --- a/_layouts/default_docs.html +++ b/_layouts/default_docs.html @@ -14,7 +14,7 @@ {%- include footer.html -%} - + \ No newline at end of file diff --git a/_layouts/docs.html b/_layouts/docs.html index f019123..4336ce9 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -5,7 +5,7 @@ permalink : /docs/
- docs + docs

{{page.title}}

@@ -15,12 +15,4 @@ permalink : /docs/
{{ content }} -
\ No newline at end of file diff --git a/_layouts/document.html b/_layouts/document.html index 5a4c16d..03f65e6 100644 --- a/_layouts/document.html +++ b/_layouts/document.html @@ -7,6 +7,9 @@ layout: default_docs

{{ page.title | escape }}

+{% include search-lunr.html %} + +
{{ content }}
diff --git a/_sass/custom.scss b/_sass/custom.scss index 9a07361..5cd645b 100644 --- a/_sass/custom.scss +++ b/_sass/custom.scss @@ -34,6 +34,7 @@ p { } li { margin: 0; + font-size: 15px; } .site-header { @@ -476,6 +477,16 @@ li { } @media screen and (min-width: 1024px) { + .search { + left: 340px; + position: fixed; + z-index: 1001; + } + #lunrsearchresults { + background: $background-color; + color: $text-color; + padding: 0 20px; + } .highlighter-rouge { max-width: 60vw; } @@ -558,7 +569,7 @@ li { } } @media screen and (min-width: 1440px) { - .content .content_grid .content_item { + .content .content_grid .content_item { width: 27%; margin: 10px; } diff --git a/assets/images/lens.svg b/assets/images/lens.svg new file mode 100644 index 0000000..c314eb9 --- /dev/null +++ b/assets/images/lens.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/js/common.js b/js/common.js similarity index 100% rename from assets/js/common.js rename to js/common.js diff --git a/assets/js/lunr.js b/js/lunr.js similarity index 100% rename from assets/js/lunr.js rename to js/lunr.js diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..f059fba --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,30 @@ +--- +layout: null +--- + + + + {% for page in site.pages %} + {% if page.url contains '.xml' or page.url contains 'assets' %}{% else %} + + {{ site.url }}{{ page.url }} + monthly + 1.0 + + {% endif %} + {% endfor %} + {% for page in site.posts %} + + {{ site.url }}{{ page.url | replace: 'index.html', '' }} + monthly + 1.0 + + {% endfor %} + {% for page in site.without-plugin %} + + {{ site.url }}{{ page.url | replace: 'index.html', '' }} + monthly + 1.0 + + {% endfor %} +