Skip to content
Discussion options

You must be logged in to vote

To answer this question for my future self (and maybe others):
In an *.md file add:

.. automodule:: test_docstring
    :members: 
assuming you write docstrings in this format:

def testing(joop):
    """mooie func
    Args:
        joop ([type]): [description]
    Returns:
        [type]: [description]

to extend the sys.path so that module can be loaded
create a file : dummy_extension.py in the folder of the module

def setup(bs):
	    pass

add to _config.yml:

sphinx:
	  config:
		# fake an extension to get folder added to sys.path
		  local_extensions:
		    dummy_extension: /<path to module folder>

and don't forget to update to version 0.11.1

jupyter-book --version:

Jupyter Book : 0.11.1

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@JoopBanaan
Comment options

@chrisjsewell
Comment options

@JoopBanaan
Comment options

Comment options

You must be logged in to vote
1 reply
@cal-and-bist
Comment options

Answer selected by JoopBanaan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants