Skip to content

Commit 04233d5

Browse files
authored
Introduce artifact ci and add developer docs (#592)
* Use artefact ci. * Add to contributing.md * Remove unecessary arguments.
1 parent aebbb5c commit 04233d5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/docs_build_and_deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
name: Build Sphinx Docs
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: neuroinformatics-unit/actions/build_sphinx_docs@v2
22+
- uses: neuroinformatics-unit/actions/build_sphinx_docs@main
23+
with:
24+
use-artifactci: lazy
2325

2426
deploy_sphinx_docs:
2527
name: Deploy Sphinx Docs

docs/source/pages/community/contributing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,13 @@ To edit a page, please:
166166

167167
If you aren't sure where the changes should be made, please
168168
[get in touch!](https://neuroinformatics.zulipchat.com/#narrow/stream/405999-DataShuttle)
169+
170+
171+
### Previewing the documentation in continuous integration
172+
173+
We use [artifact.ci](https://artifact.ci/) to preview the documentation that is built as part of our GitHub Actions workflow. To do so:
174+
1. Go to the "Checks" tab in the GitHub PR.
175+
2. Click on the "Docs" section on the left.
176+
3. If the "Build Sphinx Docs" action is successful, a summary section will appear under the block diagram with a link to preview the built documentation.
177+
4. Click on the link and wait for the files to be uploaded (it may take a while the first time). You may be asked to sign in to GitHub.
178+
5. Once the upload is complete, look for `docs/build/html/index.html` under the "Detected Entrypoints" section.

0 commit comments

Comments
 (0)