Skip to content

Commit

Permalink
Add software licenses to appendix
Browse files Browse the repository at this point in the history
Add the SingularityCE project software licenses to the appendix, so
that they are distributed with the documentation and easy to find /
review.

Uses m2r2 to import the markdown files directly.

Signed-off-by: Edita Kizinevic <[email protected]>
  • Loading branch information
edytuk committed Feb 10, 2022
1 parent 6ee7f30 commit 994c183
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install Sphinx
run: |
pip install --user --upgrade --upgrade-strategy eager sphinx sphinx-rtd-theme restructuredtext_lint pygments
pip install --user --upgrade --upgrade-strategy eager sphinx sphinx-rtd-theme restructuredtext_lint pygments m2r2
- name: Build web documentation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Install Sphinx
run: |
pip install --user --upgrade --upgrade-strategy eager sphinx sphinx-rtd-theme restructuredtext_lint rstcheck pygments
pip install --user --upgrade --upgrade-strategy eager sphinx sphinx-rtd-theme restructuredtext_lint rstcheck pygments m2r2
- name: Lint rst
run: |
Expand Down
3 changes: 3 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[rstcheck]
ignore_directives=mdinclude

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ Sphinx is written in Python. To get setup to contribute:

- Install Python 3.5 or newer, from your OS package manager or the [Python download
site](https://www.python.org/downloads/)
- Use `pip3`to install Sphinx and the RTD theme package into your home directory:
- Use `pip3`to install Sphinx, RTD theme package, and extensions / linters into
your home directory:

```sh
pip3 install --user Sphinx sphinx-rtd-theme
pip3 install --user sphinx sphinx-rtd-theme rstcheck pygments m2r2
```

If your version of python 3 does not come with `pip` / `pip3`, you may need to
Expand Down
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = ['m2r2']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'
source_suffix = ['.rst']

# The encoding of source files.
#source_encoding = 'utf-8-sig'
Expand Down Expand Up @@ -73,7 +73,7 @@

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
exclude_patterns = ['_build', 'apptainer_source', '.github', 'README.md']

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand Down
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,4 @@ other users, or simply testing new releases.
:maxdepth: 1

Command Line Reference <cli>
License <license>
Licenses <license>
20 changes: 17 additions & 3 deletions license.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
#########
License
#########
##########
Licenses
##########

***************
Documentation
***************

This documentation is subject to the following 3-clause BSD license:

.. include:: LICENSE
:literal:

********************
{Project} Software
********************

.. mdinclude:: apptainer_source/LICENSE.md

.. mdinclude:: apptainer_source/LICENSE_THIRD_PARTY.md

.. mdinclude:: apptainer_source/LICENSE_DEPENDENCIES.md

0 comments on commit 994c183

Please sign in to comment.