-
Notifications
You must be signed in to change notification settings - Fork 414
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
Documenter #640
Documenter #640
Conversation
NOTE: The builds are failing on nightly because of the FFTW change, as has been noted elsewhere. |
|
||
The [Multivariate normal distribution](http://en.wikipedia.org/wiki/Multivariate_normal_distribution) | ||
is a multidimensional generalization of the *normal distribution*. The probability density function of | ||
a d-dimensional multivariate normal distribution with mean vector ``\\boldsymbol{\\mu}`` and |
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.
For whatever reason, the mu and sigma don't seem to be getting rendered properly when I build the docs locally; they show up as mu and Sigma.
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.
Hmmm, I'm not seeing that here, but looks like I did forget a couple extra backslashes on MvNormalCanon
.
Some parts of the documentation are a little weird, I'm realizing, but that's unrelated to switching things over to Documenter and generally to the changes here. Improving the documentation is something else entirely. Thanks again for taking this on. I admit I didn't look at this too closely but I built the docs locally and they look good. I am seeing some warnings when I build locally though:
I guess some broken links? |
Looks like I missed the broken links in the existing docstrings cause I was running an outdated version of documenter (0.10.0 vs 0.11.1). |
I'll probably open a separate issue for improving the documentation once we finish making the switch to documenter. I don't have strong views on how the documentation should be organized or written, but I did notice some undocumented functionality that I'd like to fix in a separate PR. |
Thanks so much for all your hard work here! |
Looks like for things to work on 0.7, you'll need to fix the invalid escape sequences in the docstrings. That is, all of the single LaTeX backslashes will need to be escaped. Looks like you've gotten a lot of them, but a few still lurk. Also we'll need to use Documenter inline math ( |
|
||
It is the distribution of the sum of squares of `ν` independent [`Normal`](:func:`Normal`) variates with individual means ``\mu_i`` and | ||
It is the distribution of the sum of squares of `ν` independent [`Normal`](@ref) variates with individual means ``\mu_i`` and |
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.
The \mu
here needs to be \\mu
Looks like there are still a couple more invalid escape sequences, e.g. in VonMises Edit: Pushed a commit to fix the ones I found |
Awesome, all of the escape failures seem to be fixed, so now the nightly failure is due to FFT stuff, which should be fixed in #641. |
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.
Should be squashed on merge
Awesome, thanks @ararslan! |
Thank you! This is no small task and your efforts here are much appreciated. |
Sorry for all the closing and opening. Travis uses the merge commit so closing and reopening is like rebasing Travis for a new run but much, much lazier. |
Looks like there are still precision issues with PoissonBinomial on nightly which I guess weren't completely fixed with #642? |
Yeah, will be fixed by #643. |
Even if the tests pass this time around we shouldn't merge this yet. I'll need to modify the docstring that was edited in #644 so that the equations are displayed in Documenter correctly. |
Right, I just wanted to make sure the tests pass. |
Sorry for the side-effect, @rofinn . By the way, does the statement from the julia docs (still) hold that unicode greek letters are in general preferred over latex greek command in docstrings?
|
@mschauer No problem, just wanted to make sure this didn't get merged prematurely. Yeah, looks like that preference still holds and most of the time I don't think it'll cause problems with documenter, but it looks like some characters are rendered differently. I'm inclined to leave updating the latex escape sequences to other PRs though. |
Good, good. |
Ahhhh it's so amazing to see green CI on nightly again. :D Thanks again to everyone involved! |
* Migrated function docs to docstrings for the appropriate types. NOTE: This often required making some default methods which fail if dispatched to. * Added some missing references when possible. * Added a few (mostly empty) docstrings on a few undocumented, but exported distributions. * Fixed a few equation formatting issues (e.g., `FDist`).
This allows us to have custom docstrings that won't introduce new methods that could change the behaviour. Reverted changes to testutils.jl
Looks like the Base.Markdown.MD `doc""" ... """` syntax doesn't play well with escaping latex equations. The result is poorly formatted equations in documenter, but using normal docstrings works fine.
…render the equations properly.
Ok, just needed a single line change. Assuming, the build passes (tests passed on 0.6 and 0.7 locally) this should be good to merge. |
Thanks so much again! This is great. |
Moved docs over to Documenter.jl which mostly involved converting the restructured text to markdown and moving most of the docs into docstrings. Unfortunately, I needed to create some extra methods for the general docstrings, but I'm open to suggestions.
Fixes #629