Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge in branch for recursive navigation #1

Merged
merged 15 commits into from
Jan 25, 2021

Conversation

IamDavidovich
Copy link

Merges this PR into our fork in order to support recursive (and therefore arbitrary depth) navigation.

In planning out what documentation we want for Payments a deeper navigation structure would be useful for providing a clearer hierarchy of pages. However we're limited to 3 levels with the current implementation and two of those are taken up just by Domains -> Payments leaving us no real space to do anything. I feel like this will become a more of an issue as teams add more documentation.

Additionally, it seems to decrease the generation time. On my local it's down to ~30 seconds from > 90 seconds previously. Presumably because of the new caching gem?

Ping @splittingred for any input 🙏

pdmosses and others added 15 commits October 15, 2020 12:24
- Update `_config.yml` to add plugin `jekyll-include-cache` and option `nav_cache`.
- Update `just-the-docs.gemspec` to add `jekyll-include-cache`.
- Add `_nav_cache_false.yml` to disable caching (for profiling).
- Add `_include_tests.yml` to include `docs/tests/`.
- Replace `_includes/nav.html` by `_includes/nav/*.html`.
- Update `_layouts/default.html` to include `nav/{main,crumbs,toc}.html`.
Run jekyll with option `--config _config.yml,_include_tests.yml` to check unchanged.
- Major update for recursive navigation.
- Explain disambiguation by ancestor and section id.
- Move notes for users of previous versions to footnotes.
- Move regression tests from `docs/tests` to `_tests`.
- Update `_config.yml` and `_include_tests.yml`.
- Configure front matter default layout for tests.
- Simplify navigation for tests using recursive navigation.
- Add tests for title disambiguation.
Run jekyll with option `--config _config.yml,_include_tests.yml` to check.
The regression tests have been expanded, and the navigation hierarchy is deeper.
- Update the site title to show the fork branch name.
- Needs to be reverted if merged.
- Update `url` to fix the internal links on the published site.
- Needs to be reverted if merged.
- Rename `_include_tests.yml` to `_tests.yml`.
- Fix the check that the `ancesstor` title is in the path by enclosing it in a pair of "^"s, and changing the extension of the path to append the "^".
- Add regression tests with overlapping titles to show that ancestors are now strictly checked using the separators.
To do:
- Titles are assumed not to contain "^", which is used to separate titles in paths. Replace "^" by newline, which cannot occur in a title.
- Check that the grandchildren with incorrect ancestor fields now appear.
- Change the separator used in navigiation paths from `^` to newline.
- Add regression tests to check that ancestor titles do not match prefixes or suffixes.
- Add `_config_dev.yml`
- Relax gem version constraints
- Invert a condition in the test for top-level pages
This avoids the navigation for non-collection pages disappearing when there are no child pages.
@splittingred splittingred merged commit 244be13 into bigcommerce:master Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants