-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
912d228
commit 8b43201
Showing
4 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
.. _upsidedownlabs_contribute: | ||
|
||
Contribute to Documentation | ||
############################# | ||
|
||
This guide outlines the process for contributing to our documentation. | ||
|
||
Prerequisites | ||
============= | ||
|
||
- .. raw:: html | ||
|
||
<a href="https://www.python.org/downloads/" target="_blank">Python</a> | ||
- .. raw:: html | ||
|
||
<a href="https://git-scm.com/downloads" target="_blank">Git</a> | ||
|
||
Setup Steps | ||
================== | ||
|
||
1. Clone the repository: | ||
|
||
.. code-block:: bash | ||
git clone https://github.com/upsidedownlabs/upsidedownlabs.github.io.git | ||
2. Navigate to the cloned directory: | ||
|
||
.. code-block:: bash | ||
cd upsidedownlabs.github.io | ||
3. Creating virtual environment | ||
|
||
- Windows: | ||
|
||
.. code-block:: bash | ||
py -m venv myenv | ||
myenv\Scripts\activate | ||
- Linux: | ||
|
||
.. code-block:: bash | ||
python3 -m venv myenv | ||
source myenv/bin/activate | ||
4. Install dependencies: | ||
|
||
.. code-block:: bash | ||
pip install -r requirements.txt | ||
For Windiows | ||
====================== | ||
|
||
1. Install Python from the official website if not already installed. | ||
2. Build the documentation: | ||
|
||
.. code-block:: bash | ||
sphinx-autobuild <source-dir> <output-dir> | ||
.. warning:: | ||
The source directory and output directory must be different. | ||
|
||
Example: | ||
|
||
.. code-block:: bash | ||
sphinx-autobuild . ../build/html | ||
.. note:: | ||
|
||
Run this command if recent updates are not visible, this will clean the cache memory and rebuild the documentation. | ||
|
||
.. code-block:: bash | ||
.\make.bat clean | ||
Linux-Specific Steps | ||
==================== | ||
|
||
1. Ensure Python is installed. | ||
2. Build the documentation: | ||
|
||
.. code-block:: bash | ||
make livehtml | ||
Making Changes | ||
============== | ||
|
||
1. Locate the relevant ``.rst`` files in the repository. | ||
2. Make your desired edits. | ||
3. Save the files to see live changes on your local server. | ||
|
||
.. note:: | ||
|
||
Run this command if recent updates are not visible, this will clean the cache memory and rebuild the documentation. | ||
|
||
.. code-block:: bash | ||
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters