Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs build job #12592

Merged
merged 33 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1919487
initial draft
AyodeAwe Jan 23, 2023
1627316
fix typo
AyodeAwe Jan 24, 2023
84f1af1
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Jan 24, 2023
32f2cd8
chmod
AyodeAwe Jan 25, 2023
59945c9
Merge branch 'add_docs_build' of github.com:AyodeAwe/cudf into add_do…
AyodeAwe Jan 25, 2023
054cefa
add py channel
AyodeAwe Jan 25, 2023
9f401af
fixes
AyodeAwe Jan 29, 2023
266972c
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Jan 29, 2023
b473f19
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Feb 2, 2023
8542b76
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 2, 2023
4841cf2
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 3, 2023
c5d4b84
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 3, 2023
534b6c5
rm -W flag
AyodeAwe Feb 6, 2023
6703177
Merge branch 'add_docs_build' of github.com:AyodeAwe/cudf into add_do…
AyodeAwe Feb 6, 2023
1ba6877
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 6, 2023
9a5ae0a
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 10, 2023
c1a20d1
Update ci/build_docs.sh
ajschmidt8 Feb 13, 2023
d204069
Merge branch 'branch-23.04' into add_docs_build
ajschmidt8 Feb 13, 2023
52ecf95
update shared workflow branch
ajschmidt8 Feb 13, 2023
09f19c1
skip docs nightly
AyodeAwe Feb 17, 2023
01f7bdb
Merge branch 'add_docs_build' of github.com:AyodeAwe/cudf into add_do…
AyodeAwe Feb 17, 2023
b884367
Merge branch 'branch-23.04' into add_docs_build
ajschmidt8 Feb 17, 2023
70baa0f
rm `conf.py` imports
ajschmidt8 Feb 17, 2023
69ce9e8
add generated file dirs to `.gitignore`
ajschmidt8 Feb 17, 2023
b0fb546
add `dask-cudf` to docs build installs
ajschmidt8 Feb 17, 2023
9e4ffbb
rm unnecessary comments
ajschmidt8 Feb 18, 2023
9ec7b7b
Merge remote-tracking branch 'upstream/branch-23.04' into add_docs_build
ajschmidt8 Feb 18, 2023
4898bca
update dependency list name
ajschmidt8 Feb 18, 2023
660430e
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 21, 2023
740fb29
add req. rmm tag
AyodeAwe Feb 21, 2023
f1a982e
Update ci/build_docs.sh
AyodeAwe Feb 22, 2023
41edde6
fix typo
AyodeAwe Feb 22, 2023
0fb251d
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ jobs:
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
skip_upload_pkgs: libcudf-example
docs-build:
if: github.ref_type == 'branch' && github.event_name == 'push'
needs: python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
with:
build_type: branch
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
wheel-build-cudf:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- conda-python-other-tests
- conda-java-tests
- conda-notebook-tests
- docs-build
- wheel-build-cudf
- wheel-tests-cudf
- wheel-build-dask-cudf
Expand Down Expand Up @@ -82,6 +83,16 @@ jobs:
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/test_notebooks.sh"
docs-build:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected]
with:
build_type: pull-request
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
wheel-build-cudf:
needs: checks
secrets: inherit
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ docs/cudf/source/api_docs/generated/*
docs/cudf/source/api_docs/api/*
docs/cudf/source/user_guide/example_output/*
docs/cudf/source/user_guide/cudf.*Dtype.*.rst
_html
_text
jupyter_execute

# cibuildwheel
/wheelhouse
47 changes: 47 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml

rapids-mamba-retry env create --force -f env.yaml -n docs
conda activate docs

rapids-print-env

rapids-logger "Downloading artifacts from previous jobs"
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
VERSION_NUMBER=$(rapids-get-rapids-version-from-git)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
--channel "${PYTHON_CHANNEL}" \
libcudf cudf dask-cudf


rapids-logger "Build Doxygen docs"
pushd cpp/doxygen
aws s3 cp s3://rapidsai-docs/librmm/${VERSION_NUMBER}/html/rmm.tag . || echo "Failed to download rmm Doxygen tag"
doxygen Doxyfile
popd

rapids-logger "Build Sphinx docs"
pushd docs/cudf
sphinx-build -b dirhtml source _html
sphinx-build -b text source _text
popd


if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
aws s3 sync --delete cpp/doxygen/html "s3://rapidsai-docs/libcudf/${VERSION_NUMBER}/html"
aws s3 sync --delete docs/cudf/_html "s3://rapidsai-docs/cudf/${VERSION_NUMBER}/html"
aws s3 sync --delete docs/cudf/_text "s3://rapidsai-docs/cudf/${VERSION_NUMBER}/txt"
fi
13 changes: 10 additions & 3 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ files:
- build
- cudatoolkit
- develop
- doc
- docs
- notebooks
- py_version
- run
Expand Down Expand Up @@ -41,6 +41,12 @@ files:
includes:
- develop
- py_version
docs:
output: none
includes:
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
- cudatoolkit
- docs
- py_version
channels:
- rapidsai
- rapidsai-nightly
Expand Down Expand Up @@ -121,10 +127,11 @@ dependencies:
- output_types: conda
packages:
- doxygen=1.8.20 # pre-commit hook needs a specific version.
doc:
docs:
common:
- output_types: [conda, requirements]
- output_types: [conda]
packages:
- doxygen=1.8.20
- myst-nb
- nbsphinx
- numpydoc
Expand Down
6 changes: 0 additions & 6 deletions docs/cudf/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# Copyright (c) 2018-2023, NVIDIA CORPORATION.
#
# cudf documentation build configuration file, created by
Expand All @@ -23,11 +22,6 @@
from docutils.nodes import Text
from sphinx.addnodes import pending_xref

import cudf
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved

sys.path.insert(0, os.path.abspath(cudf.__path__[0]))
sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath("../.."))
sys.path.append(os.path.abspath("./_ext"))

# -- General configuration ------------------------------------------------
Expand Down