Deploy to GitHub Pages
- Set
site_urlindokk.tomlto your Pages URL, for examplehttps://you.github.io/my-docs/. dokk derives the base path (/my-docs) from it. - Push the repository, including
.github/workflows/docs.ymlfromdokk init. - In the repository settings, under Pages, set the source to GitHub Actions.
On every push to main, the workflow runs dokk check, builds the site and deploys it.
The build also writes .nojekyll, 404.html, sitemap.xml and robots.txt. A CNAME file in
public/ sets a custom domain.