forked from psychoinformatics-de/datalad-debian
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
36 additions
and
1 deletion.
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 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,35 @@ | ||
## Editing, building, and publishing extension documentation | ||
|
||
|
||
The `datalad-extension-template` uses [Sphinx](https://www.sphinx-doc.org/en/master/index.html#) for document generation | ||
and suggests using [Read the Docs](https://docs.readthedocs.io/en/stable/) for automatic documentation building, versioning, and hosting. | ||
|
||
Once you are ready to document your extension software, take note of the following: | ||
|
||
### Document editing | ||
|
||
Edit your `docs/source/index.rst` file using [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html), | ||
which is the default plaintext markup language used by Sphinx. Add further documentation as needed. | ||
|
||
### Local testing | ||
|
||
For testing locally whether your documentation builds and renders correctly, first install the developer requirements from the repository's root directory: | ||
``` | ||
pip install -r requirements-devel.txt | ||
``` | ||
|
||
Then build the documentation locally: | ||
``` | ||
make -C docs html | ||
``` | ||
|
||
Navigate to `docs/build/` and open `index.html` in your browser to view your documentation. | ||
|
||
### Remote building and testing | ||
|
||
The GitHub Action workflow located at `.github/workflows/docbuild.yml` will run on a push or pull request to your GitHub repository's master/main branch. This builds the documentation remotely and serves as an automated documentation test. | ||
|
||
### Publishing your documentation | ||
|
||
- If you maintain your extension yourself *outside of the scope of the DataLad GitHub organization*, you can follow [these instructions](https://docs.readthedocs.io/en/stable/integrations.html) for integrating your version control system (such as GitHub) with Read the Docs. | ||
- If your extension is *maintained by the DataLad developer team*, please create an issue asking for help with the setup. |