-
Notifications
You must be signed in to change notification settings - Fork 479
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
Add mkdocs. #10
Add mkdocs. #10
Conversation
|
||
<a href='#Main.Lapidary-1'> # </a>**Constant** | ||
|
||
A documentation generator for Julia. |
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 alternative is to stick a copy of the README in here (Note: the index.md
is required on mkdocs). I definitely like how that's generated in the rewrite branch!
Thanks! Looks like I've been using 0.5-only features so travis is going to keep failing. For the moment probably best to just focus on getting this all working on 0.5 and do some compat fixes later on. |
Add assets directory of static files: - Lapidary.css (small tweak to readthedocs LHS nav) - mathjaxhelper.js (add latex support)
I've updated the branch with your change. It's much cleaner (which is great)! We should move discussion of readme generation being circular to #12. This works with mkdocs, but you have to turn it on at readthedocs (as I'm sure you know)! |
Thanks! |
RTDs appears to be a bit confused https://lapidaryjl.readthedocs.org/en/latest/. Or maybe I am... is this perhaps because the docs are in |
Ah, looks like it's in https://lapidaryjl.readthedocs.org/en/latest/build/index.html. I guess that's not too bad. |
I think doc is the more usual naming convention. Perhaps we need to move to that. Dang it looks terrible!! Is that with mkdocs checked? |
Eurgh, why can't everyone follow the CommonMark spec for fenced blocks. Sigh. |
Crap. That's probably my fault lol! Ok!! It get's made plain to (ok, well github don't follow spec either! should be able to start a new fenced block with 4 `):
Hmmmmmmmm |
The solution is for plain to look in code block for the max ``` sequence and do one more that that. Since:
is valid (and parsed correctly by mkdocs!!). |
Fine with me. The main Julia repo names it
There wasn't an option to check for mkdocs that I saw. I think it gets detected automatically, maybe?
If that looks alright everywhere then it's fine by me. |
Posting a fix on julia shortly. The option for mkdocs is in the admin/settings, it may be selected by default nowadays. You can also set the language (though I'm unsure if that does anything). |
the "build" in https://lapidaryjl.readthedocs.org/en/latest/build/index.html I think means RTD is not reading the mkdocs file correctly... the LHS menu is not populated (it is with |
In fact at the bottom of the page it says:
when it should say MkDocs. http://lightgraphsjl.readthedocs.org/en/latest/ |
Yes, |
you have to select mkdocs in the settings... |
I was sure that was selected when I created the site. Wasn't when I check just now. Looks much better now though, thanks. |
This also adds two static files to the build: