-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1 from namurphy/pre-summer-school
Update repository infrastructure prior to summer school
- Loading branch information
Showing
14 changed files
with
3,363 additions
and
27 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,16 @@ | ||
# GitHub workflows | ||
|
||
[GitHub Actions]: https://docs.github.com/en/actions | ||
[Nox]: https://nox.thea.codes | ||
[YAML]: https://en.wikipedia.org/wiki/YAML | ||
|
||
The [`.github/workflows`](.) directory contains [YAML] files that | ||
describe [GitHub Actions] workflows such as those used to perform | ||
continuous integration tests. | ||
|
||
Several of the workflows invoke [Nox] sessions that are defined in the | ||
top-level [`noxfile.py`](../../noxfile.py). | ||
|
||
Continuous integration (CI) workflows include: | ||
|
||
- [`ci.yml`](./ci.yml) — perform CI checks during pull requests (PRs) |
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 |
---|---|---|
|
@@ -15,4 +15,6 @@ sphinx: | |
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
- requirements: docs/requirements.txt |
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,49 @@ | ||
# Documentation directory | ||
|
||
[**documentation guide**]: https://docs.plasmapy.org/en/latest/contributing/doc_guide.html | ||
[Sphinx]: https://www.sphinx-doc.org | ||
[Nox]: https://nox.thea.codes | ||
[Read the Docs]: https://about.readthedocs.com | ||
[reStructuredText]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#rst-primer | ||
[`docs`]: . | ||
[`docs/source/conf.py`]: conf.py | ||
[install graphviz]: https://graphviz.org/download | ||
[install pandoc]: https://pandoc.org/installing.html | ||
|
||
> [!TIP] | ||
> To learn more about writing documentation, please check out the | ||
> [**documentation guide**]. | ||
The [`docs`] directory contains the source files for the narrative | ||
documentation. The configuration file is [`docs/source/conf.py`]. | ||
|
||
The documentation is written in [reStructuredText], built using | ||
[Sphinx] via a [Nox] session, and hosted by [Read the Docs]. | ||
|
||
## Building documentation | ||
|
||
> [!TIP] | ||
> When making a pull request, the documentation can be previewed by | ||
> clicking on *Details* next to **docs/readthedocs.org** in the | ||
> list of checks. | ||
Prior to building documentation locally, please install [Nox] and its | ||
dependencies with: | ||
|
||
```shell | ||
python -m pip install nox uv | ||
``` | ||
|
||
> [!NOTE] | ||
> It may also be necessary to [install pandoc] (and possibly [install graphviz]) | ||
> if you want to build the documentation locally. | ||
The documentation can be built by going to the top-level directory of | ||
your clone of PlasmaPy and running: | ||
|
||
```shell | ||
nox -s docs | ||
``` | ||
|
||
The documentation preview will be built in `docs/build/html` in your | ||
local clone of this repository. |
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,19 @@ | ||
.. _examples: | ||
|
||
Examples | ||
======== | ||
|
||
This page provides a gallery of example notebooks. | ||
|
||
.. contents:: | ||
:local: | ||
|
||
|
||
Tutorials | ||
--------- | ||
|
||
.. nbgallery:: | ||
:glob: | ||
|
||
notebooks/astropy-units-completed | ||
notebooks/particles-formulary-completed |
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
Oops, something went wrong.