Add support for sphinx documentation #825
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature request #661
Sphinx documentation and setup. There are still somethings left fairly bare bones as I don't know what Is actually wanted for the index page or the general setup or what Documentation files are wanted to be included, so I just did a general setup with the README, LICENSE, and CONTRIBUTING and how they can be linked to each other and how to link a document to the index.txt.
Most of the features I chose for Sphinx when setting up can be modified, disabled, or removed in the conf.py file located in the source folder in the docs folder. Django can also be set up in that file if desired, but I couldn't really test anything as Djano is not something I know about, and there was no provided file for me to use. HTML theme, CSS. Pygments, and other visual elements can also be handled there.
From what I can tell, Sphinx seems to only be able to handle .txt or .rst or .md files. The current set default is .txt, which can be modified. It seems that you can link documents that aren't .txt in the index file (they're all set to .txt currently). For example, .md files work just fine, but it will throw a fit if you have no extension like the LICENSE file.
The files also have to have a title. As seen in the modified LICENSE file. For example,
LICENSE needs to be followed by a new line of ===============,
Or something of similar format must be there, otherwise errors are thrown. You also need a newline before you try linking documents within each other or to place them in the given index file
This is the current final product
This is a past iteration. Just proof that the format can be changed fairly easily
First iteration with no styling
It should also be noted that there's no build folder currently. There should be, but I hat to remove it so I could commit the changes. That's where the html is located after you build it. In order to generate the desired html, you just need to type "make html" in the doc folder and it should generate. From there, you can go to the build/html/index.html to see the results.