Skip to content

Commit cc1bab9

Browse files
authored
build libwholegraph docs in CI (#96)
Fixes #94 Uploads API docs for `libwholegraph`, to be used by rapidsai/cugraph-docs#46 Also removes `sphinx` dependencies... this repo only needs to produce Doxygen docs for `libwholegraph`, all the other Sphinx stuff will be done in https://github.com/rapidsai/cugraph-docs. Authors: - James Lamb (https://github.com/jameslamb) - Don Acosta (https://github.com/acostadon) Approvers: - Don Acosta (https://github.com/acostadon) - Bradley Dice (https://github.com/bdice) URL: #96
1 parent 0013186 commit cc1bab9

File tree

7 files changed

+65
-33
lines changed

7 files changed

+65
-33
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ jobs:
4343
branch: ${{ inputs.branch }}
4444
date: ${{ inputs.date }}
4545
sha: ${{ inputs.sha }}
46+
docs-build:
47+
needs: conda-cpp-build
48+
secrets: inherit
49+
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
50+
with:
51+
arch: "amd64"
52+
branch: ${{ inputs.branch }}
53+
build_type: ${{ inputs.build_type || 'branch' }}
54+
container_image: "rapidsai/ci-conda:latest"
55+
date: ${{ inputs.date }}
56+
run_script: "ci/build_docs.sh"
57+
sha: ${{ inputs.sha }}
4658
upload-conda:
4759
needs: [cpp-build, python-build]
4860
secrets: inherit

.github/workflows/pr.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- conda-cpp-tests
2020
- conda-python-build
2121
- conda-python-tests
22+
- docs-build
2223
- conda-notebook-tests
2324
- wheel-build-pylibwholegraph
2425
- wheel-tests-pylibwholegraph
@@ -116,6 +117,15 @@ jobs:
116117
with:
117118
build_type: pull-request
118119
matrix_filter: map(select(.ARCH == "amd64"))
120+
docs-build:
121+
needs: conda-cpp-build
122+
secrets: inherit
123+
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
124+
with:
125+
arch: "amd64"
126+
build_type: pull-request
127+
container_image: "rapidsai/ci-conda:latest"
128+
run_script: "ci/build_docs.sh"
119129
wheel-build-pylibwholegraph:
120130
needs: checks
121131
secrets: inherit

ci/build_docs.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
3+
4+
set -euo pipefail
5+
6+
rapids-logger "Create test conda environment"
7+
. /opt/conda/etc/profile.d/conda.sh
8+
9+
RAPIDS_VERSION="$(rapids-version)"
10+
11+
rapids-dependency-file-generator \
12+
--output conda \
13+
--file-key docs \
14+
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml
15+
16+
rapids-mamba-retry env create --yes -f env.yaml -n docs
17+
18+
# Temporarily allow unbound variables for conda activation.
19+
set +u
20+
conda activate docs
21+
set -u
22+
23+
rapids-print-env
24+
25+
rapids-logger "Downloading artifacts from previous jobs"
26+
27+
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
28+
export RAPIDS_DOCS_DIR="$(mktemp -d)"
29+
30+
rapids-mamba-retry install \
31+
--channel "${CPP_CHANNEL}" \
32+
"libwholegraph=${RAPIDS_VERSION}"
33+
34+
rapids-logger "Build C++ docs"
35+
pushd cpp
36+
doxygen Doxyfile
37+
mkdir -p "${RAPIDS_DOCS_DIR}/libwholegraph/xml_tar"
38+
tar -czf "${RAPIDS_DOCS_DIR}/libwholegraph/xml_tar"/xml.tar.gz -C xml .
39+
popd
40+
41+
rapids-logger "Output temp dir: ${RAPIDS_DOCS_DIR}"
42+
43+
RAPIDS_VERSION_NUMBER="$(rapids-version-major-minor)" rapids-upload-docs

conda/environments/all_cuda-118_arch-x86_64.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,16 @@ dependencies:
2323
- graphviz
2424
- ipython
2525
- nbconvert
26-
- nbsphinx
2726
- nccl>=2.19
2827
- ninja
2928
- notebook>=0.5.0
3029
- numba>=0.57
3130
- numpy>=1.23,<3.0a0
32-
- numpydoc
3331
- nvcc_linux-64=11.8
3432
- ogb
3533
- pandas
3634
- pre-commit
3735
- pydantic
38-
- pydata-sphinx-theme
3936
- pylibcugraphops==25.2.*,>=0.0.0a0
4037
- pylibraft==25.2.*,>=0.0.0a0
4138
- pytest
@@ -48,15 +45,10 @@ dependencies:
4845
- pytorch_geometric>=2.5,<2.6
4946
- raft-dask==25.2.*,>=0.0.0a0
5047
- rapids-build-backend>=0.3.0,<0.4.0.dev0
51-
- recommonmark
5248
- rmm==25.2.*,>=0.0.0a0
5349
- scikit-build-core>=0.10.0
5450
- scipy
5551
- setuptools>=61.0.0
56-
- sphinx-copybutton
57-
- sphinx-markdown-tables
58-
- sphinx<6
59-
- sphinxcontrib-websupport
6052
- torchdata
6153
- wheel
6254
name: all_cuda-118_arch-x86_64

conda/environments/all_cuda-121_arch-x86_64.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,15 @@ dependencies:
3030
- libcusolver-dev
3131
- libcusparse-dev
3232
- nbconvert
33-
- nbsphinx
3433
- nccl>=2.19
3534
- ninja
3635
- notebook>=0.5.0
3736
- numba>=0.57
3837
- numpy>=1.23,<3.0a0
39-
- numpydoc
4038
- ogb
4139
- pandas
4240
- pre-commit
4341
- pydantic
44-
- pydata-sphinx-theme
4542
- pylibcugraphops==25.2.*,>=0.0.0a0
4643
- pylibraft==25.2.*,>=0.0.0a0
4744
- pytest
@@ -54,15 +51,10 @@ dependencies:
5451
- pytorch_geometric>=2.5,<2.6
5552
- raft-dask==25.2.*,>=0.0.0a0
5653
- rapids-build-backend>=0.3.0,<0.4.0.dev0
57-
- recommonmark
5854
- rmm==25.2.*,>=0.0.0a0
5955
- scikit-build-core>=0.10.0
6056
- scipy
6157
- setuptools>=61.0.0
62-
- sphinx-copybutton
63-
- sphinx-markdown-tables
64-
- sphinx<6
65-
- sphinxcontrib-websupport
6658
- torchdata
6759
- wheel
6860
name: all_cuda-121_arch-x86_64

conda/environments/all_cuda-124_arch-x86_64.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,15 @@ dependencies:
3030
- libcusolver-dev
3131
- libcusparse-dev
3232
- nbconvert
33-
- nbsphinx
3433
- nccl>=2.19
3534
- ninja
3635
- notebook>=0.5.0
3736
- numba>=0.57
3837
- numpy>=1.23,<3.0a0
39-
- numpydoc
4038
- ogb
4139
- pandas
4240
- pre-commit
4341
- pydantic
44-
- pydata-sphinx-theme
4542
- pylibcugraphops==25.2.*,>=0.0.0a0
4643
- pylibraft==25.2.*,>=0.0.0a0
4744
- pytest
@@ -54,15 +51,10 @@ dependencies:
5451
- pytorch_geometric>=2.5,<2.6
5552
- raft-dask==25.2.*,>=0.0.0a0
5653
- rapids-build-backend>=0.3.0,<0.4.0.dev0
57-
- recommonmark
5854
- rmm==25.2.*,>=0.0.0a0
5955
- scikit-build-core>=0.10.0
6056
- scipy
6157
- setuptools>=61.0.0
62-
- sphinx-copybutton
63-
- sphinx-markdown-tables
64-
- sphinx<6
65-
- sphinxcontrib-websupport
6658
- torchdata
6759
- wheel
6860
name: all_cuda-124_arch-x86_64

dependencies.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,6 @@ dependencies:
297297
- breathe
298298
- doxygen
299299
- graphviz
300-
- ipython
301-
- nbsphinx
302-
- numpydoc
303-
- pydata-sphinx-theme
304-
- recommonmark
305-
- sphinx-copybutton
306-
- sphinx-markdown-tables
307-
- sphinx<6
308-
- sphinxcontrib-websupport
309300
py_version:
310301
specific:
311302
- output_types: [conda]

0 commit comments

Comments
 (0)