Repository navigation
feat: add site links, star count and Install App to the header - #99
Conversation
Docs, Rules, Pricing, Blog and Changelog sit beside the brand, with the current section highlighted. The GitHub icon becomes a Star button with the repository's star count, read at build time and left out when GitHub can't be reached, and an Install App button ends the bar. Sumi's header has no setting for any of this, so the site overrides partials/header.html. Under 920px the links and the star count leave the bar for the drawer and the plain GitHub icon returns; under 520px the button goes too.
❌ Deploy Preview for commit-check failed. Why did it fail? →
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Sumi now has header_links, header_button and repo_stars, so the copied header partial, the star lookup in the build hooks and their styles go. The site needs the Sumi release that ships them.
This adds the pieces visitors look for in a dev-tool header:
All three come from Sumi 0.4.3's new
header_links,header_buttonandrepo_starstheme options (mkdocs-ng/mkdocs-sumi#42). This PR sets them inmkdocs.ymland bumpsmkdocs-sumito 0.4.3.The build step in
deploy.ymlnow passesGITHUB_TOKEN, so the star lookup stays clear of the anonymous rate limit that runners share. Without the token, the build still passes and the header shows the plain icon.On narrower screens:
Screenshots
Checks
mkdocs build --strictpasses with Sumi 0.4.3, and the star count renders (101).