Skip to content

Commit

Permalink
update archived docs workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jun Park <[email protected]>

move files

update archived docs workflow

Signed-off-by: Peter Jun Park <[email protected]>

fix version number

clean up workflow

workflow test

workflow test

another workflow test
  • Loading branch information
peterjunpark committed Jul 30, 2024
1 parent 85c27a8 commit 13c64b2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches: ["main"]
paths:
- 'src/docs'
- 'src/archive/docs-1.x'
- 'docs/archive/docs-2.x/**'
- 'docs/archive/docs-1.x/**'
- '.github/workflows/docs.yml'
- 'VERSION'

workflow_dispatch:

Expand All @@ -31,24 +30,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Additional python packages
run: pip3 install -r requirements-doc.txt
run: pip3 install -r docs/archive/requirements-doc.txt
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build 1.x docs
run: |
cd src/archive/docs-1.x
cd docs/archive/docs-1.x
make html
- name: Build current docs
- name: Build 2.x docs
run: |
cd src/docs
cd docs/archive/docs-2.x
make html
- name: Relocate 1.x docs
run: |
mv src/archive/docs-1.x/_build/html src/docs/_build/html/1.x
mv docs/archive/docs-1.x/_build/html docs/archive/_build/html/1.x
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./src/docs/_build/html
path: ./docs/archive/_build/html

# Deployment job
deploy:
Expand Down
4 changes: 2 additions & 2 deletions docs/archive/docs-2.x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
BUILDDIR = ../_build

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1 change: 1 addition & 0 deletions docs/archive/docs-2.x/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.1
4 changes: 2 additions & 2 deletions docs/archive/docs-2.x/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

repo_version = "unknown"
# Determine short version by file in repo
if os.path.isfile("../../VERSION"):
with open("../../VERSION") as f:
if os.path.isfile("./VERSION"):
with open("./VERSION") as f:
repo_version = f.readline().strip()


Expand Down
File renamed without changes.

0 comments on commit 13c64b2

Please sign in to comment.