JimBobSquarePants / docfx-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docfx-action

A GitHub action to run DocFX and generate a documentation site.

Usage

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to say hello
    steps:
    - uses: actions/checkout@v1
    # ...
    - uses: nikeee/docfx-action@v1.0.0
      name: Build Documentation
      with:
        args: path/to/your/docfx.json

    # Publish generated site using GitHub Pages
    - uses: maxheld83/ghpages@master
      name: Publish Documentation on GitHub Pages
      env:
        BUILD_DIR: _site # docfx's default output directory is _site
        GH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages

In general, to run docfx <something>, you can use:

    - uses: nikeee/docfx-action@v1.0.0
      with:
        args: <something>

About


Languages

Language:Dockerfile 94.7%Language:Shell 5.3%