NOAA-OWP / hydrotools

Suite of tools for retrieving USGS NWIS observations and evaluating National Water Model (NWM) data.
Other
53 stars 12 forks source link

Consider a different documentation generation engine #181

Closed aaraney closed 1 year ago

aaraney commented 2 years ago

Sphinx is okay and is fully featured, however, I am not fond of to the rst format nor the way sphinx generates documentation. I would like a solution that is closer to the tool-chain that we and many other data science minded individuals use (e.g. markdown).

The solution choice should (IMO) be driven by approachability. Meaning:

jarq6c commented 2 years ago

Apparently sphinx can use Markdown: https://docs.readthedocs.io/en/stable/intro/getting-started-with-sphinx.html#using-markdown-with-sphinx

jarq6c commented 1 year ago

I'd like to submit pdoc for consideration: https://pypi.org/project/pdoc/

I generated the attached documentation for hydrotools.metrics by adding __docformat__ = "numpy" to the top of hydrotools.metrics.metrics.py and running pdoc hydrotools.metrics -o htmldocs from the command line.

ht_metrics_docs_example.tar.gz

jarq6c commented 1 year ago

Note pdoc supports embedding Markdown directly in docstrings (the default) and equation rendering.

jarq6c commented 1 year ago

Here's an updated example with rendered math (pdoc hydrotools.metrics -o htmldocs --math). This required no changes to the module itself.

ht_metrics_math.tar.gz

aaraney commented 1 year ago

Given that this has gone stale and I have no plans to look into this in the near future, im going to close this.