Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Link the docs back to the source repository

59edfa9808dda431fb464bb23f94c9afbe7cf3e4 · Keenan Nemetz · 20d ago · parent fbc5c5b9

Link the docs back to the source repository

The site had no way back to the repository it documents: index.md told a
reader to use DEVELOPMENT.md and CONTRIBUTING.md "in the source repository"
without saying where that is, and no page carried a link.

The top bar now shows a Source link to the right of the search box, driven by
mkdocs.yml's repo_url so the URL lives in one place, and index.md's sentence
links the repository directly.

docs-theme/assets/docs.css +24

@@ -314,6 +314,26 @@ kbd {
314 314 font-size: calc(11.55px * 1);
315 315 }
316 316
317 /* The way out to the repository this site documents (mkdocs.yml's repo_url). */
318 .topbar-link {
319 display: inline-flex;
320 align-items: center;
321 gap: 6px;
322 flex: none;
323 padding: 5px 8px;
324 border: 1px solid transparent;
325 border-radius: var(--radius);
326 color: var(--fg-muted);
327 font-size: calc(13.75px * 1);
328 white-space: nowrap;
329 }
330 .topbar-link:hover {
331 background: var(--bg-hover);
332 color: var(--fg);
333 text-decoration: none;
334 }
335 .topbar-link .icon { width: 13px; height: 13px; color: var(--fg-faint); }
336
317 337 /* ---------- page layout ---------- */
318 338
319 339 .layout {
@@ -761,6 +781,10 @@ h6:hover .headerlink,
761 781 .topsearch-label { display: none; }
762 782 .topsearch-box { justify-content: flex-end; }
763 783 .topsearch-key { display: none; }
784 /* Keep the word "Source": the icon alone is a thinner target and a weaker
785 label, and the search box can shrink to make the room. */
786 .topbar-link .icon { display: none; }
787 .topbar-link { padding-inline: 2px; }
764 788 .layout { padding-inline: 16px; }
765 789 .site-footer { padding-inline: 16px; }
766 790 .content h1 { font-size: calc(20.9px * 1); }