-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1301 from TeamCOMPAS/update_docker_docs
Update docker docs
- Loading branch information
Showing
39 changed files
with
886 additions
and
2,082 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
This file was deleted.
Oops, something went wrong.
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,63 @@ | ||
COMPAS online documentation | ||
=========================== | ||
|
||
- COMPAS homepage: https://compas.science/docs | ||
- Code documentation: https://compas.readthedocs.io/ | ||
- COMPAS Github: https://github.com/TeamCOMPAS/COMPAS | ||
|
||
|
||
Tools | ||
----- | ||
|
||
- ReadTheDocs: https://readthedocs.org/ | ||
- Sphinx: https://www.sphinx-doc.org/en/master/index.html | ||
|
||
Updating the documentation | ||
-------------------------- | ||
|
||
1. Edit .rst files in 'docs/online-docs' | ||
2. Follow existing structure for new files | ||
3. Link new files to an index (toctree) | ||
|
||
|
||
Building the documentation locally | ||
---------------------------------- | ||
|
||
In the repository root directory: | ||
|
||
.. code-block:: bash | ||
pip install -e '.[dev]' | ||
cd online-docs | ||
make clean | ||
make html | ||
View results in 'docs/online-docs/_build/html/index.html' | ||
|
||
Make sure there arnt any broken links! See the build logs: | ||
|
||
``` | ||
(pages/User guide/docker: line 22) ok https://stackoverflow.com/questions/23735149/what-is-the-difference-between-a-docker-image-and-a-container | ||
(pages/Developer guide/Developer build/docker-developer: line 23) ok https://www.atlassian.com/continuous-delivery/principles/continuous-integration-vs-delivery-vs-deployment | ||
(pages/User guide/Running COMPAS/running-via-docker: line 41) broken https://stackoverflow.com/questions/23735149/what-is-the-difference-between-a-docker-image-and-a-container#:~:text=An%20instance%20of%20an%20image,of%20layers%20as%20you%20describe.&text=You%20can%20see%20all%20your,an%20image%20is%20a%20container - Anchor '%3A~%3Atext%3DAn%20instance%20of%20an%20image%2Cof%20layers%20as%20you%20describe.%26text%3DYou%20can%20see%20all%20your%2Can%20image%20is%20a%20container' not found | ||
(pages/User guide/docker: line 49) ok https://www.docker.com/ | ||
|
||
``` | ||
|
||
|
||
Pushing the changes online | ||
-------------------------- | ||
|
||
1. Push updated (.rst) source files to COMPAS repo (not the _build dir) | ||
2. ReadTheDocs automatically rebuilds (takes up to 15 minutes) | ||
3. For manual rebuild: | ||
- Log in to https://readthedocs.org/projects/compas/ | ||
- Go to 'Overview' page | ||
- Click 'Build' button | ||
|
||
Note: If build fails with "environment" error, wait and retry. | ||
|
||
Logon details can be found on the COMPAS slack workspace (devel\_compas\_documentation channel). |
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
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
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
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,32 @@ | ||
Git Workflow | ||
============ | ||
|
||
If you are not familiar with ``git``, please refer to a tutorial such as `this one <https://github.com/git-guides>`_. | ||
|
||
In ``COMPAS`` we work in the ``dev`` branch, and use the ``master`` branch for the major version changes. The main workflow is as follows: | ||
|
||
1. Create a git-issue describing the tasks you want to work on (this is optional, but recommended). | ||
2. Create a new branch from ``dev`` with a descriptive name (e.g. ``feature/issue-123``), and make a draft pull request to ``dev``. This will allow you to work on the code collaboratively and get feedback from the team. | ||
3. Make your changes, commit them, and push them to the remote repository. Every commit will trigger the continuous integration (CI) tests. | ||
4. Once you are happy with your changes, check that CI tests are passing, and switch the PR to ``ready for review``. This will make it clear to the team that your changes are ready for review. | ||
|
||
The team will review your changes, and may ask you to make some modifications. You can make these changes in the same branch, and push them to the remote repository. Once the changes are approved, the PR will be merged into ``dev``. | ||
|
||
CI Tests | ||
-------- | ||
|
||
There are a few tests that are run automatically when you push your changes to the remote repository. These tests are: | ||
|
||
1. `spell-checking <https://github.com/TeamCOMPAS/COMPAS/blob/dev/.github/workflows/precommit-checks.yml>`_ | ||
This ensures that docstrings and comments are correctly spelled. | ||
2. `COMPAS compile test <https://github.com/TeamCOMPAS/COMPAS/blob/dev/.github/workflows/compas-compile-ci.yml>`_ | ||
This ensures that COMPAS C++ and python utilities can be correctly compiled (and COMPAS can run on a fiducial binary system). | ||
3. `COMPAS py-utils unit tests <https://github.com/TeamCOMPAS/COMPAS/blob/dev/.github/workflows/compas-compile-ci.yml>`_ | ||
This ensures that some of the python utilities are working as expected. | ||
|
||
|
||
The tests will fail if the fiducial binary system does not lead to a binary black hole merger. | ||
|
||
.. literalinclude:: ../../../py_tests/test_data/run.sh | ||
:linenos: | ||
:language: bash |
39 changes: 0 additions & 39 deletions
39
online-docs/pages/Getting started/COMPAS-dependencies-linux.rst
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
online-docs/pages/Getting started/COMPAS-dependencies-macOS.rst
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
online-docs/pages/Getting started/COMPAS-dependencies-python.rst
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.