Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
51 changes: 12 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,53 +160,26 @@ jobs:
path: ~/tests

build_docs:
machine:
# https://discuss.circleci.com/t/linux-machine-executor-images-2021-april-q2-update/39928
# upgrade Docker version
image: default
environment:
- FSLOUTPUTTYPE: NIFTI
- SUBJECTS_DIR: /tmp/subjects
executor:
name: python/default
tag: '3.13'
steps:
- checkout
- restore_cache:
keys:
- env-v7-{{ .Branch }}
- env-v7-master
- env-v7-
- run:
name: Install base packages
command: |
export PATH="$HOME/.conda/bin:$PATH"
if ! [ -x "$(command -v curl)" ]; then
sudo apt-get update
sudo apt-get install -y --no-install-recommends curl
fi

if ! [ -x "$(command -v conda)" ]; then
curl -sSLO https://repo.anaconda.com/miniconda/Miniconda3-py39_4.11.0-Linux-x86_64.sh
bash Miniconda3-py39_4.11.0-Linux-x86_64.sh -b -p $HOME/.conda
fi
$HOME/.conda/bin/conda env update -f docs/environment.yml --prune

- save_cache:
key: env-v7-{{ .Branch }}
paths:
- ~/.conda

- run:
name: Check out git submodules
command: git submodule update --init
- run:
name: Create subjects folder
command: mkdir -p $SUBJECTS_DIR
name: Install pandoc (nbsphinx converts the notebooks with it)
command: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends pandoc
pandoc --version | head -n 1
- run:
name: Install the package and the documentation tools
command: python -m pip install -e '.[doc]'
- run:
name: Build only this commit
command: |
export PATH="$HOME/.conda/bin:$PATH"
python -m pip install -U build hatch hatchling
python -m hatch version
make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/html" CURBRANCH="${CIRCLE_TAG}" html
command: make -C docs SPHINXOPTS="-W" BUILDDIR="$HOME/html" CURBRANCH="${CIRCLE_TAG}" html
- store_artifacts:
path: ~/html

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
211 changes: 0 additions & 211 deletions docs/environment.yml

This file was deleted.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ datalad = [
"datalad >= 1.0.0"
]
doc = [
"ipython",
"nbsphinx",
"packaging",
"pydot>=1.2.3",
"pydotplus",
"sphinx-click",
"sphinx ~= 4.0",
"sphinx",
"sphinx_rtd_theme >= 0.4.3",
"sphinxcontrib-apidoc",
"sphinx_multiversion",
Expand Down
Loading