Files
mscclpp/.github/workflows/doc-build.yaml
Qinghua Zhou f0441ee4ea Update document versioning for PR #724 (#735)
This PR fix the issue of generating docs when we take
https://github.com/microsoft/mscclpp/pull/724 into main branch.
Build docs for main branch separately.
Use HEAD request instead of GET to check if a page exist.
Filter out versions before v0.4.0 in generate_versions.py.

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Binyang Li <binyli@microsoft.com>
2026-02-01 19:52:01 -08:00

39 lines
784 B
YAML

name: Docs Build
on:
pull_request:
branches:
- '**'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Fetch full history for accurate version info
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen=1.9.1-* graphviz
pip install -r docs/requirements.txt
- name: Build docs
run: |
cd docs
rm -rf doxygen _build py_api
doxygen
make multiversion
touch _build/html/.nojekyll