| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* DOC: replace enumerated list with headings.
Creates anchor links for individual docstring sections.
* Add internal links to newly anchored section headings.
|
|
|
|
|
|
|
|
|
|
|
| |
This seem to be what most docstring involving args/kwargs are doing
including the example.py; Though I've seen other project be less
consistant, so make the suggestion explicit instead of letting users
infer from the example.
Other convention I've seen are:
- `*xi` , documented as `x1,x2, ..., xn : type`
- just the name without the leading `*`/`**`.
- prefixing `*` with `\\*`.
|
|\
| |
| | |
MAINT: Update Circle and conf.py
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
| |
* Update CI config.
* Rm travis badge from readme.
* Fix link to GH.
* Rm master_doc - default is index anyways.
* Add back master_doc w/ note.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rm scipy-sphinx-theme submodule.
* Add pydata-sphinx-theme to doc reqs.
* Modify conf to use pydata theme.
* Add github badge via theme.
* Update CI.
* bump CI sphinx version 1.6.5 -> 1.8 for tests
* Experimental: swap sidebars in theme.
* Add :notoc: to index to suppress right sidebar.
* FIX: No sidebar
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
|
|
|
|
| |
Adds a section to the documentation on validation describing
how numpydoc can be configured to run docstring validation during
the sphinx-build process.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WIP: Move get_doc_obj to docscrape
* WIP: mv _obj property to NumpyDocString
* Proof-of-concept: Docstring attrs covered by refactor.
Running the test suite on this patch demonstrates that refactoring
the boundary between NumpyDocString and SphinxDocString provides the
necessary info to (potentially) do away with the validate.Docstring
class.
* NOTE TO SELF: get_doc_object in docscrape_sphinx
* Docstring -> Validator.
* Activate validation during sphinx-build.
Add a conf option to turn on/off.
TODO: test
* Replace logger.warn with warning.
logger.warn is apparently deprecated
* DOC: Add numpydoc_validate to conf docs.
* Add mechanism for validation check selection.
Adds a config option with a set to allow users to select
which validation checks are used. Default is an empty set,
which means none of the validation checks raise warnings
during the build process.
Add documentation for new option and activate in the doc build.
* TST: modify how MockApp sets builder app.
* TST: Add test of validation warnings.
* Specify some sensible validation defaults.
* Add docstring name to validation warnings.
* Add all keyword to validation_check configuration.
More flexibility in configuring which validation checks to run during
sphinx build. If 'all' is present, treat the rest of the set as a
blocklist, else an allowlist.
* Fix failing test.
* Make validation error mapping easier to read.
* Add check for invalid error codes in configuration.
plus test.
* Add feature to exclude patterns from docstring validation.
Modify updated config name to avoid sphinx warning.
Add documentation for exclusion config value.
* Be explicit about regex syntax for exclude config val
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
* Rm redundant numpydoc_validate config param.
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* fix format: add linebreak
* consistent indent
* add deprecation version arg to numpydoc_edit_link
* add blank line after directive
|
| |
|
|\
| |
| | |
BUG: fix an incomplete check in `Reader._error_location`
|
|/
|
|
|
|
|
| |
It's unclear why `self._obj` can be None, but that's what I'm
seeing when trying numpydoc master to build SciPy master.
This fix gives the right traceback.
|
|\
| |
| | |
ENH: Add configuration option for parameter cross-referencing
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Add a kwarg to make_xref to toggle the automatic wrapping of every term
not in xref_ignore in an :obj: role.
|
|\ \
| | |
| | | |
MAINT: remove unreachable codepath.
|
| | |
| | |
| | |
| | | |
Removes conditional after a return statement.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Setup test workflow with github actions
* Add sphinx version to matrix.
* Add doc building to test workflow.
* Add codecov step to test workflow.
* Remove travis config.
* WIP: try without action.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* More informative error message for see also parse error.
* Improve _error_location method output.
* TST: Update test suite.
* CI: Update sphinx==1.6.5 job from Python 3.5 to 3.6
|
|\ \ \
| | | |
| | | | |
Add a note to the docstring standard about long 'See Also' entries.
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* MAINT: rm unnecessary elses in _str methods
* rm unused indent method from NDS
* rm unused header method from NDS
|
| | |
| | |
| | |
| | | |
Update pytest config to ignore entire doc/ directory. This prevents
an import name collision in doc/scipy-sphinx-theme/conf.py.
|
|\ \ \
| |_|/
|/| | |
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Fix param parsing.
Closes #285
This fixes two tings:
- When first sentence of the docstring is onteh first line, Parameters
is not properly parse, which for example mis parsed numpy.array
docstring.
- many project have paremeters description list with ` :` afer the
name, even if no type is present. If there is no space after the `:`
the parameter name includes the ` :` which is most likely wrong.
* test fixture
* make doc a fixture
* Update numpydoc/tests/test_docscrape.py
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
* Update numpydoc/tests/test_docscrape.py
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* TST: use default links in xref test.
Switch to numpydoc's default link mapping for test_xref instead of
the custom (less comprehensive) link mapping.
* DOC: rm statements about xref_alias dict.
Default aliases are not an empty dict, nor are they dependent
on intersphinx.
* DOC: Update make_xref docstring.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
in a case like:
"""signature
See Also
--------
a,b,c,d
""""
Numpydoc would incorrectly assign `a, b, c, d` as a description with no
name, or type associated items.
Closes #281
|
| |
| |
| |
| | |
if ' : ' is present twice in the line this drops any test after the second
' : ', which happens in some docstring that have the `default : stuff` idiom
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* ENH: Better warning for sections.
1) if the number of -/= is too short/ too long warn, Especially too
short it won't be detected as a section.
2) for duplicate section print the docstring to figure out where the
problem is.
* add warn test
|
| |
| |
| |
| |
| | |
Spyder sometime uses the full :py:meth: role, this make sure it is
properly handled.
|
| | |
|
|/ |
|
|
|
|
|
| |
Each pair of input/output in data is treated as an individual test,
aiding in detection of specific failures.
|
| |
|
|
|
|
|
|
|
|
| |
A comment pertaining to docutils_namespace() had been separated
from the code that it was referring to.
Moved comment back to appropriate location and added a separate
comment to unrelated code to differentiate the two.
|
|
|
|
|
|
| |
Refactors test_full.test_reference using the parametrization
facilities of pytest. In principle, improves readibility and
makes it easier to extend the test.
|
|
|
|
|
| |
Description appears to have been ported directly over from
sphinx-gallery example. Updated to match current test function.
|