Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upRecommended way to create own Docs for Dash apps? #696
Comments
This comment has been minimized.
This comment has been minimized.
emmanuelle
commented
Apr 22, 2019
|
Hi @KMouratidis, what would you like to document about your app? How to use it, how to deploy it, some specific components, the API of your callbacks, or all of the above? For documenting the app, the dash docs are actually a collection of dash applications themselves, you can take a look at the source code in https://github.com/plotly/dash-docs/tree/master/tutorial. If you want to document an API or write some text-only (no user interaction) narrative documentation, have you tried sphinx? |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the quick reply! I mainly want the documentation to be able to export the docstrings (which inlcude basic type information, hints for usage, and short/long summaries). The functions and classes are both callbacks and generic/non-Dash, and some module docstrings since the whole project spans multiple directories. It is not meant to be usage docs, so I'd rather not make a separate app for that. Finally, I haven't tried sphinx although if there is no suggested way I probably will; it just seemed too complex to start there (hence pdoc). |
This comment has been minimized.
This comment has been minimized.
|
I did try sphinx and it does not work either; same issue. Example traceback.
It seems the only way to resolve this is by not using
Is there a way to avoid this similar to using |
KMouratidis commentedApr 22, 2019
I am trying to create a documentation (more like reference for internal usage) for a Dash project (spanning many files,
server.pyholding theappand every other file loading the app from there). Is there a suggested way to do this?I tried using pdoc3 but when trying to use it on any file containing a callback it seems be loading the same module multiple times thus triggering an error in Dash ("output with ID X alread exists"). I've opened an issue there (pdoc3 issue) hoping that I can at least get some pointers as to how to work around it, but I figured maybe someone here had a better suggestion to make.