Skip to content

Commit

Permalink
STYLE: Make documentation module consistent with Sphinx conventions
Browse files Browse the repository at this point in the history
Make the documentation module consistent with Sphinx conventions:
- Rename the module to `docs`.
- Host the configuration file and index file in `docs/sources`. Chang
  the makefile `SOURCEDIR` variable accordingly.
  • Loading branch information
jhlegarreta committed Oct 22, 2023
1 parent 6bd4a22 commit 96a67dc
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/Makefile → docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = doc
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/conf.py → docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Load the release info into a dict by explicit execution
info = {}
with open(os.path.abspath(os.path.join(
os.path.dirname(__file__), "..", "setup.py")), "r") as f:
os.path.dirname(__file__), "../..", "setup.py")), "r") as f:
for line in f:
if line.startswith(name_setup_str):
project = (
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
version='0.3.0',
author='Fan Zhang and Lauren O\'Donnell',
author_email='[email protected]',
packages=find_packages(exclude=["doc"]),
packages=find_packages(exclude=["docs"]),
license='LICENSE.txt',
description='Processing of whole-brain streamline tractography.',
long_description=open('README.md').read(),
Expand Down

0 comments on commit 96a67dc

Please sign in to comment.