Skip to content

Commit

Permalink
Use default public URL
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Oct 10, 2024
1 parent b61e3ec commit b628bd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ name: Deploy docs to Pages
on: push

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write
permissions:
contents: read
pages: write
id-token: write

# # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
# concurrency:
# group: "pages"
# cancel-in-progress: false
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
Expand Down Expand Up @@ -56,6 +56,6 @@ jobs:
uses: actions/upload-pages-artifact@v1
with:
path: packages/api-server/docs
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion packages/api-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:report": "../../.venv/bin/pipenv run python -m coverage html && xdg-open htmlcov/index.html",
"lint": "../../.venv/bin/pipenv run pyright && ../../.venv/bin/pipenv run pylint --rcfile=../../.pylintrc api_server --ignore=ros_pydantic,rmf_api,rmf_ros2",
"generate-models": "./generate-models.sh",
"generate-docs": "RMF_API_SERVER_CONFIG=scripts/docs_config.py ../../.venv/bin/pipenv run python scripts/extract_docs.py -o docs"
"generate-docs": "../../.venv/bin/pipenv run python scripts/extract_docs.py -o docs"
},
"devDependencies": {
"pipenv-install": "workspace:*"
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 b628bd7

Please sign in to comment.