Welcome! We're delighted that you're interested in contributing to the qBraid Lab documentation. Your help is essential for keeping the project great.
Before you start working on a new feature or a fix, here's how you can contribute:
- Fork the repository: Visit the GitHub page of our project and use the "Fork" button to create a copy of the project in your own GitHub account.
- Create a Development Branch: After forking, clone the repository to your local machine and create a new branch for your development. Use a descriptive name for your branch, such as
feature-<feature-name>orbugfix-<bug-description>. - Commit Your Changes: Make your changes in your development branch and commit them. Be sure to write clear, concise commit messages.
- Push to Your Fork: Push your changes to your forked repository on GitHub.
- Create a Pull Request: Go to the original project repository and click on "Pull Requests", then click the "New Pull Request" button
Our docs are written using reStructuredText (reST), which is the default plaintext markup language used by Sphinx. It's pretty straightforward once you get the hang of it. If you're unfamiliar, reStructuredText Primer is a good place to start.
To build the docs locally, start by forking and cloning the repository:
# Replace the URL with the URL of your forked version of the repository
git clone https://github.com/YOUR_USERNAME/qBraid-Lab.git
cd qBraid-LabInstall sphinx and other requirements:
pip install -r docs/requirements.txtThen, generate the html pages with:
sphinx-build -W -b html docs docs/build/htmlYou can also use the make command:
cd docs
make htmlBoth methods will run Sphinx in your shell. If the build succeeds, it will say The HTML pages are in build/html.
You can view the generated documentation in your local browser window (on OS X) using:
open build/html/index.htmlYou can also view it by running a web server in that directory:
cd build/html
python3 -m http.serverThen open your browser to http://localhost:8000. If you make changes to the docs that aren't reflected in subsequent builds, run
make clean htmlwhich will force a full rebuild.