Quick Start Guide¶
Convert docs to rst or write rst¶
Read the docs uses RestructuredText (rst) markup text. All documents must be written in rst.
- Install pandoc then
pandoc --help- pdfs will have to be converted to docx using Word, most other formats can be converted directly
pandoc -f docx -t rst filename.docx -o filename.rsttypical pandoc usagepandoc -f docx -t rst filename.docx -o filename.rst --extract-media=./mediaconvert doc with images- Or write rst
- Note: rst is indent aware like python
Put docs into the Gemini Documents repo¶
- Install git
git clone git@github.com:gemini-rtsw/gemini-docs.gitclone the Gemini Docs repo- Copy rst files into the appropriate repo directory
git add <filename>add your new files to the repovi index.rstedit the appropriate index.rst file and add your files to a toctree. See the index.rst below.Gemini Real-Time Controls Documentation ========================================= .. toctree:: :hidden: :caption: Community Resources EPICS Website <https://epics-controls.org> EPICS Documentation <https://docs.epics-controls.org> .. toctree:: :caption: Quick Start Guide: Quick Start Guide <quick-start/quick-start> .. toctree:: :maxdepth: 2 :caption: PDFs: pdfs/pdfs-index .. toctree:: :maxdepth: 2 :caption: Wiki Docs: wiki/wiki-index .. toctree:: :maxdepth: 2 :caption: HTML Docs: html/html-index .. toctree:: :maxdepth: 2 :caption: Other Docs: :titlesonly: other/other-index .. toctree:: :maxdepth: 1 :caption: Code: code/code-index .. toctree:: :maxdepth: 1 :caption: Gemini HowTo's: howtos/RTEMSInstall howtos/EPICSInstall howtos/ADEInstall
git commit <filename[s]> -m "comment"commit your changesgit pushpush changest to github and trigger Read-The-Docs build- After the
git pushRead-The-Docs will take a few minutes to upload your docs- View updated docs gemini-docs-rt.readthedocs.io
- View the build page
- The github.com repo page will also have a link to the documents on Read-The-Docs
Compile rst locally (highly recommended)¶
- Install pip (Ex: on macOS
sudo easy_install pip)pip install sphinxpip install sphinx_rtd_themesphinx-build --version- On macOS only, add
PATH="$HOME/Library/Python/2.7/bin:$PATH"to .bash_profilemake htmlin Gemini Docs repository home- Your files will be in
_build/html
Create a Read-The-Docs account (optional)¶
- Go to Read-The-Docs
- Click on Sign up
- Click on Sign up with GitHub
- Click on Import a Project
- From your main page you can click on a project to access the admin page