Skip to content

Commit

Permalink
ci: update docs location
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhart authored Nov 18, 2024
1 parent d9c2eb6 commit 872f2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
export SANSMIC_SPHINX_VERSION=$TAG
export VERSION_INFO=$TAG
mkdir docs/_build/doxyxml
git checkout -f $TAG
git switch -f $TAG
python -m pip install --no-deps -e .
sphinx-build -Q -b html docs/ out/releases/$TAG
sphinx-build -Q -b html docs/ out/$TAG
done
- name: Upload artifact
Expand Down
27 changes: 3 additions & 24 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
tags = git_tag.stdout.splitlines()
versions = [
{
"name": "stable",
"version": "main",
"name": "main",
"version": "",
"url": "https://sandialabs.github.io/sansmic/",
"preferred": False,
}
Expand All @@ -39,7 +39,7 @@
dict(
name=tag,
version=tag,
url="https://sandialabs.github.io/sansmic/releases/" + tag + "/",
url="https://sandialabs.github.io/sansmic/" + tag + "/",
preferred=latest,
)
)
Expand All @@ -49,24 +49,3 @@
"w",
) as fswitch:
json.dump(versions, fswitch)

# for tag in tags:
# os.environ["VERSION_INFO"] = repr(tag)
# my_env["SANSMIC_SPHINX_VERSION"] = tag
# files = glob.glob("./docs/apidocs/*.rst")
# for f in files:
# os.remove(f)
# subprocess.run("git checkout " + tag, shell=True)
# subprocess.run(
# " ".join(
# [
# "sphinx-build",
# "-b",
# "html",
# "docs/",
# "out/v/" + tag,
# ]
# ),
# shell=True,
# env=my_env,
# )

0 comments on commit 872f2db

Please sign in to comment.