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

Improve API reference documentation #944

Open
3 tasks
zklaus opened this issue Jul 30, 2024 · 3 comments
Open
3 tasks

Improve API reference documentation #944

zklaus opened this issue Jul 30, 2024 · 3 comments
Labels
documentation::reference related to the API and internals (information-oriented) source::contributor created by a frequent contributor type::documentation request for improved documentation

Comments

@zklaus
Copy link

zklaus commented Jul 30, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

Why?

The current API reference documentation (entry point) offers some opportunity for improvements.

A few relatively simple steps can set us up to improve both developer and user experience.

User impact

Developers will find it easier to improve the documentation because fewer guesses on styles and associated resources will be necessary.
Users and developers will profit from an improved and improving documentation.

Goals

This epic will focus important decisions regarding documentation styles. While there likely different valid choices for any of those, making a decision and advertising it appropriately will increase homogeneity in the code base.
As such, the goals of this epic are twofold: First, take decisions on a few key aspects of documentation style; second, advertise them so that they will be taken into account in future developments.

Tasks

  1. type::documentation
  2. type::documentation
  3. type::documentation

This epic is blocked b

Nothing

This epic blocks

Nothing is directly blocked, but addressing this epic will make it easier to improve the documentation.
In particular, it will make it easier to address the fact that there is a relatively large number of warnings and some errors1 during the building of the docs, see, e.g., the latest log on readthedocs (click on the first python -m sphinx call to expand), which makes it harder to identify issues introduced by newly written documentation and also impedes the ability for incremental docs builds, resulting in an overall harder developer experience for writing docs.
This is true for several projects in the conda ecosystem, but should be tracked with per-project issues.

Footnotes

  1. Looks like most of the errors arise when conda classes don't have docstrings themselves, but are derived from other third-party classes. In that case, the docstring is taken from the parent class and often does not follow any of the supported docstring styles. This is also true for classes from the standard library.

@zklaus zklaus added type::documentation request for improved documentation documentation::reference related to the API and internals (information-oriented) labels Jul 30, 2024
@travishathaway travishathaway added the source::contributor created by a frequent contributor label Jul 30, 2024
@jezdez jezdez added the duplicate indicate issues/PRs that are duplicates of another label Jul 31, 2024
@jezdez
Copy link
Member

jezdez commented Jul 31, 2024

This is a duplicate of conda/conda#13437.

@jezdez jezdez closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2024
@jezdez jezdez reopened this Aug 5, 2024
@jezdez
Copy link
Member

jezdez commented Aug 5, 2024

Reopening since @zklaus asked for more guidance:

  • this covers a large surface area about documentation best practice, and would be better suited for the conda/conda-docs repo as such
  • the ticket Add type hints and/or reST docstrings conda#13437 does suggest to improve the rendering of the conda API docs though, so it would basically be an implementation of the suggested best practives

@zklaus I'll move this ticket into conda-docs and would love to ask you to turn it into an epic-type issue, with each of the subheadings above to be a separate task-type issue. Would that work?

@jezdez jezdez removed the duplicate indicate issues/PRs that are duplicates of another label Aug 5, 2024
@jezdez jezdez transferred this issue from conda/conda Aug 5, 2024
@zklaus
Copy link
Author

zklaus commented Aug 6, 2024

@jezdez, I have rewritten this issue in the style of an epic. I could not add the required labels. Let me know if I should do something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation::reference related to the API and internals (information-oriented) source::contributor created by a frequent contributor type::documentation request for improved documentation
Projects
Status: 🏗️ In Progress
Development

No branches or pull requests

3 participants