Skip to content

Commit

Permalink
Fix ghpages workflow (#1019)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth authored Oct 16, 2024
1 parent 4cddc18 commit 3dbe34d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/scripts/extract_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3dbe34d

Please sign in to comment.