Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 8 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,19 @@
name: Documentation CI
name: Legacy MkDocs v1 source validation — retired

# Superseded by the Zensical v2 opt-in source collector and v2-preview.yml.
# The previous full build cloned 12 sources via DOCS_REPO_TOKEN on every push.
# There is intentionally no automatic private repo access here anymore.
on:
pull_request:
push:
branches: [main]
repository_dispatch:
types: [docs-source-updated]
workflow_dispatch:

permissions:
contents: read

jobs:
committed-docs:
name: Public repository strict build
if: github.event_name == 'pull_request' || github.event_name == 'push'
retired:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- run: python -m pip install -r requirements.txt
- run: python scripts/check_repository_safety.py
- run: python -c "import yaml; yaml.safe_load(open('docs-sources.yml'))"
- run: python -m py_compile scripts/*.py
- run: python -m unittest discover -s tests -v
- run: python scripts/import_docs.py --list-sources
- run: python scripts/import_docs.py --clean --no-sources
- run: mkdocs build --strict -f .generated-mkdocs.yml -d site

trusted-full-docs:
name: Trusted full documentation validation
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- run: python -m pip install -r requirements.txt
- name: Require private source read credential
env:
GH_TOKEN: ${{ secrets.DOCS_REPO_TOKEN }}
run: test -n "$GH_TOKEN"
- name: Retrieve latest sources and validate full build
env:
GH_TOKEN: ${{ secrets.DOCS_REPO_TOKEN }}
- name: Explain intentional retirement
run: |
python scripts/import_docs.py --clean
mkdocs build --strict -f .generated-mkdocs.yml -d site
- name: Assert generated output is not tracked
run: test -z "$(git ls-files .generated-docs .generated-mkdocs.yml site)"
echo 'Legacy v1 full-source validation is retired.'
echo 'See Zensical v2 checks and explicit curated local sources.'
3 changes: 3 additions & 0 deletions v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

## Renderer decision: Zensical

The v1 trusted full-import CI is also intentionally disabled as part of the rebuild. `v2-preview.yml` is the only active documentation validation, and it never has private source credentials. Private sources are opt-in for local runs; no automated private publisher has been reintroduced.


**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.
Expand Down
Loading