Skip to content

Github Action to deploy MkDocs source files as Github Pages, supporting multiple config files.

License

Notifications You must be signed in to change notification settings

Kjuly/mkdocs-page-publisher

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

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mkdocs-page-publisher

Github Action to deploy MkDocs source files as Github Pages, supporting multiple config files.

A template (mkdocs-template) is available as a demo.

Usage

The mkdocs.yml in the root directory will be used by default.

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  publish:
    name: Publish MkDocs Pages
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Publish Pages
        id: deployment
        uses: Kjuly/mkdocs-page-publisher@main

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

uses: Kjuly/mkdocs-page-publisher@main
with:
  config_files: |-
    config/en/mkdocs.yml
    config/zh-Hans/mkdocs.yml

If you just want to build pages and deploy to other page hosts, you can use MkDocs Page Builder.

About

Github Action to deploy MkDocs source files as Github Pages, supporting multiple config files.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published