Publish an md-book on GitHub Pages
I have just started using md-book to write documentation for my projects.
Here's a step by step guide on how to publish an md-book on GitHub Pages.
- Create a public repository.
- In the repository, add a src directory., and put all your md files there.
- Create a simple book.toml.
- Go to your repository on GitHub; in Settings → Actions → General, under the Workflow Permissions section, enable Read & Write Permissions, and flag Allow GitHub Actions to create and approve pull requests.
- Create a mdBook workflow (mdbook.yml)
- Set your Github Page deployment to newly created 'gh-pages' branch.