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

RFC: Allow doctests in Markdown code #13045

Merged
merged 5 commits into from
Sep 10, 2015
Merged

Conversation

mbauman
Copy link
Member

@mbauman mbauman commented Sep 9, 2015

Specify doctest with a ````jldoctest` code fence. I also converted the ~30 RST docstrings that were only blocked from conversion by a doctest code block.

CC @MichaelHatherly and @jakebolewski

Unfortunately this reflows the text within the generated stdlib, so the diff looks bigger than it actually is.

@mbauman mbauman added docs This change adds or pertains to documentation docsystem The documentation building system labels Sep 9, 2015
1
0
0
```jl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also still be a doctest right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't originally. I believe the final two zeros are uninitialized, so it's not a deterministic test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, nevermind

@jakebolewski
Copy link
Member

lgtm after removing the special case handling of jldoctest in the Markdown code

jakebolewski added a commit that referenced this pull request Sep 10, 2015
RFC: Allow doctests in Markdown code
@jakebolewski jakebolewski merged commit 5506355 into master Sep 10, 2015
@mbauman mbauman deleted the mb/markdown-doctests branch September 10, 2015 19:04
@@ -11666,22 +11593,18 @@ While it isn't normally necessary, user-defined types can override the default `
deepcopy

doc"""
```rst
.. widen(type | x)
widen(type | x)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting the feeling this should be 2 separate docstrings

mbauman added a commit that referenced this pull request Sep 11, 2015
(cherry picked from commit 265e0fa)
ref #13045
@tkelman
Copy link
Contributor

tkelman commented Sep 13, 2015

backported in #13072

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 docsystem The documentation building system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants