-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fix liquid variable leakage in navigation components #1243
Conversation
Fix just-the-docs#1118 Improve the modularity of building the nav-panel, breadcrumbs, and children-nav by making them independent. This also significantly simplifies the Liquid code.
Revert to the previous layout in the HTML, to allow the use of `diff` to check the built site.
Revert inclusion of single breadcrumb for top-level pages.
Revert to the previous layout in the HTML, to allow the use of `diff` to check the built site.
Revert to the previous layout in the HTML, to allow the use of `diff` to check the built site.
Building the just-the-docs-tests repo with this PR branch gives the same site as when using [email protected] (modulo white space):
Ironically,
We need to avoid
Regarding the options used:
In practice, changes in the Liquid code used to build HTML can easily affect where lines are broken, causing |
@mattxwang This PR is partly preparation for updating #462 to 0.5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super impressive work!
Based on the previous modularization-PR, am I correct that this also means we can remove the special code in _layouts/minimal.html
? If so, it'd be nice to bundle that change into this PR as well.
Remove the previously required workaround involving `nav.html`.
The aim of the initial version of these docs pages is to illustrate the difference between the default and minimal layouts.
Yes
That was easy enough… In a separate commit, I've also added some basic docs pages about layout. You're welcome to review those for accuracy, but let's defer discussion of improvements to them (as that can be done independently of releases). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub's provided diff is a bit tricky to grok, but looking through the change I think I'm confident in these changes; paired with your diff
-based test, I think this is good to merge.
Re: documentation, I appreciate the initiative on writing this up! Don't have any criticism with this; in fact, it may also help users who are struggling to get layout: default
to work (there have been a few issues I've triaged with that as the problem).
Whenver you feel ready, feel free to squash-merge + add the changelog entry!
It's a very long time since I last tried merging anything into
|
Sorry for the late response, things have been hectic.
Nope! Though, you can if it helps you debug and/or gives you peace of mind; it has no impact on the final commit (if squashed).
Simply editing it on GitHub is fine; in this case, you can also bundle it into this commit, if you'd like. |
Fix #1118
Improve the modularity of building the nav-panel, breadcrumbs, and children-nav by making them independent. This also significantly simplifies the Liquid code.
This is purely a refactoring, and shouldn't affect the generated site (modulo layout).