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 breadcrumbs and version verbiage #15

Merged
merged 4 commits into from
Jan 27, 2022
Merged

Improve breadcrumbs and version verbiage #15

merged 4 commits into from
Jan 27, 2022

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Jan 27, 2022

See commit messages for details.

"logo_only" doesn't get at what this theme really wants to know, which
is if the project is the main docs project or a subproject.  This became
blindly clear when I needed to know the same thing in a different
template, which has nothing to do with logos.
The logo now links to the doc home page, and we can improve wayfinding
in other ways, like improving the page breadcrumbs.
- Starts breadcrumbs with the main Nextstrain doc home page to
  replace the previous "click here" link and situate the subproject
  within the larger docs.

- Replaces home icon with the word "Home" for less mystery-meat nav.

- Replaces » with / for separating breadcrumb levels as a more
  traditional hierarchy marker.

- Removes current page title from breadcrumbs to avoid repeating
  ourselves.
@tsibley tsibley requested a review from a team January 27, 2022 22:05
The most common case is now cleaner:

    version: stable → nothing

The meaning of "latest" is now clearer:

    version: latest → development version

and a useless colon is dropped:

    version: X → version X

Versions are always always on their own (centered) line now underneath
the subproject name, instead of potentially sitting alongside them for
short names (like "CLI").
@tsibley
Copy link
Member Author

tsibley commented Jan 27, 2022

Breadcrumbs before/after on main docs site:

image
image

on Augur's docs:

image
image

(ignore the "View page source" vs. "Edit on GitHub" difference, which is not real.)

@tsibley
Copy link
Member Author

tsibley commented Jan 27, 2022

Version verbiage before/after for version X:

image
image

for version "latest":

image
image

for version "stable":

image
image

Copy link
Contributor

@huddlej huddlej left a comment

Choose a reason for hiding this comment

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

Beautiful. Thank you! I had a question about a related issue that I've mentioned inline. It's ok if that's off-topic for this PR though.

@tsibley tsibley merged commit af524c3 into main Jan 27, 2022
@tsibley tsibley deleted the trs/grab-bag branch January 27, 2022 22:44
tsibley added a commit that referenced this pull request Jan 28, 2022
Make it even clearer what software revisions those labels represent.

A `git describe` style string¹ for development ("latest") would be even
better than just the git revision, but that appears to be non-trivial to
implement.

Resolves <nextstrain/augur#817>.

h/t to @corneliusroemer for the suggestion and @huddlej for bringing it
up again in <#15>.

¹ e.g. "${tag}-${n}-g${sha}" where ${tag} is the last/closest tag to the
  current commit, ${n} is the number of commits since that ${tag}, and
  ${sha} is the shortened id of the current commit.
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