From f859247eb3d8f011684ab2310d1da7bf4d8ef80c Mon Sep 17 00:00:00 2001 From: Miguel Hernandez <61989986+roger-mike@users.noreply.github.com> Date: Wed, 29 Dec 2021 16:59:17 -0600 Subject: [PATCH] [BEAM-12777] Stable URL for current API docs (#16327) Co-authored-by: Brian Hulette --- release/src/main/scripts/build_release_candidate.sh | 2 ++ sdks/python/scripts/generate_pydoc.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/release/src/main/scripts/build_release_candidate.sh b/release/src/main/scripts/build_release_candidate.sh index 7132ad2037eb..7540c6928051 100755 --- a/release/src/main/scripts/build_release_candidate.sh +++ b/release/src/main/scripts/build_release_candidate.sh @@ -383,9 +383,11 @@ if [[ $confirmation = "y" ]]; then echo "..........Copying generated javadoc into beam-site.........." cp -r ${GENERATE_JAVADOC} javadoc/${RELEASE} + cp -r ${GENERATE_JAVADOC} javadoc/current echo "............Copying generated pydoc into beam-site.........." cp -r ${GENERATED_PYDOC} pydoc/${RELEASE} + cp -r ${GENERATED_PYDOC} pydoc/current git add -A git commit -m "Update beam-site for release ${RELEASE}." -m "Content generated from commit ${RELEASE_COMMIT}." diff --git a/sdks/python/scripts/generate_pydoc.sh b/sdks/python/scripts/generate_pydoc.sh index 64e574a36073..aeaf96a9b60d 100755 --- a/sdks/python/scripts/generate_pydoc.sh +++ b/sdks/python/scripts/generate_pydoc.sh @@ -93,6 +93,7 @@ echo " :inherited-members:" >> target/docs/source/apache_beam.dataframe.frame cat > target/docs/source/conf.py <<'EOF' import os import sys +from apache_beam import version as beam_version import sphinx_rtd_theme @@ -117,6 +118,8 @@ master_doc = 'index' html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] project = 'Apache Beam' +version = beam_version.__version__ +release = version autoclass_content = 'both' autodoc_inherit_docstrings = False