Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kjuly/mkdocs-page-builder

Github Action to build MkDocs source files as static pages, supporting multiple config files.
https://github.com/kjuly/mkdocs-page-builder

build github-action github-pages i18n mkdocs

Last synced: about 2 months ago
JSON representation

Github Action to build MkDocs source files as static pages, supporting multiple config files.

Awesome Lists containing this project

README

        

# mkdocs-page-builder
Github Action to build MkDocs source files as static pages, supporting multiple config files.

## Usage

The `mkdocs.yml` in the root directory will be used by default.
```yaml
jobs:
build:
name: Build MkDocs Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Pages
uses: Kjuly/mkdocs-page-builder@main
with:
requirements_file: requirements.txt
```

If you have multiple config files to handle multi-languages, you can provide `config_files`:
```yaml
uses: Kjuly/mkdocs-page-builder@main
with:
requirements_file: requirements.txt
config_files: |-
config/en/mkdocs.yml
config/zh-Hans/mkdocs.yml
```

---

The build page will be stored in `${{ github.workspace }}/build`.

For output usage, please refer to [MkDocs Page Publisher][mkdocs-page-publisher], which will publish to Github Pages.

[mkdocs-page-publisher]: https://github.com/Kjuly/mkdocs-page-publisher