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

Moving the manual to Markdown #11920

Closed
MikeInnes opened this issue Jun 28, 2015 · 21 comments
Closed

Moving the manual to Markdown #11920

MikeInnes opened this issue Jun 28, 2015 · 21 comments
Labels
docsystem The documentation building system

Comments

@MikeInnes
Copy link
Member

As the last part of the docapocalypse / docapocalopalypse I'd like to move the manual to the much nicer Markdown format and into its own repo. Right now that work is over at JuliaManual.jl (happy to move to JuliaLang and bikeshed the name as appropriate*), and the markdown manual is auto-generated into the /doc directory.

Now that we have a shiny new markdown manual it's just a case of figuring out how to host it. How important are things like versioning and search? Can we live without versioning, and forward search to google? If so, it's a simple case of generating HTML for github pages. If not, things are more complicated and we need to figure out a sane route forward.

* JuliaMAN.jl might be complementary to our recent package additions

@StefanKarpinski
Copy link
Sponsor Member

Docnarok?

@tkelman
Copy link
Contributor

tkelman commented Jun 28, 2015

How important are things like versioning and search?

Very

Can we live without versioning

No

forward search to google

Maybe

simple case of generating HTML for github pages. If not, things are more complicated

Does mkdocs do versioning?

@ivarne
Copy link
Sponsor Member

ivarne commented Jun 28, 2015

Search is essential

@IainNZ
Copy link
Member

IainNZ commented Jun 28, 2015

By versioning do you mean 0.3 vs 0.4 docs? Because definitely need that. Search via Google could work, not sure though.

@MikeInnes
Copy link
Member Author

Ok, it should be easy enough to do different minor versions of the docs. re searching,

https://encrypted.google.com/search?hl=en&q=site%3Adocs.julialang.org%2Fen%2Flatest%20iobuffer#hl=en&q=site:docs.julialang.org%2Fen%2Frelease-0.3+iobuffer

Just having a search box that redirects to that doesn't seem too awful. Other suggestions are welcome, of course.

@shashi How about Escher-backed interactive docs? We could just implement search in Julia.

@StefanKarpinski
Copy link
Sponsor Member

https://cse.google.com/cse/ ?

@shashi
Copy link
Contributor

shashi commented Jun 29, 2015

I'm all for using Escher for this, since this is a good real world use case it means to address. Escher can compile to HTML as of now, though a couple of features need to be figured out for this purpose e.g. a table of contents tree explorer. If run using a Julia server it can indeed be interactive. @one-more-minute @tkelman @IainNZ We can discuss this tomorrow if you guys are around.

@ViralBShah
Copy link
Member

We can deploy the rich interactive documentation on JuliaBox. Heck, if we combine with Homework.jl, it can also become a Julia certification system!

@tkelman
Copy link
Contributor

tkelman commented Jun 29, 2015

I'm around tomorrow, but I'm pretty sure the last web page I made was in FrontPage 97 so I doubt I'll be of much use here.

@jiahao
Copy link
Member

jiahao commented Jun 29, 2015

What's the story with equations and references now? We have some in the manual and standard library reference and I would hate to lose them in the Markdown transition.

@tkelman
Copy link
Contributor

tkelman commented Jun 29, 2015

@jiahao a lot of them were lost last night in the from-rst to to-rst transition

@jiahao
Copy link
Member

jiahao commented Jun 29, 2015

That's really not the answer I was hoping to hear. I spent quite a lot of time writing those docs, and I had warned repeatedly about the lossy format transition. I'm really not pleased about losing them.

@MikeInnes
Copy link
Member Author

@tkelman I haven't seen any missing equations and most references have formats like f() which are really easy to recognise and turn into links. Can you give more specific examples?

@tkelman
Copy link
Contributor

tkelman commented Jun 29, 2015

By references you mean cross-references between different functions right? I think the hope was to possibly make them automatic somehow? Don't shoot the messenger.

There are some bibliographic citations which weren't lost, but the formatting was a bit disrupted. See #11906 for things that @hayd and I noticed while skimming through the super long diff. Most or all of the tables have been fixed already, code quoting and lists and citation formatting and x-refs are still to-be-fixed I believe. And restoring large lost chunks of math.rst

@MikeInnes
Copy link
Member Author

Either way, I understand that a lot of work went into things like cross-references and will do my best to make sure we lose as little as possible in the transition. I can pull them out of the old RST files reasonably easily.

The issues are due to the (somewhat mysterious) conversion process used when the original helpdb.jl was generated, so we might have more luck generating the docstrings directly from the RST files.

@jiahao
Copy link
Member

jiahao commented Jun 29, 2015

@tkelman that wasn't my intention.

@one-more-minute look for cross-references of the form

:xxx: func(examplevar) <func>

ReST supports arbitrary text in the link to some other function :func: or object :obj: or module :mod: etc, and I had found it necessary to use this form of cross-referencing in a few places.

I had also inserted many cross-references of the form :obj:SomeType which are cross-references to SomeType and do not render as SomeType(), but just SomeType. All of these cross-references appear to be gone now.

@mauro3
Copy link
Contributor

mauro3 commented Jun 29, 2015

Off topic: @tkelman that pond sure made my evening! Presumably the "living koi" are by now also "deceased koi", I wonder what their cause of death was...

@hayd
Copy link
Member

hayd commented Jun 29, 2015

Could we use https://github.com/MichaelHatherly/Lexicon.jl cc @MichaelHatherly

Some discussion: MichaelHatherly/Lexicon.jl#6

(xlink to my previous comment about alternative way to get help jl files)

@MichaelHatherly
Copy link
Member

Could we use https://github.com/MichaelHatherly/Lexicon.jl

Lexicon won't be able to help with a rst->md conversion much. Also, I still hadn't gotten to sorting out how xrefs would work, so it's unlikely it would be that useful for what we need here. From the looks of it @one-more-minute's JuliaManual.jl is progressing quite rapidly already.

@IainNZ IainNZ added the docsystem The documentation building system label Jun 30, 2015
@cormullion
Copy link
Contributor

Can you write definition lists (<dd><dl>) in Markdown? I was writing some Markdown the other day and couldn't work out how to do it. (I think the manual uses them extensively.)

@mauro3
Copy link
Contributor

mauro3 commented Jul 11, 2015

Does closing this issue mean that the manual stays in RST?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests