Skip to content

fix: add Unity type stubs for DocFX v2 compilation #35

fix: add Unity type stubs for DocFX v2 compilation

fix: add Unity type stubs for DocFX v2 compilation #35

Workflow file for this run

name: Example documentation
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
# Build the documentation
build:
runs-on: ubuntu-latest # DocFX v2+ is cross-platform; no longer requires Windows
steps:
- name: Checkout
uses: actions/checkout@v4
# with:
# submodules: true
- name: Install DocFX
run: dotnet tool install -g docfx --version 2.77.0
- name: Use README.md as index.md
run: cp README.md Documentation/index.md
- name: Build
run: docfx Documentation/docfx.json
# Upload the generated documentation
- name: Upload site artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site # Must equal the 'build.dest' value in docfx.json
# Deploy the generated documentation to GitHub Pages
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4