Skip to content
Snippets Groups Projects
  1. Apr 25, 2020
    • PLanCompS's avatar
      Made case-insenstive sorting the default · c46ccd34
      PLanCompS authored
      Added a configuration option to determine whether the sort order is case-sensitive.
      The default is case-insensitive.
      
      To test:
      - open `/just-the-docs/docs/utilities/` in the browser,
        and check that the navigation links in `Utilities` are sorted alphabetically;
      - in `docs/utilities/layout.md', change the preamble to `title: layout`,
        and check that the  links in `Utilities` are still sorted alphabetically;
      - add `nav_sort: case_sensitive` in the configuration file,
        and check that the link to `layout` is now listed last under `Utilities`.
      c46ccd34
  2. Oct 11, 2019
    • Peter Mosses's avatar
      Alphabetic navigation order · 6660f442
      Peter Mosses authored
      When `nav_order` is omitted, the order of nodes at each menu level (and in the auto-generated TOC) is alphabetical by `title`, instead of random.
      Any nodes with a specified `nav_order` precede all nodes at that level where it is omitted.
      Note that `nav_order` fields must have a uniform site-ide type: integers and strings cannot be mixed, otherwise Jekyll reports errors.
      The implementation filters the ordered and unordered pages from `site.html_pages`, sorts them separately, and concatenates the resulting arrays.
      6660f442
  3. Aug 29, 2019
  4. Aug 22, 2019
  5. Aug 21, 2019
    • Peter Mosses's avatar
      Update nav.html · c282e4b0
      Peter Mosses authored
      Separating new PR from #188, since indpendent.
      c282e4b0
    • Peter Mosses's avatar
      Optional delay of grandchildren link display · 8ac545a5
      Peter Mosses authored
      The current default is that when a grandparent is selected, the links to its
      children *and all its grandchildren* are displayed in the navigation menu.
      Setting `grandchildren_branch: true` in `_config.yml` delays the display of links
      to grandchildren until their parent is selected.
      8ac545a5
  6. Aug 16, 2019
    • Peter Mosses's avatar
      Update nav.html · 0cfc0f03
      Peter Mosses authored
      A `navigation-list-child-list` is not displayed unless the enclosing `navigation-list-item` is `active`, so it needs to be generated only when `page.url == node.url or page.parent == node.title or page.grand_parent == node.title`.
      0cfc0f03
  7. Aug 06, 2019
  8. Jul 18, 2019
    • Julien Duchesne's avatar
      Optimized nav generation · 07982f68
      Julien Duchesne authored
      - Trimmed whitespace between html elements
        This reduced one of my files from 850KB to 115KB
      - Do not sort the whole list of pages on every iteration
        This made build 3x faster
      07982f68
  9. Jan 06, 2019
  10. Nov 19, 2018
  11. Nov 16, 2018
  12. Apr 08, 2017
  13. Mar 27, 2017
  14. Mar 24, 2017
  15. Mar 09, 2017
Loading