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
12 changes: 6 additions & 6 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Build in confined environment and interpolate version
python-version: '3.13'
- name: Install tfmanager and Sphinx
run: |
python -m pip install -U pip "setuptools >= 42.0" "setuptools_scm[toml] >= 8"
python setup.py --version
python -m pip install -r docs/requirements.txt
make -C docs/ html
python -m pip install -U pip
python -m pip install ".[content]" -r docs/requirements.txt
- name: Build (warnings are errors)
run: make -C docs/ html SPHINXOPTS="-W --keep-going"
13 changes: 11 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Unreleased
==========
26.0.0rc5 (December 5, 2026)
============================
The tools of the migration to TemplateFlow 2.0: ``tfmgr migrate`` plans and applies it,
template by template, and ``tfmgr generate`` writes the generated files.

* Python 3.13 or newer, following `SPEC 0 <https://scientific-python.org/specs/spec-0000/>`__
(tested on 3.13 to 3.15).
* New command ``tfmgr generate atlases|cohorts|templates|dataset|all [--check] [PATH]``
Expand Down Expand Up @@ -117,6 +120,12 @@ Unreleased
from a git commit without checking it out, ``collect_archive`` gathers what the
Archive's files and checks need from its templates, and ``renames_problems`` checks a
root renames table from its text. The checks report the same issues as before.
* New documentation page, *Migration to TemplateFlow 2.0*: what changes for the users of
the Archive, how a template is migrated, the config, and every rename rule, content
transform and finding of a plan, with examples from the Archive. A test keeps the page
and the code in step.
* The documentation builds on Python 3.13 with tfmanager installed, and fails on
warnings; ``docs/requirements.txt`` and the ``doc`` extra list only what the build uses.

26.0.0rc4 (December 3, 2026)
============================
Expand Down
34 changes: 20 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import builtins

from packaging.version import Version
from sphinx.addnodes import pending_xref

from tfmanager import __version__, __copyright__, __packagename__

Expand Down Expand Up @@ -40,19 +43,6 @@
"sphinx.ext.napoleon",
]

autodoc_mock_imports = [
"matplotlib",
"nilearn",
"nipy",
"nitime",
"numpy",
"pandas",
"seaborn",
"skimage",
"svgutils",
"transforms3d",
]

# Accept custom section names to be parsed for numpy-style docstrings
# of parameters (supported by Sphinx's built-in napoleon).
napoleon_use_param = False
Expand All @@ -78,7 +68,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 Expand Up @@ -218,3 +208,19 @@

# -- Options for versioning extension ----------------------------------------
scv_show_banner = True


# -- Builtin types in annotations --------------------------------------------
def _builtin_types(app, doctree):
"""Link builtins named by annotations (``set[str]``) to Python, not to API attributes.

Sphinx looks up types in signatures by suffix, so ``set`` would also match the
``set`` attributes of ``tfmanager.migrate.config`` (an ambiguous reference).
"""
for node in doctree.findall(pending_xref):
if node.get("refdomain") == "py" and hasattr(builtins, node.get("reftarget", "")):
node.attributes.pop("refspecific", None)


def setup(app):
app.connect("doctree-read", _builtin_types)
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Contents
:maxdepth: 3

usage
migration
api

What's new
Expand Down
Loading