Skip to content

Commit

Permalink
[ci] redo 47483
Browse files Browse the repository at this point in the history
Signed-off-by: can <can@anyscale.com>
  • Loading branch information
can-anyscale committed Sep 4, 2024
1 parent 5463f5b commit c20de4a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
26 changes: 13 additions & 13 deletions ci/ray_ci/doc/cmd_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ def main(ray_checkout_dir: str) -> None:
logger.info("Building ray doc.")
_build(ray_checkout_dir)

if (
os.environ.get("BUILDKITE_PIPELINE_ID")
not in get_global_config()["ci_pipeline_postmerge"]
):
logger.info(
"Not uploading build artifacts because this is not a postmerge pipeline."
)
return
# if (
# os.environ.get("BUILDKITE_PIPELINE_ID")
# not in get_global_config()["ci_pipeline_postmerge"]
# ):
# logger.info(
# "Not uploading build artifacts because this is not a postmerge pipeline."
# )
# return

if os.environ.get("BUILDKITE_BRANCH") != "master":
logger.info(
"Not uploading build artifacts because this is not the master branch."
)
return
# if os.environ.get("BUILDKITE_BRANCH") != "master":
# logger.info(
# "Not uploading build artifacts because this is not the master branch."
# )
# return

logger.info("Uploading build artifacts to S3.")
BuildCache(os.path.join(ray_checkout_dir, "doc")).upload()
Expand Down
3 changes: 2 additions & 1 deletion doc/requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ setuptools>=70.0.0
Pygments==2.16.1

# Sphinx
sphinx==7.1.2
sphinx==7.3.7
sphinx-click==5.1.0
sphinx-copybutton==0.5.2
sphinxemoji==0.2.0
Expand All @@ -20,6 +20,7 @@ sphinx-autobuild==2024.4.16
pydata-sphinx-theme==0.14.1
autodoc_pydantic==2.2.0
appnope
sphinx-docsearch==0.0.7

pydantic!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,<3

Expand Down
6 changes: 6 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,14 @@
"sphinx_remove_toctrees",
"sphinx_design",
"sphinx.ext.intersphinx",
"sphinx_docsearch",
]

# Configuration for algolia
docsearch_app_id = "LBHF0PABBL"
docsearch_api_key = "6c42f30d9669d8e42f6fc92f44028596"
docsearch_index_name = "docs-ray"

remove_from_toctrees = [
"cluster/running-applications/job-submission/doc/*",
"ray-observability/reference/doc/*",
Expand Down

0 comments on commit c20de4a

Please sign in to comment.