Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions fetch-docs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ import urllib.request
# Usage: fetch-docs.py [BRANCH] [WEBROOT] (one cron line per branch)
# fetch-docs.py master /var/www/.../docs/devel
# fetch-docs.py 2.9 /var/www/.../docs/stable
REPO = "LinuxCNC/linuxcnc"
REPO_ID = 3662905 # head_repository_id; use your fork id to test
NAME = "linuxcnc-doc.tar.gz" # upload-artifact archive:false names it after the file
# REPO/REPO_ID/NAME default to the plain docs artifact but can be overridden
# from the environment to publish a post-processed variant instead, e.g.:
# FETCH_DOCS_REPO=LinuxCNC/doc-search FETCH_DOCS_REPO_ID=1275651762 \
# FETCH_DOCS_NAME=linuxcnc-doc-search.tar.gz \
# fetch-docs.py master /var/www/.../docs/devel
REPO = os.environ.get("FETCH_DOCS_REPO", "LinuxCNC/linuxcnc")
REPO_ID = int(os.environ.get("FETCH_DOCS_REPO_ID", "3662905")) # head_repository_id; use your fork id to test
NAME = os.environ.get("FETCH_DOCS_NAME", "linuxcnc-doc.tar.gz") # upload-artifact archive:false names it after the file
API_VER = "2026-03-10"
TOKEN_FILE = os.path.expanduser("~/.config/linuxcnc-docs/token") # chmod 600, PAT actions:read
BRANCH = sys.argv[1] if len(sys.argv) > 1 else "master"
Expand Down