This repository contains the source for comprehensive technical reference documentation for the DataJoint framework.
All DataJoint documentations are presented at DataJoint documentation website. Documentation is generated using Sphinx with custom rendering theme largely based on the Read The Doc theme.
The documentation can be distributed for free use under the Creative Commons Attribution-ShareAlike 4.0 International Public License. Any copy or derivation of the documentation must include attribution to "DataJoint contributors" and include the URL reference https://docs.datajoint.io
- Fork and clone the repository to your local machine.
- Install requirements using
pip3 install -r requirements.txt
- Build the website by running
make site
. This will build and generate the static website in thesite
directory. (Windows users should runsphinx-build . _build
from thecontents
directory.) - Move inside the
site
folder (or the_build
folder on Windows) and run the following command to launch a locally web server:This should launch a HTTP server locally serving files from the$ python3 -m http.server
site
directory. - Finally open up a web browser and navigate to
http://localhost:8000
- you should see the built documentation page. The port (i.e. the number after the color:
) may differ - refer to the output of the command from the step above for the actual port to use. - If you made changes to the documentation source, rerun
make site
in a separate terminal window, and then refresh the page in the browser - you should see the changes reflected. - To stop the server, hit
Ctrl+C
in the termianl window that's running the server.
- For inserting a SQL code-block, be sure to use
.. code-block:: mysql
(and NOTSQL
) - For inserting an image, make sure to put the image inside the
contents/_static/img
folder and refer to it using theimage
directive:Alternatively you can also use.. image:: ../_static/img/pipeline.png :width: 250px :align: center :alt: A data pipeline
figure
directive. For more information, refer to the documentation of image and/or figure directives.