-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Move RST 'data' docstrings inline #17417
Move RST 'data' docstrings inline #17417
Conversation
@@ -3,7 +3,7 @@ module GenStdLib | |||
import Base.Docs: Binding, DocStr | |||
|
|||
# Constants. | |||
const DOCSTRING_DIRECTIVE = r"^(.. (function|type|variable):: ).*" | |||
const DOCSTRING_DIRECTIVE = r"^(.. (function|type|variable|data):: ).*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaelHatherly I originally introduced the variable
directive for the purpose of keeping docstrings in sync with the manual. We can definitely have the data
directive sync with docstrings but then we should probably remove the variable
directive then.
Ref #16328
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in c539a66.
does this close #16303 all the way? |
to an `Int64`. | ||
""" | ||
Period(v) | ||
|
||
# Instant types represent different monotonically increasing timelines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these comments are redundant now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, they say pretty much the same thing now. Will remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6535f71.
LGTM! |
This moves all `.. data::` docstrings found in the RST docs into `base/` source files, so all docstrings found in the docs are now actual docstrings. This will help with the markdown manual conversion. Minor formatting changes include addition of some fullstops in several docstrings, and reformatting of the `StackTrace` docstring.
This moves the docs for `build_sysimg` inline in `contrib/build_sysimg.jl`. Adds an additional condition to the `build_sysimg.jl` file so that we can safely include the file in `genstdlib.jl` without a system image being built unintentionally.
Replace with `.. data::` instead since they are both used for the same kind of docstrings.
9e0a4d2
to
c539a66
Compare
Thanks for reviewing, I'll merge once CI is green then. |
actually I think threadcall is still undocumented |
This moves all
.. data::
docstrings found in the RST docs intobase/
source files, so all docstrings found in the docs are now actual docstrings. This will help with the markdown manual conversion.Minor formatting changes include addition of some fullstops in several docstrings, and reformatting of the
StackTrace
docstring.The only troublesome docstring is"Fixed" now: in 32185da I'vebuild_sysimg
found in/devdocs/sysimg.rst
, which doesn't actually exist as far as I can see. Not quite sure what to do about that one.include
d thecontrib/build_sysimg.jl
file indoc/genstdlib.jl
so that it's docstring can live in the appropriate place. Note thatbuild_sysimg
won't get called since I've made it's execution conditional onGenStdLib
not being defined. If anyone has a more straightforward solution that would be great.