From e41a52863a97ef1fcaeee8f0b02b995211af483f Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Sun, 28 Jan 2024 11:55:58 -0800 Subject: [PATCH] fix: fix doc build to include the source snippet correctly (#883) --- .github/workflows/docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7980a074..657541f9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -42,7 +42,7 @@ jobs: - name: Set up node uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: 20 cache: 'npm' cache-dependency-path: node/package-lock.json - uses: Swatinem/rust-cache@v2 @@ -62,8 +62,9 @@ jobs: run: | npx typedoc --plugin typedoc-plugin-markdown --out ../docs/src/javascript src/index.ts - name: Build docs + working-directory: docs run: | - PYTHONPATH=. mkdocs build -f docs/mkdocs.yml + PYTHONPATH=. mkdocs build - name: Setup Pages uses: actions/configure-pages@v2 - name: Upload artifact @@ -72,4 +73,4 @@ jobs: path: "docs/site" - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 \ No newline at end of file + uses: actions/deploy-pages@v1