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

Choosing documentation syntax; rst vs. md? #49

Closed
ahojukka5 opened this issue Jul 7, 2015 · 3 comments
Closed

Choosing documentation syntax; rst vs. md? #49

ahojukka5 opened this issue Jul 7, 2015 · 3 comments

Comments

@ahojukka5
Copy link
Member

We have already discussed this in context of docstrings but I think this needs another verification because this affects to all documentation we making in future. Some of our documents are now rst and some are md. I think we need to choose one and keep on that.

Already known is that

  • rst is default for sphinx while md is default for mkdocs
  • IPython nbconvert renders good rst and not-so-good md
  • Lexicon writes md using Markdown.jl
  • rst has more features than md, like toctree (=structure)
  • rst is feature richer in all measures, md doesn't have actual "structure"?
  • rst documents are nicely rendered to pdf
  • md documents are easier for human eye
  • numpydoc is some kind of variant from rst
  • almost all(?) python documentation is documented using rst
  • julia itself uses rst for documentation
  • github supports both rst and md (and they have their own "github variation" from original md)

Some links related to this

Do you have any opinions for this? I personally suggest that we use rst in our documentation, mainly because I don't see any good (enough) reasons to use md.

Consequences:

md -> rst : change filename extensions, fix links, find a way to generate api documentation
rst -> md: change filename extensions, change sphinx -> mkdocs in dgs, fix links, find a way to render notebooks

@TeroFrondelius
Copy link
Member

Same same but different. I vote rst and numpy documentation style.

@ovainola
Copy link
Contributor

ovainola commented Jul 8, 2015

md -> rst : I think we already at a point where almost everything is rst except the api documentation. I already tried the rst parser solution provided by @MichaelHatherly in #4 but this seems to provide the rendering in REPL (symbol ?). I guess we are looking for the save function which generates the documentation files. Options could be that we'd write the functionality in julia (REPL renderer & save function, this would help the community also) or, since we already discussed about sphinx, write a functionality for sphinx to process julia files (already has rst renderer, has to find the docstring from the source files).

rst -> md : We're already using Lexicon to create api documention (no worries there) but the notebooks are a bit problematic. Ipython nbconvert has a functionality to generate .md but when me and @ahojukka5 tested it, mkdocs it didn't render them quite well (all code parts we more like one long inline function). Is there any other way/program to convert notebooks? Maybe if we convert notebooks straight to html although this causes a bit friction on the server side when we have to manually move files to correct directories. Sounds more like spaghetti than solution 😆.

I vote for rst even if it's a bit more work.

@ahojukka5
Copy link
Member Author

Ok, I just wanted to double check this. I updated CONTRIBUTING.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants