Skip to content

feat: add Spec-Driven Workflow documentation page#189

Merged
rdmueller merged 4 commits into
LLM-Coding:mainfrom
raifdmueller:feat/workflow-docs-page
Mar 14, 2026
Merged

feat: add Spec-Driven Workflow documentation page#189
rdmueller merged 4 commits into
LLM-Coding:mainfrom
raifdmueller:feat/workflow-docs-page

Conversation

@raifdmueller

@raifdmueller raifdmueller commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new "Spec-Driven Workflow" documentation page accessible from the header navigation
  • Includes both English and German versions of the page, rendered as pre-built HTML
  • Adds a render-docs build script for converting AsciiDoc workflow docs to HTML
  • Integrates the new page into the SPA router and i18n translations

Changes

  • docs/spec-driven-workflow.html / docs/spec-driven-workflow.de.html — rendered documentation pages
  • scripts/render-docs.js — new build script for rendering AsciiDoc docs
  • website/src/components/header.js — adds navigation link
  • website/src/main.js — adds route handling for the new page
  • website/src/translations/{en,de}.json — adds translation key

Test plan

  • Verify the "Spec-Driven Workflow" link appears in the header navigation
  • Verify clicking the link loads the correct page in both EN and DE
  • Verify language switching works on the new page
  • Run npm run build and npm test to ensure no regressions

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Neue Features

    • Neue „Workflow“-Navigation in Desktop- und Mobilmenü.
    • Neue Workflow-Seite im Webinterface zur Anzeige des Entwicklungs-Workflows.
  • Dokumentation

    • Umfangreiche deutsch- und englischsprachige Workflow-Dokumentation mit Phasenleitfaden, Prompt-Cheat-Sheet, Reviews und Best Practices.

Adds the Semantic Anchors Development Workflow as a bilingual
documentation page accessible at #/workflow. Includes nav link,
route handler, language toggle support, and build pipeline integration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@raifdmueller has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 14 minutes and 24 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: acaaabe6-f376-460b-ad24-c9965f491d73

📥 Commits

Reviewing files that changed from the base of the PR and between ed48938 and d97201c.

📒 Files selected for processing (2)
  • docs/spec-driven-workflow.de.html
  • docs/spec-driven-workflow.html

Walkthrough

Der PR fügt zwei neue, vorgerenderte Dokumentseiten (EN/DE) zum Semantic-Anchors-Workflow hinzu, ergänzt das Render-Skript um eine copyHtmlDoc‑Hilfsfunktion sowie die SPA‑Navigation/Route /workflow und die passenden Übersetzungseinträge.

Changes

Cohort / File(s) Summary
Dokumentation
docs/spec-driven-workflow.html, docs/spec-driven-workflow.de.html
Zwei neue komplette statische HTML-Seiten (EN/DE) mit mehrphasigem, KI-gestütztem Entwicklungs‑Workflow, TOC, Prompt‑Cheatsheet und Diagrammreferenzen.
Dokumentrendering
scripts/render-docs.js
Neue interne Funktion copyHtmlDoc(srcPath, destPath) zum Extrahieren/Umschreiben vorgerenderter HTML‑Dokumente; zwei Aufrufe für die neuen Workflow‑Seiten hinzugefügt.
Navigation & Routing
website/src/components/header.js, website/src/main.js
Neue Navigationslinks (Desktop & Mobile) und neue Route /workflow mit renderWorkflowPage, lädt die Workflow‑Dokumentation in der SPA.
Lokalisierung
website/src/translations/en.json, website/src/translations/de.json
Neuer Übersetzungsschlüssel nav.workflow in EN/DE mit Wert „Workflow“.

Sequence Diagram(s)

sequenceDiagram
    participant Build as Build Script
    participant Files as Docs HTML
    participant FS as File System
    participant SPA as Frontend Router

    Build->>Files: read `spec-driven-workflow*.html`
    Build->>FS: write transformed snippet via copyHtmlDoc (title + content), rewrite links
    FS-->>SPA: serve `docs/spec-driven-workflow.html` (static assets)
    SPA->>FS: request `/workflow` content
    FS-->>SPA: return transformed doc snippet
    SPA->>SPA: renderWorkflowPage updates nav and injects content
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Der PR-Titel beschreibt präzise die Hauptänderung: Hinzufügen einer neuen Dokumentationsseite für den Spec-Driven Workflow. Der Titel ist spezifisch, klar und erfasst die primäre Absicht des Pull Requests vollständig.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can disable the changed files summary in the walkthrough.

Disable the reviews.changed_files_summary setting to disable the changed files summary in the walkthrough.

Comment thread docs/spec-driven-workflow.de.html Fixed
Comment thread docs/spec-driven-workflow.html Fixed
raifdmueller and others added 2 commits March 14, 2026 10:27
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Updates flatted and undici to fix high-severity CVEs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/spec-driven-workflow.de.html`:
- Line 2: Die HTML-Root-Tag setzt aktuell das falsche `lang`-Attribut (`<html
lang="en">`); bitte ändern Sie das `lang`-Attribut auf `de` (also `<html
lang="de">`) in der betroffenen Datei, und stellen Sie sicher, dass die
Website-UI weiterhin bilingual bleibt (English/German) während die
Anker-/Inhaltselemente, die bewusst auf Englisch bleiben sollen, unverändert
bleiben.
- Around line 437-438: Die externen <link> Tags für Font Awesome
("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"),
Highlight.js
("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/styles/github.min.css")
und die weiteren externen Assets (auch die Google Fonts-Links erwähnt) fehlen
SRI-Hashes; berechne die korrekten Subresource Integrity (SHA256/SHA384/SHA512)
Hashes für jede Datei, füge das entsprechende integrity="sha..." Attribut und
crossorigin="anonymous" zu den betreffenden <link> Tags hinzu und verifiziere,
daß die href-URLs exakt den Dateien entsprechen, damit die SRI-Hashes gültig
sind.

In `@docs/spec-driven-workflow.html`:
- Line 1297: The external highlight.js script tag that loads
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"
lacks Subresource Integrity and crossorigin attributes; update the <script> tag
that references that exact URL in both documents to include a correct
integrity="sha512-..." value (obtained from the CDN or an SRI generator) and add
crossorigin="anonymous" so the tag becomes SRI-protected and served with CORS
enabled.

In `@scripts/render-docs.js`:
- Around line 82-115: The changed block in scripts/render-docs.js (notably the
copyHtmlDoc function) violates Prettier formatting rules and fails CI; run the
formatter (prettier --write scripts/render-docs.js) to fix
whitespace/quote/indentation issues, then recommit the formatted file, and
ensure the repository has Prettier/ESLint config applied to scripts/**/*.{js,py}
so future edits to copyHtmlDoc and related calls (the copyHtmlDoc invocations at
the bottom) pass CI automatically.
- Around line 83-106: copyHtmlDoc currently extracts and rewrites HTML but does
not copy referenced assets, causing broken images like workflow-diagram.png
referenced in docs/spec-driven-workflow.html and
docs/spec-driven-workflow.de.html; update the copyHtmlDoc function to detect
asset references (e.g., <img src="...">, CSS/JS links) in the read html, resolve
relative paths against srcPath, and copy those files into the destPath directory
(creating subdirs with fs.mkdirSync and using fs.copyFileSync) or,
alternatively, if the image is obsolete, remove the <img> reference from the
extracted content before writing; ensure you update the same copyHtmlDoc logic
that performs URL rewrites so assets are handled consistently and log the copied
asset paths or handle missing assets with a clear error message.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: b821cda7-3aa5-4c9c-8573-88e22e8156ca

📥 Commits

Reviewing files that changed from the base of the PR and between 568d4ab and a8a274a.

📒 Files selected for processing (7)
  • docs/spec-driven-workflow.de.html
  • docs/spec-driven-workflow.html
  • scripts/render-docs.js
  • website/src/components/header.js
  • website/src/main.js
  • website/src/translations/de.json
  • website/src/translations/en.json

Comment thread docs/spec-driven-workflow.de.html Outdated
Comment thread docs/spec-driven-workflow.de.html Outdated
Comment thread docs/spec-driven-workflow.html Outdated
Comment thread scripts/render-docs.js
Comment thread scripts/render-docs.js
- Set lang="de" on German HTML page
- Add SRI integrity hashes for CDN resources (font-awesome, highlight.js)
- Remove broken workflow-diagram.png image reference (file does not exist)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants