Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Required for setuptools-scm to get version from tags

- name: Set up Python
uses: actions/setup-python@v6
Expand Down
19 changes: 11 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os
import os
import sys
from datetime import datetime

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -61,16 +63,17 @@

# General information about the project.
project = u'pycortex'
copyright = u'2012, James Gao'
copyright = u'2012\u2013%d, Gallant Lab' % datetime.now().year

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
import cortex # noqa
# The short X.Y version.
version = ".".join(cortex.__version__.split(".")[:2])
# The full version, including alpha/beta/rc tags.
release = cortex.version.__hardcoded_version__
# Relies on setuptools-scm generating cortex/_version.py at install time.
release = cortex.__version__
# The short X.Y version.
version = ".".join(release.split(".")[:2])

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -280,9 +283,9 @@

# Bibliographic Dublin Core info.
epub_title = u'pycortex'
epub_author = u'James Gao'
epub_publisher = u'James Gao'
epub_copyright = u'2012, James Gao'
epub_author = u'Gallant Lab'
epub_publisher = u'Gallant Lab'
epub_copyright = u'2012\u2013%d, Gallant Lab' % datetime.now().year

# The language of the text. It defaults to the language option
# or en if the language is not set.
Expand Down