Repository navigation
docs: generate the home page and assets with a mkdocs hook - #753
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Architecture diagrams no longer render on GitHub because the source Markdown still references deleted docs/assets paths while assets are generated only during MkDocs builds.
1 open issue
What changed in this PR
This PR moves Kraken’s documentation home page and asset generation into MkDocs builds, removing manually synchronized copies and addressing #752.
Changes:
- Generate the home page from
README.mdand include root assets through a MkDocs hook. - Standardize local preview and strict builds with Make targets and a virtual-environment wrapper.
- Watch source files for live reload and trigger documentation CI when they change.
| File | Description |
|---|---|
scripts/mkdocs.sh |
Remove the wrapper that generated checked-in documentation. |
scripts/mkdocs_venv.sh |
Add a virtual-environment wrapper for MkDocs. |
scripts/mkdocs_hooks.py |
Generate the home page and register assets at build time. |
mkdocs.yml |
Enable the hook and watch README and assets. |
Makefile |
Update preview command and add strict documentation builds. |
docs/index.md |
Remove the manually synchronized home page. |
docs/CONTRIBUTING.md |
Document Make targets and direct MkDocs alternatives. |
docs/assets/kraken-logo-color.svg |
Remove the duplicated logo asset. |
docs/assets/kraken_core.svg |
Remove the duplicated core architecture diagram. |
docs/assets/kraken_build_index.svg |
Remove the duplicated build-index diagram. |
docs/assets/benchmark.svg |
Remove the duplicated benchmark graphic. |
docs/assets/architecture.svg |
Remove the duplicated architecture graphic. |
.github/workflows/pages.yml |
Trigger documentation CI for README, assets, and hook changes. |
Review effort: Balanced
egorikas
approved these changes
Nov 16, 2026
sambhav-jain-16
approved these changes
Nov 17, 2026
thijmv
force-pushed
the
thijmv/mkdocs-hook
branch
from
November 17, 2026 09:50
8d75591 to
873af59
Compare
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
thijmv
force-pushed
the
thijmv/mkdocs-hook
branch
from
November 17, 2026 12:05
873af59 to
dd44113
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Currently, generated documentation files (docs/index.md and docs/assets) are checked in, so we need to manually keep them in sync. These files are regenerated by scripts/mkdocs.sh, which the CI workflow does not run, meaning the published site always serves a stale docs/index.md.
To resolve this, this PR makes the following changes:
make docs/docs-buildas the standard command for contributors, withmkdocs serve/buildas an alternative (also for CI).Fixes #752.
Test plan
make docs-buildpasses with no warnings andmake docsreloads when changes to README/assets are made.