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

Improve doc in readthedocs #31

Closed
acs opened this issue Apr 18, 2020 · 10 comments
Closed

Improve doc in readthedocs #31

acs opened this issue Apr 18, 2020 · 10 comments
Milestone

Comments

@acs
Copy link
Contributor

acs commented Apr 18, 2020

  • Select a more attractive theme
  • Include info the the landing page (converting markdown to rst)
  • Review all the code doc
@acs acs added this to the 1.0 milestone Apr 18, 2020
@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

Ok, first step is to select a more attractive theme. Probably this can be done using the readthedocs config options. Let's see.

https://readthedocs.org/projects/rtd-sphinx-theme-sample-project/

  • lastest
  • nature

To change the theme:

https://docs.readthedocs.io/en/rel/theme.html

89b157c

Screenshot from 2020-04-25 17-33-19

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

Ok, cool. Now, we need that the README.md is included in land page of readthedocs. And for it, we need to convert it to rst during the doc generation.

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

To include the README.md contents:
https://zj-zhang.github.io/2019/02/24/use_sphinx/

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

There is an issue with m2r now:

sphinx-doc/sphinx#7420

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

When having issues the best reference is: https://docs.readthedocs.io/en/stable/faq.html

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

It is not easy to make Markdown appears right on readthedocs:

https://www.sphinx-doc.org/en/master/usage/markdown.html

Ok, I can convert my markdown pages to rst but the results are just horrible:

Screenshot from 2020-04-25 18-55-46

So I think I am going to stop trying to include the md files in readthedocs.

It seems that the problem is just with URL links.

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

Ok, so in readthedocs there is also the code documentation to use the library.

@acs acs closed this as completed Apr 25, 2020
@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

If we want to have all the doc in readthedocs the approach seems to be to use rst format to create the doc. GitHub supports it.

For example, it is the way used by https://minecraft-stuff.readthedocs.io/en/latest/index.html

@acs
Copy link
Contributor Author

acs commented Apr 25, 2020

Taking a look to other projects with nice doc like:

https://bootstrap-datepicker.readthedocs.io/en/master/

they have specific doc in rst format for it.

https://github.com/uxsolutions/bootstrap-datepicker/blob/master/docs/index.rst

Too much effort for the current state of McThings!

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

No branches or pull requests

1 participant