-
Notifications
You must be signed in to change notification settings - Fork 9
Flatten the Cookbook and Reference sections of the nav #336
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
base: preview
Are you sure you want to change the base?
Conversation
7c77d08
to
f2f53d5
Compare
c7f27a7
to
d9051b8
Compare
d9051b8
to
f44238a
Compare
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.
Two things:
- You'll need to add redirects to
mkdocs.yml
(at the very bottom) so we don't break existing links to the documentation. - (Personal preference) I prefer the URL slug for man pages to be
/man/flox-*
so it looks like the command you'd type in your terminal. You can do that by just renaming the directory, but you can keep theManual
sidebar name.
ab8ad4a
to
1bb4c9b
Compare
1bb4c9b
to
b3d4817
Compare
The link checker is getting rate-limited by |
check_links.sh
Outdated
-nv \ | ||
--remap "https://flox.dev/docs file://$PWD/site" \ | ||
--exclude "bash/manual/html_node" \ | ||
--exclude "bash/man/html_node" \ |
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.
Is this a search and replace error?
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.
Yeah. Fixed.
redirect_maps: | ||
'concepts/manifest.md': 'concepts/environments.md#manifesttoml' | ||
'install-flox.md': 'install-flox/install.md' | ||
'reference/command-reference/flox-activate.md': 'man/flox-activate.md' |
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.
Did you check whether there was a glob syntax you could use instead of listing these individually?
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.
Doesn't seem to be. The redirects plugin iterates through redirect_maps
and uses mkdocs.utils.is_markdown_file
to check whether each entry ends in .md
.
No description provided.