Skip to content

Commit

Permalink
[BEAM-12777] Stable URL for current API docs (apache#16327)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Hulette <[email protected]>
  • Loading branch information
roger-mike and TheNeuralBit authored Dec 29, 2021
1 parent 7c3fd2a commit f859247
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/src/main/scripts/build_release_candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}."
Expand Down
3 changes: 3 additions & 0 deletions sdks/python/scripts/generate_pydoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f859247

Please sign in to comment.