Files
feresaria/.github/workflows/wiki.yml
T
Samuel Onoja eb84104940 Publish topic guides to the wiki and document tabbed windows
Publish the guides from this repository to the GitHub Wiki. Organize them into Usage, Configuration and Development, with 15 separate configuration topics and redirects for the former website guide URLs.

Add a tabbed-windows guide covering grouping, switching tabs and taking windows out. Document the scrolling indicator's defaults and limits, and link the guide from the README, shortcuts and IPC pages. Update from main, including the latest tabbed-layout changes.

Separate Activities setup, configuration and publishing documentation. Review the guide prose with the unslop skill, keeping existing examples and heading links. The wiki workflow uses GitHub's built-in token to publish documentation changes on main.

Validation:

- 20 documentation tests pass, including README links and Activities/tab-indicator field coverage.
- The publisher builds 46 wiki pages; the site build and Python syntax checks pass.
- All 115 code examples from main are preserved.
- The Python suite passes: 90 tests passed and 31 opt-in integration tests skipped, with the system GI module available.
2026-10-13 00:32:23 +01:00

49 lines
1.8 KiB
YAML

name: Publish documentation to GitHub Wiki
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'site/README.md'
- 'crates/ferese-theme/README.md'
- 'scripts/build-wiki.py'
- 'scripts/tests/test_wiki.py'
- 'site/requirements.txt'
- '.github/workflows/wiki.yml'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: wiki
cancel-in-progress: false
jobs:
publish:
if: github.repository == 'ferese-wm/ferese' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: main
persist-credentials: false
- name: Install Markdown parser and validate publisher
run: |
python3 -m venv .site-venv
.site-venv/bin/pip install -r site/requirements.txt
.site-venv/bin/python -m unittest discover -s scripts/tests -p test_wiki.py -v
.site-venv/bin/python scripts/build-wiki.py
- name: Publish changed wiki pages
env:
GH_TOKEN: ${{ github.token }}
run: |
set -eu
gh auth setup-git --hostname github.com
git clone --depth 1 https://github.com/ferese-wm/ferese.wiki.git build/wiki-checkout
.site-venv/bin/python scripts/build-wiki.py --output build/wiki-checkout
git -C build/wiki-checkout add -- '*.md' .ferese-pages.json
if git -C build/wiki-checkout diff --cached --quiet; then
echo 'Wiki is already current'
exit 0
fi
git -C build/wiki-checkout -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com' commit -m "Publish documentation from $(git rev-parse --short HEAD)"
git -C build/wiki-checkout push origin HEAD