Skip to content

Commit 4fc2722

Browse files
committed
fix conf.py
1 parent dbfe1e0 commit 4fc2722

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

docs/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Minimal makefile for Sphinx documentation
22
#
3-
SUBDIRS = source/man
43

54
# You can set these variables from the command line.
65
SPHINXOPTS += -W
@@ -17,6 +16,4 @@ help:
1716
# Catch-all target: route all unknown targets to Sphinx using the new
1817
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1918
%: Makefile
20-
@for dir in source/man source/*-man; do $(MAKE) -C $$dir; done
21-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2219
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
'sphinx.ext.napoleon',
3737
]
3838

39+
# Autodoc configuration
40+
autodoc_mock_imports = ['Levenshtein', 'tensorflow', 'torch', 'torchvision', 'torchdata', 'torchtext']
41+
autodoc_default_options = {
42+
'members': True,
43+
'undoc-members': True,
44+
'show-inheritance': True,
45+
}
46+
3947
# Add any paths that contain templates here, relative to this directory.
4048
templates_path = ['_templates']
4149

@@ -57,7 +65,7 @@
5765
# The theme to use for HTML and HTML Help pages. See the documentation for
5866
# a list of builtin themes.
5967
#
60-
html_theme = 'sphinx_rtd_theme'
68+
html_theme = 'furo'
6169

6270
# Add any paths that contain custom static files (such as style sheets) here,
6371
# relative to this directory. They are copied after the builtin static files,

0 commit comments

Comments
 (0)