diff --git a/.github/workflows/v2-preview.yml b/.github/workflows/v2-preview.yml new file mode 100644 index 0000000..520a029 --- /dev/null +++ b/.github/workflows/v2-preview.yml @@ -0,0 +1,36 @@ +name: Bytegeist Docs v2 local-only preview CI + +on: + pull_request: + paths: + - 'v2/**' + - '.github/workflows/v2-preview.yml' + push: + branches: [main] + paths: + - 'v2/**' + - '.github/workflows/v2-preview.yml' + +permissions: + contents: read + +jobs: + offline-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + - run: python -m pip install zensical + - name: Verify chosen Zensical modern preview (no private inputs) + run: | + cd v2 + zensical build --strict --clean + test -f site/index.html + test -f site/quellen/index.html + test -f site/pruefung/index.html + test -f site/styles/bytegeist.css + - name: Confirm no network deployment or private inventory + run: | + ! grep -R -E 'DOCS_REPO_TOKEN|DOCS_NETBIRD_SETUP_KEY|/opt/bytegeist-docs|ffworker/homelab-talos' v2/ diff --git a/v2/README.md b/v2/README.md new file mode 100644 index 0000000..30d0b47 --- /dev/null +++ b/v2/README.md @@ -0,0 +1,43 @@ +# Bytegeist Docs v2 — isolated local preview + +**Experiment, not production.** This is a clean, small documentation-site prototype, not a refactor or deploy of the old VPS02 publisher. + +## Intent + +- The operator deliberately chooses which repositories and whether root `README.md` and/or root `docs/` are useful. No automatic account-wide import. +- Each selected source stays canonical in its own Git repo. +- No private code, hostnames, tokens, source inventories or credentials are present in this public preview. +- Repository freshness and real operational verification are **different** things. +- Markdown, a reading-friendly interface, and a regenerable static site remain the whole product. +- Existing `scripts/import_docs.py`, v1 CI, VPS02 pipeline, NetBird, servers and blog are untouched. + +## Renderer decision: Zensical + +**Zensical is the chosen engine for Bytegeist Docs v2.** The original site ran on MkDocs Material, which helped prove the source ownership and Markdown approach. Zensical comes from the same creators, supports existing `mkdocs.yml` projects, and provides its own **modern** theme variant. Its pre-1.0 compatibility needs to remain covered by tests. + +The existing `v2/mkdocs.yml` is intentionally kept as the Zensical configuration: Zensical officially supports it. We do not need a migration to TOML just to claim a clean start. The v1 importer, deploy jobs, VPS02 paths and permissions are not used by this preview. + +## Local preview: Zensical + +```sh +python -m venv .venv +. .venv/bin/activate +python -m pip install zensical +cd v2 +zensical build --strict +zensical serve +``` + +Open http://127.0.0.1:8000/ . The prototype contains **only synthetic example pages**. + +The new v2 CI runs a clean strict Zensical build **without private credentials** and checks that the custom Bytegeist styles and pages are present. The previously verified Material renderer is just historical comparison evidence, not a second runtime we will continue to maintain. + +## Real content remains deliberately unselected + +The private, operator-reviewed 29-repository inventory and proposed `KEEP / REVIEW / EXCLUDE` decisions are tracked separately under [BYT-108](https://linear.app/bytegeist/issue/BYT-108). Nothing from that list is loaded here until the operator approves a subset. This is intentional: more scraped content was the mistake that made v1 less useful. + +## What this intentionally does not do + +No real repository checkouts. No background refresh. No search indexing of all GitHub repos. No production ingress, NetBird/VPS02/CD changes. No automated catalog generation. No assertions that any operating system or service is healthy. + +Source review and deployment decisions: [Linear BYT-108](https://linear.app/bytegeist/issue/BYT-108). diff --git a/v2/docs/index.md b/v2/docs/index.md new file mode 100644 index 0000000..51e7b14 --- /dev/null +++ b/v2/docs/index.md @@ -0,0 +1,33 @@ +# Weniger Quellen. Mehr Orientierung. + +
BYTEGEIST / PRIVATE TECHNICAL NOTES / V2 PREVIEW
+ +
+Die Dokumentation soll mir beim nächsten Problem **Zeit sparen** — nicht neue Arbeit machen. +
+ +
+ + 01 / QUELLEN + Was gehört hier rein? + Ich entscheide bewusst. Kein automatisches Spiegeln aller GitHub-Repositories. + + + 02 / VERTRAUEN + Was weiß ich wirklich? + Quellrevision, letzter Abruf und wirklich getesteter Zustand bleiben getrennt. + +
+ +## Das hier ist noch kein produktives Handbuch + +Diese Seite ist ein **isolierter Design-Prototyp**, ohne echte Homelab-Daten oder Zugriffe. Der aktuelle Fokus ist die einfache Benutzerführung: Starten, suchen, Quelle finden, aktualitätsbezogene Unsicherheit erkennen. + +!!! note "Keine zweite Quelle der Wahrheit" + Änderungen gehören in das jeweilige Quell-Repository. Die persönliche Dokumentationsseite ist nur die ausgewählte, private Leseansicht. + +## Was ich später hier sehen möchte + +Eine kleine Liste meiner **wirklich wichtigen** Projekte und Betriebssysteme — beispielsweise Netzwerk, Storage, Virtualisierung, Kubernetes und aktive Werkzeuge. Nicht alles, was ich irgendwann ausprobiert habe. + +Wenn ein Repository fehlt, wird es **nicht automatisch** aufgenommen. Wenn eine Betriebsanleitung seit Monaten ungeprüft ist, wird das sichtbar und nicht als aktuell verkauft. diff --git a/v2/docs/pruefung.md b/v2/docs/pruefung.md new file mode 100644 index 0000000..ca1cae0 --- /dev/null +++ b/v2/docs/pruefung.md @@ -0,0 +1,20 @@ +# Was ist wirklich bestätigt? + +
DOKUMENTATION / EVIDENZ
+ +Eine optisch schöne Anleitung kann trotzdem falsch oder veraltet sein. Deshalb sollen ihre Aussagen nicht mehr versprechen, als wir geprüft haben. + +| Information | Was sie beweist | Was sie nicht beweist | +| --- | --- | --- | +| Git-Commit | Welcher Text aus dem Repo stammt | Ob die Maschine noch so läuft | +| Abrufdatum | Wann die Quelle zuletzt abgeholt wurde | Ob die Anleitung inhaltlich richtig ist | +| Erfolgreicher Site-Build | Dokumentation konnte verarbeitet werden | Ob Backup, SSH oder NFS funktionieren | +| Datiertes, beobachtetes Ergebnis | Was beim konkreten Test tatsächlich sichtbar war | Dauerhafte Gesundheit aller Systeme | +| Isolierter Restore-Test | Der dokumentierte Wiederherstellungsfall wurde getestet | Dass jeder andere Ausfall beherrschbar ist | + +!!! warning "Lieber unbekannt als erfunden" + Wenn kein aktueller Live-Test vorliegt, steht dort **nicht geprüft**. Eine im Repo gelesene Behauptung darf keinen künstlichen grünen Status bekommen. + +## Verfügbarkeit bei einem echten Ausfall + +Das neue Docs-Hosting soll **nicht auf VPS02** laufen. Für einen Kubernetes-Ausfall muss es trotzdem einen einfachen lokalen/offline Zugriff auf die wichtigsten Runbooks geben. Der konkrete Zielhost wird erst nach einem Vergleich zwischen privatem Talos-Ingress und einem unabhängigen, stets laufenden Host gewählt. diff --git a/v2/docs/quellen.md b/v2/docs/quellen.md new file mode 100644 index 0000000..379361a --- /dev/null +++ b/v2/docs/quellen.md @@ -0,0 +1,25 @@ +# Quellen auswählen + +
DOKUMENTATION / AUSWAHL
+ +**Manuell ausgewählt. Klar nachvollziehbar. Jederzeit entfernbar.** + +Die private Quelleauswahl entsteht erst nach der Entscheidung des Betreibers. Es gibt **keine** automatische Konto-weite Repo-Erkennung. Neue Projekte bleiben draußen, bis sie bewusst ausgewählt wurden. + +| Beispiel-Eintrag | Zweck | Entscheidung | +| --- | --- | --- | +| Projektdokumentation A | README lesen | Noch offen | +| Infrastrukturhandbuch B | README und docs/ | Noch offen | +| Altes Experiment C | Historisch, nicht importieren | Noch offen | + +*Diese drei Einträge sind ausdrücklich synthetische Platzhalter, keine realen Quellen.* + +## Mein Importvertrag + +1. Ein Repository wird einzeln freigegeben und erhält einen Namen. +2. Ich wähle `README.md`, `docs/` oder beides. +3. Die Quelle braucht die passende Leseberechtigung. Es gibt keinen Zugriffstrick bei einem privaten Repo. +4. Der Renderer zeigt Quell-Commit und Abrufzeit an; eine schlechte oder veraltete Anleitung wird dadurch nicht richtig. +5. Entferne ich die Freigabe, erscheint die Quelle im nächsten privaten Build nicht mehr. + +Das endgültige Quellenverzeichnis wird in **privater Konfiguration** geführt, nicht als öffentliche Liste meiner privaten Projekte. diff --git a/v2/docs/styles/bytegeist.css b/v2/docs/styles/bytegeist.css new file mode 100644 index 0000000..980ee6d --- /dev/null +++ b/v2/docs/styles/bytegeist.css @@ -0,0 +1,93 @@ +/* Bytegeist Docs v2: isolated, public-safe Material/Zensical preview. + Visual language references the public Bytegeist blog, without external assets. */ +:root { + --bg-paper: #f6f3ec; + --bg-surface: #fffdf8; + --bg-ink: #142a25; + --bg-forest: #172c27; + --bg-green: #315a45; + --bg-rust: #9c5432; + --bg-gold: #dcb47a; + --bg-muted: #617168; + --bg-line: #d8ddd3; +} +[data-md-color-scheme="default"] { + --md-default-bg-color: var(--bg-paper); + --md-default-fg-color: var(--bg-ink); + --md-primary-fg-color: var(--bg-forest); + --md-accent-fg-color: var(--bg-rust); + --md-typeset-a-color: #346847; + --md-code-bg-color: #e9eee5; +} +[data-md-color-scheme="slate"] { + --md-default-bg-color: #111e1b; + --md-default-fg-color: #f0eadd; + --md-primary-fg-color: #1a302a; + --md-accent-fg-color: #e9bc78; + --md-typeset-a-color: #b0dcba; + --md-code-bg-color: #20332c; + --bg-paper: #111e1b; + --bg-surface: #1c2d28; + --bg-ink: #f2eadb; + --bg-green: #c1dcca; + --bg-rust: #e9bc78; + --bg-muted: #b9cbbd; + --bg-line: #385047; +} +.md-header, .md-tabs { background-color: var(--md-primary-fg-color); } +.md-header__title { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 800; letter-spacing: .04em; } +.md-main__inner { margin-top: 1.45rem; } +.md-content__inner { max-width: 49rem; } +.md-typeset { font-size: .77rem; line-height: 1.76; } +.md-typeset h1 { + font-family: Georgia, Cambria, "Times New Roman", serif; + font-size: clamp(2.1rem, 4vw, 3.35rem); + line-height: 1.12; + font-weight: 400; + letter-spacing: -.046em; + color: var(--bg-ink); + margin-bottom: .8rem; +} +.md-typeset h2 { font-family: Georgia, Cambria, serif; font-size: 1.42rem; font-weight: 400; letter-spacing: -.02em; } +.bg-eyebrow { + font: 750 .58rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; + color: var(--bg-rust); + letter-spacing: .14em; + text-transform: uppercase; + margin: .65rem 0 1rem; +} +.bg-lead { + color: var(--bg-muted); + max-width: 38rem; + font-size: 1.05rem; + line-height: 1.75; + margin: 0 0 1.9rem; +} +.bg-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.85rem; margin:1.6rem 0 2.25rem; } +.md-typeset .bg-card { + display:flex; + min-height: 11rem; + flex-direction:column; + gap: .7rem; + padding: 1.15rem 1.2rem; + border: 1px solid var(--bg-line); + border-radius: 9px; + background: var(--bg-surface); + color: var(--bg-ink); + text-decoration: none; + box-shadow: 0 10px 28px #1528200a; + transition: border-color .16s ease, transform .16s ease; +} +.md-typeset .bg-card:hover { border-color:var(--bg-green); transform:translateY(-2px); } +.bg-card-index { font:700 .53rem/1.4 ui-monospace, monospace; letter-spacing:.14em; color:var(--bg-rust); } +.md-typeset .bg-card strong { font:normal 1.25rem/1.2 Georgia, serif; color:var(--bg-ink); } +.bg-card > span:last-child {font-size:.7rem; line-height:1.65; color:var(--bg-muted);} +.md-typeset table:not([class]) { background:var(--bg-surface); border:1px solid var(--bg-line); } +.md-typeset table:not([class]) th { background:var(--bg-forest); color:#fff4e4; } +.md-typeset .admonition, .md-typeset details { border-radius:6px; box-shadow:none; } +@media (max-width: 700px) { + .bg-grid{grid-template-columns:1fr;} + .md-typeset { font-size:.76rem; } + .md-content__inner { padding-top:.3rem;} +} +@media (prefers-reduced-motion: reduce) { .md-typeset .bg-card { transition:none; } } diff --git a/v2/mkdocs.yml b/v2/mkdocs.yml new file mode 100644 index 0000000..31b9feb --- /dev/null +++ b/v2/mkdocs.yml @@ -0,0 +1,46 @@ +site_name: Bytegeist Docs +site_description: Private technical knowledge, deliberately curated +site_url: "" +docs_dir: docs +site_dir: site +use_directory_urls: true +theme: + name: material + variant: modern + language: de + font: false + features: + - navigation.sections + - navigation.top + - navigation.indexes + - search.highlight + - search.suggest + - content.code.copy + palette: + - scheme: default + primary: custom + accent: custom + toggle: + icon: material/weather-night + name: Dunkel + - scheme: slate + primary: custom + accent: custom + toggle: + icon: material/weather-sunny + name: Hell +plugins: + - search +markdown_extensions: + - admonition + - attr_list + - md_in_html + - tables + - pymdownx.details + - pymdownx.superfences +extra_css: + - styles/bytegeist.css +nav: + - Start: index.md + - Quellen auswählen: quellen.md + - Vertrauenswürdigkeit: pruefung.md