Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC from rendered docs? #20

Open
ericmjl opened this issue Mar 22, 2020 · 0 comments
Open

TOC from rendered docs? #20

ericmjl opened this issue Mar 22, 2020 · 0 comments

Comments

@ericmjl
Copy link

ericmjl commented Mar 22, 2020

Hi @tomchristie! I'm finding the mkdocs ecosystem of packages to be quite a joy to use, and yours is part of it too!

I've been doing just a trial-run seeing whether we can make the PyMC4 docs from sphinx rather than mkdocs, and mkautodoc has been pretty cool. It does necessitate that I rewrite docstrings in markdown, but that's not a big issue.

One question I've got for you, just to see whether this is possible or not - do you know how we can have our classes and functions that are "top-level" defined in a module show up as part of the mkdocs-generated table of contents? In particular, I'm thinking of having them show up on the right hand side (like in the screenshot I have attached below):

Screenshot from 2020-03-22 19-03-40

At the moment, in the Markdown file, I have to do something like:

# PyMC4 Continuous Distributions

## Beta Distribution

::: pymc4.distributions.continuous.Beta
    :docstring:

## Normal distribution

......

Instead, I'd like to be able to do something like:

# PyMC4 Continuous Distributions

::: pymc4.distributions.continuous
    :docstring:
    :members:

and still get the right-side TOC rendering from parsing the Markdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant