Skip to content

Commit

Permalink
fix(docs): revise settings of sphinxcontrib-versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Dec 12, 2019
1 parent 3a79c62 commit eeae4e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
#
import os
import sys
import re
from packaging.version import Version

from dmriprep import __version__, __copyright__, __packagename__

sys.path.append(os.path.abspath('sphinxext'))
sys.path.append(os.path.abspath(os.path.join(
os.path.dirname(__file__), 'sphinxext')))
from github_link import make_linkcode_resolve

# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -227,3 +229,11 @@

# -- Options for versioning extension ----------------------------------------
scv_show_banner = True
scv_whitelist_branches = ('master', re.compile(r'^docs\/.*$'), 'test_docs')
scv_whitelist_tags = (
re.compile(r'^\d{2,}\..*$'),
re.compile(r'^[1-9]\..*$'),
re.compile(r'^0\.\d{2,}\..*$'),
re.compile(r'^0\.[2-9]\..*$'),
)

0 comments on commit eeae4e8

Please sign in to comment.