Skip to content

Commit

Permalink
[docs] Rename the latest documentation to development (backport #…
Browse files Browse the repository at this point in the history
…5722) (#5723)

Co-authored-by: Hailin Wang <[email protected]>
  • Loading branch information
mergify[bot] and haiiliin authored Aug 27, 2024
1 parent 220a7c8 commit 88654f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
echo "publish=pr-${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" = "push" ]; then
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
echo "publish=latest" >> $GITHUB_OUTPUT
echo "publish=development" >> $GITHUB_OUTPUT
else
echo "branch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
echo "publish=${{ github.ref_name }}" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
release = abqpy.__version__
rel = Version(release)
version, major = rel.base_version, rel.major
branch = major if not rel.is_prerelease else "latest"
branch = major if not rel.is_prerelease else "development"

sys.path.insert(0, os.path.abspath("../../src"))
sys.path.insert(0, os.path.abspath("./_ext"))
Expand Down Expand Up @@ -220,7 +220,7 @@
# further. For a list of options available for each theme, see the
# documentation.
READTHEDOCS = "READTHEDOCS" in os.environ
versions = ["latest"] + [str(v) for v in range(2024, 2015, -1)]
versions = ["development"] + [str(v) for v in range(2024, 2015, -1)]
with open(os.path.join(os.path.dirname(__file__), "locale", "edit-urls.json")) as f:
edit_urls = json.load(f)
html_theme_options = {
Expand Down

0 comments on commit 88654f5

Please sign in to comment.