Skip to content

Commit 88a76e5

Browse files
committed
ci: fix docs
1 parent 8dfe232 commit 88a76e5

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

docs/conf.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,17 @@
2121
# import sys
2222
# sys.path.insert(0, os.path.abspath('.'))
2323

24-
from unittest import mock
2524
import os.path as op
2625
import sys
27-
# include parent directory
28-
pdir = op.dirname(op.dirname(op.abspath(__file__)))
29-
sys.path.insert(0, pdir)
30-
# include extenstions
31-
sys.path.append(op.abspath('extensions'))
3226

33-
# Mock all dependencies
34-
install_requires = ["lmfit", "numpy", "matplotlib", "pyyaml", "scipy",
35-
"sympy", "simplejson", "wxPython"]
27+
import pycorrfit
3628

37-
for mod_name in install_requires:
38-
sys.modules[mod_name] = mock.Mock()
29+
# include extensions
30+
sys.path.append(op.abspath('extensions'))
3931

4032
# http://www.sphinx-doc.org/en/stable/ext/autodoc.html#confval-autodoc_member_order
4133
# Order class attributes and functions in separate blocks
4234
autodoc_member_order = 'bysource'
43-
autodoc_mock_imports = install_requires
4435

4536
# Display link to GitHub repo instead of doc on rtfd
4637
rst_prolog = """
@@ -92,14 +83,13 @@
9283
#
9384
# The full version, including alpha/beta/rc tags.
9485
# This gets 'version'
95-
from pycorfit import __version__ as version
96-
release = version #@UndefinedVariable
86+
release = pycorrfit.__version__
9787
# The language for content autogenerated by Sphinx. Refer to documentation
9888
# for a list of supported languages.
9989
#
10090
# This is also used if you do content translation via gettext catalogs.
10191
# Usually you set "language" from the command line for these cases.
102-
language = None
92+
language = "en"
10393

10494
# List of patterns, relative to source directory, that match files and
10595
# directories to ignore when looking for source files.

docs/sec_contribute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Please fork PyCorrFit and create a pull request (PR) introducing your changes.
107107
interface code.
108108
- New code should follow the
109109
`style guide for Python <https://www.python.org/dev/peps/pep-0008/>`_.
110-
Please use `flake8 --exclude _version.py .http://flake8.pycqa.org/en/latest/index.html#quickstart>`_
110+
Please use ``flake8 --exclude _version.py .`` (http://flake8.pycqa.org/en/latest/index.html#quickstart)
111111
to check the files you changed or created.
112112
- New code should be documented well.
113113
- Make sure to update the `changelog <https://github.com/FCS-analysis/PyCorrFit/blob/develop/CHANGELOG>`_.

0 commit comments

Comments
 (0)