Skip to content

Clean structure: only docs and mkdocs#26

Open
papricie wants to merge 2 commits intomainfrom
clean-docs-papricie
Open

Clean structure: only docs and mkdocs#26
papricie wants to merge 2 commits intomainfrom
clean-docs-papricie

Conversation

@papricie
Copy link
Contributor

No description provided.

Comment on lines +80 to +84
- Source: GitHub Actions
- The website is built automatically from `docs/` directory
- No generated HTML files are stored in the repository

Every push to `main` that updates the `site/` directory updates the public website.
Every push to `main` that updates the `docs/` directory automatically updates the public website.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the more complicated approach. It looks to me there are three approaches:

  1. easiest for now: Store generated HTML in main branch but it has to be in the /docs directory. We have to set site_dir: docs and docs_dir: <any other dir> in mkdocs.yml. Info here: https://www.mkdocs.org/user-guide/configuration/#docs_dir
  2. mid complicated: Use mkdocs gh-deploy on your machine - it should store generated HTML to different branch which will be than set in Pages settings
  3. most complicated setup, but the best "user experience" in the long term: custom GitHub Action - it will probably run mkdocs gh-deploy by itself but it needs to be setup and tested

@papricie papricie self-assigned this Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments