From 3dbe34d4ebe1e020a98254e596ca8e8022f74f2e Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Wed, 16 Oct 2024 10:50:29 +0800 Subject: [PATCH] Fix ghpages workflow (#1019) Signed-off-by: Aaron Chong --- .github/workflows/ghpages.yml | 2 +- packages/api-server/scripts/extract_docs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: