Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer docs #255

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/source/dev_guides/build_dev_docs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
====================
Build dev Docs
====================

Aydin documentation webpage(aydin.app) hosts documentation only for released versions.
One can build the documentation on latest main branch commit or on a feature branch with
the following steps:

Install documentation dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can change to do `docs` folder and install documentation dependencies with
the help of `requirements-docs.txt` file by following two lines.

.. code-block:: bash

$ cd docs
$ pip install -r requirements-docs.txt


Clean the docs/build folder and build the docs from scratch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

$ make clean
$ make html


After execution of `make html` command, one can find the built docs in the `docs/build/html`
folder. `index.html` in the mentioned folder will be the entry to point to the documentation.


Build docs to publish
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: bash

$ make clean
$ make publish


Our Makefile implements the `publish` command, to build documentation of all tagged versions
at the current branch. You might wondering, do we have to build docs for all versions
whenever we want to publish an update? Answer is yes. This is due to the nature of sphinx link
injection architecture and if we don't build for all versions when we have a new version
basically we will not have links for forward traverse between documentation versions.






TODO: Add how to update deployed docs on GitHub Pages.


Empty file.
8 changes: 8 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,11 @@ If you find Aydin useful and use it in your work, please kindly consider to cite

On Github <contact_us/github>
On image.sc <contact_us/imagesc>

.. toctree::
:maxdepth: 1
:hidden:
:caption: Developer Guides

Building dev Docs <dev_guides/build_dev_docs>
Making a Release <dev_guides/release>