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

Guidelines for documenting usntable contributions (#49296) #49309

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

Tokazama
Copy link
Contributor

This adds review of "Writing Documentation" to contributors checklist and requires that unstable parts of an API be clearly annotated as subject to change without notice. This should allow us to more consistently require documentation of internals without the risk of committing to a particular implementation for packages.

Encourage documentation of contributions that may be unstable but
require explicit admonition.
Also add review of "Writing Documentation" to contributors checklist
@ViralBShah ViralBShah added the docs This change adds or pertains to documentation label Apr 19, 2023
@ViralBShah ViralBShah merged commit b664693 into JuliaLang:master Apr 19, 2023
@KristofferC
Copy link
Member

I think this is way too strong. And now Base is inconsistent with the style guide. This should have updated the docstrings as well so one can see what the effect is?

@Tokazama
Copy link
Contributor Author

I think this is way too strong. And now Base is inconsistent with the style guide. This should have updated the docstrings as well so one can see what the effect is?

How can we update the docstrings to follow this if there's no record of what is an unstable API?

@KristofferC
Copy link
Member

if there's no record of what is an unstable API?

The functions not in the manual are internal.

@ViralBShah
Copy link
Member

We can naturally not document every internal API. But also isn't it a good idea to document some that may have broad interest for compiler development as part of Dev docs?

@Tokazama
Copy link
Contributor Author

Tokazama commented Apr 19, 2023

I wasn't aware that everything that wasn't explicitly included in "julia/docs" was considered unstable. I'm not completely against adding this in to existing documentation but wouldn't we need to audit each case and ensure that isn't already in use somewhere since this instability isn't documented elsewhere?

@timholy
Copy link
Member

timholy commented Apr 19, 2023

If it wasn't in julia/docs, it's unstable regardless of whether people are actually using it (it's their fault for using it, not ours).

@ViralBShah
Copy link
Member

Should we revert this PR?

@timholy
Copy link
Member

timholy commented Apr 19, 2023

I'd say so, unless an improved version is forthcoming.

@Tokazama
Copy link
Contributor Author

Does the original proposal need to be changed or do we just need to add this notation to the docs that aren't in "julia/docs" docs need to be added?

@timholy
Copy link
Member

timholy commented Apr 19, 2023

I think both: if we haven't documented how we decide "internal," we should; but as @KristofferC points out, we don't currently live up to the standard espoused here, and it seems like a lot of work to maintain. So I would also lean towards reverting this.

@Tokazama
Copy link
Contributor Author

This was definitely just a first stab at getting this out there so suggestions are welcome. We definitely aren't following this currently and it creates a lot more work. The @pure macro comes to mind when it was internal but required a bunch of work to not break other packages. So the idea is a little more work up front so we don't have to worry about problems changing stuff later

@ViralBShah
Copy link
Member

I've reverted for now. Apologies for the noise. @Tokazama We can continue the discussion here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants