Skip to content

Commit

Permalink
[libc++] Add a CI job to build the documentation
Browse files Browse the repository at this point in the history
At the same time, fix an issue that broke the documentation since 2eadbc8.
  • Loading branch information
ldionne committed Nov 5, 2020
1 parent 738d981 commit f7e4f04
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 0 additions & 1 deletion libcxx/docs/index.rst
Expand Up @@ -154,7 +154,6 @@ Design Documents
.. toctree::
:maxdepth: 1

DesignDocs/AvailabilityMarkup
DesignDocs/DebugMode
DesignDocs/CapturingConfigInfo
DesignDocs/ABIVersioning
Expand Down
11 changes: 11 additions & 0 deletions libcxx/utils/ci/buildkite-pipeline.yml
Expand Up @@ -202,6 +202,17 @@ steps:
- exit_status: -1 # Agent was lost
limit: 2

- label: "Documentation"
command: "libcxx/utils/ci/run-buildbot.sh documentation"
artifact_paths:
- "**/test-results.xml"
agents:
queue: "libcxx-builders"
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2

- label: "Legacy standalone build"
command: "libcxx/utils/ci/run-buildbot.sh legacy-standalone"
artifact_paths:
Expand Down
7 changes: 7 additions & 0 deletions libcxx/utils/ci/run-buildbot.sh
Expand Up @@ -169,6 +169,13 @@ benchmarks)
generate-cmake
check-cxx-benchmarks
;;
documentation)
export CC=clang
export CXX=clang++
generate-cmake -DLLVM_ENABLE_SPHINX=ON
echo "+++ Generating documentation"
ninja -C "${BUILD_DIR}" docs-libcxx-html
;;
unified-standalone)
export CC=clang
export CXX=clang++
Expand Down

0 comments on commit f7e4f04

Please sign in to comment.