Shall we use Sphinx to generate GPlately doc? #322
Replies: 3 comments
-
There's some more discussion on whether to convert pdoc to sphinx in #213 If we do go with Sphinx we can still use numpydoc for the docstrings, like we currently are, so that's good. I do admit that getting cross-references to work in pdoc (in the docstrings) was a little unsure. Pdoc uses backticks to reference other methods/attributes (which is nice and simple though). I guess not much difference there, eg, pdoc would be
After the 2.0 release sounds good. I think the main difference would be outside of docstrings actually. I don't have any experience with pdoc there, but Sphinx is pretty good (once you learn the basics). So we should probably decide before we start writing any significant documentation outside of the API/docstrings. |
Beta Was this translation helpful? Give feedback.
-
A comment about the current "Quick start" documentation. Its content currently does not comply very much with what a common understanding and purpose of a "quick start" doc is. A well-structured "Quick Start" guide for a Python library should be concise, clear, and provide an easy entry point for new users. It should focus on installation, basic usage, and a minimal working example to help users get up and running quickly. Best Practices for a Quick Start Guide: This is what a quick start guide for GPlately should perhaps look like: Quick Start Guide for gplatelygplately is a Python library that facilitates plate tectonic reconstructions and integrates with pygplates. This guide helps you get started quickly. Installation
bash bash bash For example, on Linux: bash python Load a model (default model provided) Define a point (Longitude, Latitude) Reconstruct the point to 100 Ma print(f"Reconstructed coordinates at 100 Ma: {reconstructed_point}")
print(reconstructed_points) Error: pip install fails due to pygplates Error: ImportError: gplately not found bash Conclusion: |
Beta Was this translation helpful? Give feedback.
-
Thanks @dietmarmuller We have another Discussions thread discussing the "Quick start" section. I will link your comment in that thread. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@GPlates/gplately-dev
I remember I brought this up before. But I forgot the decision we made. I am preparing the 2.0 release and have seen pygplates, PyBacktrack and plate-model-manager all using Sphinx. I start wondering it again mainly because all the Python packages belong to the GPlates software family. Maybe their doc should be in the same style.
If anything will happen, it will happen after the 2.0 release. We have plenty time to discuss.
"Built with Sphinx using a theme provided by Read the Docs."
https://www.gplates.org/docs/pygplates/
https://pybacktrack.readthedocs.io/en/stable/index.html
https://michaelchin.github.io/plate-model-manager/v1.2.0/
Beta Was this translation helpful? Give feedback.
All reactions