Skip to content

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

License

Notifications You must be signed in to change notification settings

Kjuly/mkdocs-page-builder

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

If you have multiple config files to handle multi-languages, you can provide config_files:

uses: Kjuly/mkdocs-page-builder@main
with:
  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, which will publish to Github Pages.

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published