Skip to content

Commit

Permalink
TEST: activate doctests on doc.structured_arrays, fix for pure doc mo…
Browse files Browse the repository at this point in the history
…dule
  • Loading branch information
mattip committed Jan 14, 2019
1 parent db6f50b commit 7fea402
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/refguide_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

PUBLIC_SUBMODULES = [
'core',
'doc.structured_arrays',
'f2py',
'linalg',
'lib',
Expand Down Expand Up @@ -194,6 +195,9 @@ def get_all_dict(module):
all_dict.remove(name)
except ValueError:
pass
if not all_dict:
# Must be a pure documentation module like doc.structured_arrays
all_dict.append('__doc__')

# Modules are almost always private; real submodules need a separate
# run of refguide_check.
Expand Down Expand Up @@ -309,7 +313,7 @@ def validate_rst_syntax(text, name, dots=True):
ok_unknown_items = set([
'mod', 'currentmodule', 'autosummary', 'data',
'obj', 'versionadded', 'versionchanged', 'module', 'class',
'ref', 'func', 'toctree', 'moduleauthor',
'ref', 'func', 'toctree', 'moduleauthor', 'term', 'c:member',
'sectionauthor', 'codeauthor', 'eq', 'doi', 'DOI', 'arXiv', 'arxiv'
])

Expand Down

0 comments on commit 7fea402

Please sign in to comment.