Skip to content

Commit

Permalink
docs(bff): add cast_to_category_pd into the doc
Browse files Browse the repository at this point in the history
Correction of docstring for the `idict` function to have a better
display in the documentation.
  • Loading branch information
Axel Fahy committed Aug 19, 2019
1 parent 66b0e94 commit faaa7ea
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 3 additions & 1 deletion bff/fancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ def get_peaks(s: pd.Series, distance_scale: float = 0.04):

def idict(d: Dict[Any, Hashable]) -> Dict[Hashable, Any]:
"""
Invert a dictionary meaning that keys will be become values and values will become keys.
Invert a dictionary.
Keys will be become values and values will become keys.
Parameters
----------
Expand Down
8 changes: 0 additions & 8 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# Documentation

## Generation of files for functions

Run from source folder of doc:

```sh
sphinx-autogen -o generated *.rst
```

## Generate the documentation

```sh
Expand Down
12 changes: 7 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
#import os
#import sys
#sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------
Expand All @@ -40,11 +40,13 @@
extensions = [
'recommonmark',
'sphinx.ext.autodoc',
'sphinx_autodoc_typehints',
'sphinx.ext.napoleon', # Needed to separate type from variable name in docstrings.
'sphinx.ext.napoleon', # Needed to separate type from variable name in docstrings.
'sphinx_autodoc_typehints', # Need to be imported after `sphinx.ext.napoleon`.
'numpydoc',
]

autosummary_generate = True # Make _autosummary files and include them.

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
1 change: 1 addition & 0 deletions doc/source/fancy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All of bff's functions.
:nosignatures:
:toctree: generated/

bff.cast_to_category_pd
bff.concat_with_categories
bff.get_peaks
bff.idict
Expand Down

0 comments on commit faaa7ea

Please sign in to comment.