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.

  1. Install pandoc then pandoc --help
  2. pdfs will have to be converted to docx using Word, most other formats can be converted directly
  3. pandoc -f docx -t rst filename.docx -o filename.rst typical pandoc usage
  4. pandoc -f docx -t rst filename.docx -o filename.rst --extract-media=./media convert doc with images
  5. Or write rst
  • Note: rst is indent aware like python

Put docs into the Gemini Documents repo

  1. Install git
  2. git clone git@github.com:gemini-rtsw/gemini-docs.git clone the Gemini Docs repo
  3. Copy rst files into the appropriate repo directory
  4. git add <filename> add your new files to the repo
  5. vi index.rst edit 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
  1. git commit <filename[s]> -m "comment" commit your changes
  2. git push push changest to github and trigger Read-The-Docs build
  3. After the git push Read-The-Docs will take a few minutes to upload your docs
  4. View updated docs gemini-docs-rt.readthedocs.io
  5. View the build page
  • The github.com repo page will also have a link to the documents on Read-The-Docs

Create a Read-The-Docs account (optional)

  1. Go to Read-The-Docs
  2. Click on Sign up
  3. Click on Sign up with GitHub
  4. Click on Import a Project
  5. From your main page you can click on a project to access the admin page