diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml index 75e51802c..b228c201f 100644 --- a/.github/workflows/ghpages.yml +++ b/.github/workflows/ghpages.yml @@ -49,7 +49,7 @@ jobs: package: api-server - name: Extract docs run: | - . /opt/rmf/install/setup.bash + . /opt/rmf/setup.bash pnpm run generate-docs - name: Upload artifact uses: actions/upload-pages-artifact@v1 diff --git a/packages/api-server/scripts/extract_docs.py b/packages/api-server/scripts/extract_docs.py index bf02a33e3..00f1c0224 100644 --- a/packages/api-server/scripts/extract_docs.py +++ b/packages/api-server/scripts/extract_docs.py @@ -34,7 +34,7 @@ def cleanup(): outdir = f"{args.output}" os.makedirs(outdir, exist_ok=True) -base_url = "http://localhost:8000/rmf-web" +base_url = "http://localhost:8000" with urlopen(f"{base_url}/docs") as resp: html: bytes = resp.read() with open(f"{outdir}/index.html", "bw") as f: