-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lochhh/update-docs
Update docs
- Loading branch information
Showing
80 changed files
with
403 additions
and
33,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Docs | ||
|
||
# Generate the documentation on all merges to main, all pull requests, or by | ||
# manual workflow dispatch. The build job can be used as a CI check that the | ||
# docs still build successfully. The deploy job only runs when a tag is | ||
# pushed and actually moves the generated html to the gh-pages branch | ||
# (which triggers a GitHub pages deployment). | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_sphinx_docs: | ||
name: Build Sphinx Docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: false # Disable automatic checkout of all submodules | ||
|
||
- name: Checkout public submodules # Skip aeon_experiments | ||
run: | | ||
git submodule sync | ||
git submodule update --init aeon_acquisition | ||
git submodule update --init aeon_analysis | ||
git submodule update --init aeon_blog | ||
git submodule update --init aeon_mecha | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Upgrade pip | ||
shell: bash | ||
run: | | ||
# install pip=>20.1 to use "pip cache dir" | ||
python3 -m pip install --upgrade pip | ||
- name: Get pip cache dir | ||
shell: bash | ||
id: pip-cache | ||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dependencies | ||
shell: bash | ||
run: python3 -m pip install -r ./requirements.txt | ||
|
||
# temporarily disabled until we fix broken links | ||
# - name: Check links | ||
# shell: bash | ||
# run: make linkcheck | ||
|
||
# needs to have sphinx.ext.githubpages in conf.py extensions list | ||
- name: Building documentation | ||
shell: bash | ||
run: make html | ||
|
||
- name: Upload the content for deployment | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docs | ||
path: ./docs/ | ||
|
||
deploy_sphinx_docs: | ||
name: Deploy Sphinx Docs | ||
needs: build_sphinx_docs | ||
permissions: | ||
contents: write | ||
if: github.event_name == 'push' && github.ref_type == 'tag' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Clear previous build if present | ||
shell: bash | ||
run: rm -rf ./docs/ | ||
|
||
- name: Download the content for deployment | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: docs | ||
path: ./docs/ | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx documentation | ||
docs/ | ||
src/api/ | ||
src/api.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
[submodule "aeon_mecha"] | ||
path = aeon_mecha | ||
url = https://github.com/SainsburyWellcomeCentre/aeon_mecha | ||
branch = main | ||
[submodule "aeon_analysis"] | ||
path = aeon_analysis | ||
url = https://github.com/SainsburyWellcomeCentre/aeon_analysis | ||
branch = main | ||
[submodule "aeon_blog"] | ||
path = aeon_blog | ||
url = https://github.com/SainsburyWellcomeCentre/aeon_blog | ||
branch = main | ||
[submodule "aeon_experiments"] | ||
path = aeon_experiments | ||
url = https://github.com/SainsburyWellcomeCentre/aeon_experiments | ||
branch = main | ||
[submodule "aeon_acquisition"] | ||
path = aeon_acquisition | ||
url = https://github.com/SainsburyWellcomeCentre/aeon_acquisition | ||
branch = main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aeon_acquisition
updated
179 files
Submodule aeon_analysis
updated
from e9abb1 to e3cfce
Submodule aeon_blog
updated
5 files
+8 −0 | CITATION.cff | |
+1 −0 | data_contract.md | |
+0 −43 | member_info.tsv | |
+69 −107 | readme.md | |
+27 −30 | style_and_doc_guidelines.md |
Submodule aeon_experiments
updated
40 files
Submodule aeon_mecha
updated
142 files
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.