Minimal DocFX docs repo (mumdat.github.io/docs style) for product handbooks. Use this folder as the root of a new GitHub repository and push to GitHub Pages.
handbook-docfx-starter/
docfx.json
de-de/
index.md
toc.yml
docs/mmplus/arbeitsvorstahl/arbeitsvorstahl.md
images/
public/main.css
configs/handbook_docfx_paths.example.json
.github/workflows/docfx.yml
Published URL pattern (project site):
- Home:
https://<user>.github.io/<repo>/(redirects tode-de/index.html) - Module:
https://<user>.github.io/<repo>/de-de/docs/mmplus/arbeitsvorstahl/arbeitsvorstahl.html
For this test repo: https://melnikbo.github.io/mumdat_docs/
If the root URL shows raw JSON, redeploy after index.html + _appBasePath fix (see docfx.json).
The deploy job returns 404 until Pages is enabled for GitHub Actions (not "Deploy from a branch").
- Open Settings -> Pages for your repo, e.g.
https://github.com/melnikbo/mumdat_docs/settings/pages - Under Build and deployment, set Source to GitHub Actions (not a branch).
- Save. You do not need to pick
main// (root)when using Actions. - Re-run the workflow: Actions -> Build and deploy DocFX -> Re-run all jobs.
After the first successful deploy, the site URL is shown on the deploy job and on the Pages settings page, typically:
https://melnikbo.github.io/mumdat_docs/
- Confirm the repo is public, or that your plan allows Pages on private repos.
- Confirm Settings -> Actions -> General -> Workflow permissions allows Read and write (needed for
GITHUB_TOKENand Pages). - Wait 1-2 minutes after enabling Pages, then re-run (first-time provisioning can lag).
Warnings about Node.js 20 vs 24 on actions/checkout / deploy-pages are not the cause of the 404. They can be ignored for now.
cd handbook-docfx-starter
git init
git add .
git commit -m "Initial DocFX docs site structure"
# create empty repo on GitHub first, then:
git remote add origin git@github.com:<YOUR_USER>/<YOUR_DOCS_REPO>.git
git branch -M main
git push -u origin mainThen complete GitHub Pages setup above before expecting a green deploy.
Requires .NET SDK 8+:
dotnet tool install -g docfx
docfx docfx.json
docfx serve _site
# open http://localhost:8080docfx.json sets "_appBasePath": "/mumdat_docs/" so CSS, search, and nav work on a GitHub project site (user.github.io/repo/).
If you fork this starter to another repo, change _appBasePath to "/YOUR_DOCS_REPO/".
- Add
de-de/docs/<productLine>/<moduleSlug>/<moduleSlug>.md - Add entry to
de-de/toc.yml - Push -> CI rebuilds the site
See configs/handbook_docfx_paths.example.json for a future BlackBox push mapping.
| Repo type | Handbook delivery |
|---|---|
Product (idRanges >= 1M) |
This DocFX repo (planned auto-push from worker) |
Client (idRanges < 1M) |
docs/handbook.md in client AL repo (blackbox/handbook-docs branch) |