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

Improve overall navigation options in sidebar #4

Merged
merged 3 commits into from
Nov 4, 2020
Merged

Improve overall navigation options in sidebar #4

merged 3 commits into from
Nov 4, 2020

Conversation

jameshadfield
Copy link
Member

Description of proposed changes

This PR provides users with a clear way to return to the main nextstrain.org site (via the nextstrain logo, which is consistent with other parts of the nextstrain ecosystem) and, when within a subproject's docs provides a clear way to return to return to the main docs.nextstrain.org docs. Note that the second part here will be much improved by our plans to move to a unified TOC.

Screenshot of Augur docs (branch migrate-docs) build under this theme:

image

(Note that the version information doesn't come up when built locally, but should appear on the RTD build.)

This allows all docs pages built with this theme to have an easy and obvious way to get to the main nextstrain.org site. 

Future commits will provide an obvious path to the main docs.nextstrain.org page.
This makes it clear that users are within a subproject and provides a simple link to go back to the main docs. This text can be removed / rewritten when we move to a unified TOC between subprojects.

Note that the version does not show up locally, but it does on RTD builds.
@jameshadfield jameshadfield changed the title Sidebar Improve overall navigation options in sidebar Nov 3, 2020
Copy link
Contributor

@eharkins eharkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great and most importantly is a good solution to having a way back to the main docs project (nextstrain/docs.nextstrain.org#12) until we can have a shared toctree as you mention (nextstrain/docs.nextstrain.org#27).

@jameshadfield
Copy link
Member Author

Thanks @eharkins -- could I get you to merge & release as per last time? Thanks 🙏

@eharkins eharkins merged commit 615f089 into main Nov 4, 2020
@eharkins eharkins deleted the sidebar branch November 4, 2020 00:29
@eharkins
Copy link
Contributor

eharkins commented Nov 4, 2020

Released this in 2020.5 to pypi. Thanks James!

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.

2 participants