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.

Rebuild the docs as a MkDocs site

1f8afe73515d58c14774878f30f33bfe318d0c3b · Keenan Nemetz · 21d ago · parent 7c02af12

Rebuild the docs as a MkDocs site

Replace the mdBook configuration with MkDocs and a local theme that uses
Vole's Everforest dark/medium palette. Move the contents order into nav,
make docs/index.md the homepage, and carry the install, quickstart,
deployment, and reference pages into the new tree.

Add the docs build to verify, with pinned requirements and python3-venv in
the image, so a broken nav entry or theme asset fails before a pages
deploy.

docs-theme/base.html +105

@@ -0,0 +1,105 @@
1 <!doctype html>
2 <html lang="{{ config.theme.locale|default('en') }}" data-theme="everforest-dark-medium">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <meta name="color-scheme" content="dark">
7 {% if page and page.meta and page.meta.description %}
8 <meta name="description" content="{{ page.meta.description }}">
9 {% elif config.site_description %}
10 <meta name="description" content="{{ config.site_description }}">
11 {% endif %}
12 {% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
13
14 <title>{% if page and page.title and not page.is_homepage %}{{ page.title }} · {% endif %}{{ config.site_name }}</title>
15
16 <link rel="icon" type="image/png" sizes="32x32" href="{{ 'assets/favicon-32.png'|url }}" media="(prefers-color-scheme: light)">
17 <link rel="icon" type="image/png" sizes="32x32" href="{{ 'assets/favicon-32-dark.png'|url }}" media="(prefers-color-scheme: dark)">
18 <link rel="icon" type="image/svg+xml" href="{{ 'assets/favicon.svg'|url }}" sizes="any">
19 <link rel="stylesheet" href="{{ 'assets/pygments.css'|url }}">
20 <link rel="stylesheet" href="{{ 'assets/docs.css'|url }}">
21 {% for path in config.extra_css %}<link rel="stylesheet" href="{{ path|url }}">{% endfor %}
22 {% block extrahead %}{% endblock %}
23 </head>
24 <body>
25 <a class="skip-link" href="#content">Skip to content</a>
26
27 <header class="topbar">
28 <button type="button" class="nav-toggle" data-nav-toggle aria-label="Open documentation navigation" aria-expanded="false" aria-controls="sidebar">
29 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg>
30 </button>
31
32 <a class="brand" href="{{ nav.homepage.url|url }}" aria-label="{{ config.site_name }} documentation home">
33 <span class="mark" aria-hidden="true"></span>
34 <span class="brand-name">{{ config.site_name }}</span>
35 <span class="brand-note">docs</span>
36 </a>
37
38 <div class="topsearch" role="search">
39 <button type="button" class="topsearch-box" data-search-open aria-haspopup="dialog" aria-controls="search-palette" aria-keyshortcuts="Control+K Meta+K">
40 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
41 <span class="topsearch-label">Search documentation</span>
42 <kbd class="topsearch-key" aria-hidden="true">/</kbd>
43 </button>
44 </div>
45 </header>
46
47 <div class="layout">
48 <aside class="sidebar" id="sidebar" aria-label="Documentation">
49 {% include "nav.html" %}
50 </aside>
51
52 <div class="nav-scrim" data-nav-close aria-hidden="true"></div>
53
54 <main class="content" id="content">
55 {% block content %}{{ page.content }}{% endblock %}
56
57 {% if page and (page.previous_page or page.next_page) %}
58 <nav class="pager" aria-label="Previous and next pages">
59 {% if page.previous_page %}
60 <a class="pager-link pager-prev" href="{{ page.previous_page.url|url }}" rel="prev">
61 <span class="pager-where">Previous</span>
62 <span class="pager-title"><span aria-hidden="true">←</span> {{ page.previous_page.title }}</span>
63 </a>
64 {% else %}<span></span>{% endif %}
65 {% if page.next_page %}
66 <a class="pager-link pager-next" href="{{ page.next_page.url|url }}" rel="next">
67 <span class="pager-where">Next</span>
68 <span class="pager-title">{{ page.next_page.title }} <span aria-hidden="true">→</span></span>
69 </a>
70 {% endif %}
71 </nav>
72 {% endif %}
73 </main>
74
75 <aside class="toc" aria-label="On this page">
76 {% include "toc.html" %}
77 </aside>
78 </div>
79
80 <footer class="site-footer">
81 <p>Vole is free and open-source software under the Apache License 2.0.</p>
82 <p class="muted">Built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
83 </footer>
84
85 <dialog class="palette" id="search-palette" aria-label="Search documentation">
86 <form class="palette-search" role="search" data-search-form>
87 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>
88 <input type="search" id="search-query" placeholder="Search documentation" aria-label="Search documentation" autocomplete="off" spellcheck="false" role="combobox" aria-expanded="true" aria-controls="search-results" aria-autocomplete="list">
89 <button type="button" class="palette-close" data-search-close aria-label="Close search">
90 <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6 6 18"/></svg>
91 </button>
92 </form>
93 <div class="palette-results" id="search-results" role="listbox" aria-live="polite"></div>
94 <div class="palette-foot">
95 <span><kbd>↑</kbd><kbd>↓</kbd> to move</span>
96 <span><kbd>Enter</kbd> to open</span>
97 <span><kbd>Esc</kbd> to close</span>
98 </div>
99 </dialog>
100
101 <script>window.DOCS_BASE_URL = {{ base_url|tojson }};</script>
102 <script src="{{ 'assets/docs.js'|url }}" defer></script>
103 {% block scripts %}{% endblock %}
104 </body>
105 </html>