Closed joshuaskelly closed 7 years ago
I could have a look at that, if you like. It primarily means to convert the doc strings in a usable form, I guess.
Sure! Go ahead and look into this. I've never dealt with it before so excited to see how it works.
I tried to include the README.md in the documentation, but apparently I couldn't get it to work. There seems to be a way, but it's not working for me.
http://www.sphinx-doc.org/en/stable/markdown.html http://recommonmark.readthedocs.io/en/latest/auto_structify.html
I tried in conf.py
:
from recommonmark.transform import AutoStructify
from recommonmark.parser import CommonMarkParser
# For MARKDOWN support
def setup(app):
github_doc_root = 'https://github.com/JoshuaSkelly/twitch-observer/tree/features/sphinx-documentation/docs'
app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents',
}, True)
app.add_transform(AutoStructify)
And in index.rst
:
.. include:: ../README.md
Which produces:
Maybe you have an idea. I have never worked with Sphinx before aswell.
Removed the broken flavoured markdown support with 67e792c4f5bd5f478f4e52128f3aef91dcac6008.
Question:
Answers:
I've created a ReadtheDocs.org account and hooked up the repo! 😄
Does that mean we have to reference the index.rst on readthedocs.org and then it's fine?
Yeah. I think I just point readthedocs.org to our index.rst and the rest is magic.
Also looks like you have the use_color change in your documentation branch? Should remove that.
Upsi. Apparently I didn't clean my repo properly when switching branches.
Is there something else you want to add to the documentation? I guess I'm finished. See PR #43.
Overview
We really should have documentation for our project and Sphinx seems the way to go.
http://www.sphinx-doc.org/en/stable/