|
1 | 1 | import sys |
2 | 2 | import os |
3 | 3 |
|
4 | | -# import matplotlib |
5 | | -from unittest import mock |
| 4 | +from adjustText import __version__ |
6 | 5 |
|
7 | 6 | sys.path.insert(0, os.path.abspath("../..")) |
8 | 7 | # matplotlib.use("Agg") |
|
24 | 23 | # import sys |
25 | 24 | # sys.path.insert(0, os.path.abspath('.')) |
26 | 25 |
|
27 | | - |
28 | 26 | # -- Project information ----------------------------------------------------- |
29 | 27 |
|
30 | 28 | project = "adjustText" |
31 | 29 | copyright = "2018, Ilya Flyamer" |
32 | 30 | author = "Ilya Flyamer" |
33 | 31 |
|
34 | 32 | # The short X.Y version |
35 | | -version = "1.0beta" |
| 33 | +version = "1.3.0" |
36 | 34 | # The full version, including alpha/beta/rc tags |
37 | 35 | # def get_version(path): |
38 | 36 | # with open(path, "r") as f: |
|
43 | 41 |
|
44 | 42 | # release = get_version("../_version.py") |
45 | 43 |
|
| 44 | +release = __version__ |
| 45 | + |
46 | 46 | # -- General configuration --------------------------------------------------- |
47 | 47 |
|
48 | 48 | # If your documentation needs a minimal Sphinx version, state it here. |
|
56 | 56 | "sphinx.ext.autodoc", |
57 | 57 | "sphinx.ext.viewcode", |
58 | 58 | "sphinx.ext.githubpages", |
| 59 | + "sphinx.ext.intersphinx", |
59 | 60 | "nbsphinx", |
60 | 61 | "sphinx.ext.mathjax", |
61 | 62 | "sphinx.ext.napoleon", |
62 | 63 | ] |
63 | 64 |
|
64 | | - |
65 | | -MOCK_MODULES = [ |
66 | | - "bioframe", |
67 | | - "numpy", |
68 | | - "scipy", |
69 | | - "scipy.spatial", |
70 | | - "scipy.spatial.distance", |
71 | | - "matplotlib", |
72 | | - "matplotlib.pyplot", |
73 | | - "matplotlib.patches", |
74 | | - "matplotlib.patches.FancyArrowPatch", |
75 | | - "matplotlib.path", |
76 | | - "matplotlib.path.get_path_collection_extents", |
77 | | -] |
78 | | - |
79 | | -for mod_name in MOCK_MODULES: |
80 | | - sys.modules[mod_name] = mock.Mock() |
81 | | - |
82 | | -autodoc_mock_imports = MOCK_MODULES |
| 65 | +intersphinx_mapping = { |
| 66 | + 'python': ('https://docs.python.org/3/', None), |
| 67 | + 'matplotlib': ('https://matplotlib.org/', None), |
| 68 | + 'scipy': ('https://docs.scipy.org/doc/scipy/', None), |
| 69 | + 'numpy': ('https://numpy.org/doc/stable/', None), |
| 70 | + 'bioframe': ('https://bioframe.readthedocs.io/en/stable/', None), |
| 71 | +} |
83 | 72 |
|
84 | 73 | # Add any paths that contain templates here, relative to this directory. |
85 | 74 | templates_path = ["_templates"] |
|
98 | 87 | # |
99 | 88 | # This is also used if you do content translation via gettext catalogs. |
100 | 89 | # Usually you set "language" from the command line for these cases. |
101 | | -language = None |
| 90 | +language = "en" |
102 | 91 |
|
103 | 92 | # List of patterns, relative to source directory, that match files and |
104 | 93 | # directories to ignore when looking for source files. |
|
0 commit comments