Now that we have finalised and built our documentation, we can procees to upload it to read the docs.
Pushing our repository¶First, we must push our project to the Git host of our choice, as such:
youruser@yourpc:~yourWorkspacePath/simpleble-master$ git add . youruser@yourpc:~yourWorkspacePath/simpleble-master$ git commit youruser@yourpc:~yourWorkspacePath/simpleble-master$ git pushImporting into ReadTheDocs¶
Once you have pushed your changes to your Git host, create an account with https://readthedocs.org/ ,if you havenât done so already, and proceed to sign in. Once signed in, there are a number of different ways you can follow to import your project, two of which are described below:
simpleble
. On the next page, simply press the âNextâ button and your project will be imported in ReadTheDocs.simpleble
, and the URL, in this case https://github.com/sglvladi/simpleble, of the repository you wish to import. This method has the disadvantage, that a webhook is NOT auto-generated for you when you import the project, meaning that you will have to do this manually (check here), should you wish your documentation to be updated automatically, every time you push to you repository.Once you have followed either of the two approaches of importing your project, outlined above, you should go the the Admin page of your project and under the âAdvance Settingsâ tab, you should specify the path to your requirements.txt
file, relative to you Repository root directory. In the case of simpleble, since the requirements.txt
was placed in the root, you can simply type ârequirements.txtâ.
For Python 3.x projects, such as simpleble, you should also make sure to select the CPython 3.x Interpreter at the bottom of the âAdvanced Settingsâ tab. If you donât do so, your project will fail to build.
After you press the âSubmitâ button, you should be redirected to your project âOverviewâ page, which should specify the build state of your project. If the page says that âYour documentation is buildingâ, simply wait for a few minutes and allow ReadTheDocs to build your project.
Reading the docs¶Once this is done, if everything has been done correctly, your project should pass the building process and you should see a big button on the screen with the text âView your documentationâ. You can now click this button to view your documentation. Typically, your documentation will be hosted under the domain yourProjectName.readthedocs.io. In the case of the âsimplebleâ, the built documentation can be found under simpleble.readthedocs.io.
Well, I hope you enjoyed the tutorial and that it helped you at least in some aspect of your Sphinx+RTD learning curve.
Enjoy documenting!
THE ENDâ¦.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4