-
Notifications
You must be signed in to change notification settings - Fork 1
Fill out some basic documentation #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 62 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
b82c864
put install and import test into its own workflow
rocco8773 6714052
add tests on py 3.6 and 3.13
rocco8773 23adafd
cache tests and set fetch-depth to 1
rocco8773 8d8de86
restrict workflow permissions
rocco8773 d87054f
no not explicitly install plasmapy
rocco8773 e5f8fff
set upper sphinx limit to < 8.2
rocco8773 c3a30c3
set upper sphinx limit to < 7.4
rocco8773 26c68c3
add plasmapy dependency to the documentation requirements
rocco8773 ed6999f
set min python version to 3.8
rocco8773 8d67b76
set min setuptools version to 61
rocco8773 d422eaf
remove fail on warnings and add 3x verbosity
rocco8773 b734e7d
remove the 3x verbosity
rocco8773 bfaa8fa
add dependency "packaging"
rocco8773 ff6dc37
adopt a kwarg passing scheme so we can be flexible in passing args to…
rocco8773 f2f6c0f
put sphinx upper limit to 8.2
rocco8773 4d52c0f
add sphinx_limits workflow
rocco8773 b1763a7
repair sphinx_limits workflow
rocco8773 91423d5
repair sphinx_limits workflow
rocco8773 3aac14c
replace double quotes with single quotes
rocco8773 06ced10
put ${{ matrix.sphinx }} between quotes
rocco8773 b6ec0a2
put fail on warning for the sphinx_limit workflow
rocco8773 7f62dda
put fail on warning for the documentation workflow
rocco8773 c183fac
explicitly pass prefixes to import_by_name
rocco8773 43cf720
explicitly remove prefixes before passing to parent method
rocco8773 c5f0ac0
add a nitpick exception for SphinxDirective.parse_inline
rocco8773 6b8b256
remove the quiet tag from sphinx builds workflow
rocco8773 2bcdb24
add to nitpick exceptions
rocco8773 0ee898b
remove the string prefix in a python agnostic way
rocco8773 9318c5f
correct the prefix removal +1
rocco8773 a9280db
add nitpick ignore for ObjectMembers type annotation
rocco8773 ef81b35
make nitpick ignore rules a little more generic
rocco8773 73fa812
add ObjectMember to nitpick ignore rules
rocco8773 eeb904d
remove upper dependency limit on sphinx
rocco8773 e218d1c
add a build on py3.11
rocco8773 ed07b59
add kwargs for generate_autosummary_content() that are specific to sp…
rocco8773 c1b7c1d
remove trailing whitespace
rocco8773 57350cd
add check on py3.11
rocco8773 c1c963a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 952ee2c
modify docstring of plasmapy_sphinx.autodoc to it reads better when i…
rocco8773 338dd7e
add docstring to plasmapy_sphinx.ext.autodoc
rocco8773 a526737
wrangle option :no-index: to :index: for sphinx < 7.2
rocco8773 0064fc2
PEP 8 line length
rocco8773 ef9c7df
remove unused import
rocco8773 33ec9c1
remove wrongly placed handling of the no-index option for sphinx < 7.2
rocco8773 adcd985
add the 'no-index' option to option_spec if ModuleDocumenter.option_s…
rocco8773 4701c10
wrangle option :no-index: to :index: for sphinx < 7.2
rocco8773 b2a19e3
remove unused import
rocco8773 01645db
fix typo
rocco8773 6a3439b
remove unused import
rocco8773 673aaa9
update docstrings for automodsumm
rocco8773 5e90ed9
update docstrings for css and directives
rocco8773 3a9f76c
add docstring for plasmapy_sphinx.theme
rocco8773 14d9f9c
plasmapy_sphinx.theme to the sidebar Extensions section
rocco8773 4912121
remove admonition note about not being released on PyPI
rocco8773 e4bd842
delete docs/first_steps/configure.rst
rocco8773 10899b7
rename Installing to Installation
rocco8773 0052dd5
add noqa
rocco8773 7b2fc1e
copy and modify installation instructions from plasmapy docs
rocco8773 353a51c
remove noqa
rocco8773 b5171d7
add permissions statement
rocco8773 1fef6c9
remove if-clause for importing importlib.metadata
rocco8773 20bed2f
Merge branch 'main' into overhaul_workflows
rocco8773 0b2ca04
Apply suggestions from code review
rocco8773 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,131 @@ | ||
| .. _plasmapy-install: | ||
|
|
||
| .. |minpython| replace:: 3.8 | ||
|
|
||
| .. _git: https://git-scm.com/ | ||
| .. |git| replace:: git_ | ||
|
|
||
| .. _pip: https://pip.pypa.io | ||
| .. |pip| replace:: pip_ | ||
|
|
||
| .. _Python: https://www.python.org/ | ||
| .. |Python| replace:: Python_ | ||
|
|
||
| .. _PyPI: https://pypi.org/ | ||
| .. |PyPI| replace:: PyPI_ | ||
|
|
||
| .. _`Github repository`: https://github.com/PlasmaPy/plasmapy_sphinx | ||
| .. |Github repository| replace:: `Github repository`_ | ||
|
|
||
| .. role:: py(code) | ||
| :language: python | ||
|
|
||
| .. role:: bash(code) | ||
| :language: bash | ||
|
|
||
| **************************** | ||
| Installing `plasmapy_sphinx` | ||
| ============================ | ||
| **************************** | ||
|
|
||
| `plasmapy_sphinx` requires a minimum |Python| version of |minpython|. If | ||
| you do not have |Python| installed already, here are the instructions | ||
| to `download Python`_ and install it. 🐍 | ||
|
|
||
| .. contents:: Contents | ||
| :local: | ||
|
|
||
| .. _install-pip: | ||
|
|
||
| Installing with pip | ||
| =================== | ||
|
|
||
| To install the most recent release of `plasmapy_sphinx` on |PyPI| with | ||
| |pip| into an existing |Python| |minpython|\ + environment on macOS or | ||
| Linux, open a terminal and run: | ||
|
|
||
| .. code-block:: bash | ||
| python -m pip install plasmapy | ||
| On some systems, it might be necessary to specify the |Python| version | ||
| number by using ``python3``, ``python3.8``, ``python3.9``, | ||
| ``python3.10``, or ``python3.11`` instead of ``python``. | ||
|
|
||
| To install PlasmaPy on Windows, run: | ||
|
|
||
| .. code-block:: bash | ||
| py -3.11 -m pip install plasmapy | ||
| The version of |Python| may be changed from ``3.11`` to another supported | ||
| Python |minpython|\ + release that has been installed on your computer. | ||
|
|
||
| For more detailed information, please refer to this tutorial on | ||
| `installing packages`_. | ||
|
|
||
| Installing from source code | ||
| =========================== | ||
|
|
||
| Obtaining official releases | ||
| --------------------------- | ||
|
|
||
| A ZIP_ file containing the source code for official releases of | ||
| `plasmapy_sphinx` can be obtained `from PyPI`_. | ||
|
|
||
| Alternatively, official releases can be downloaded from the releases_ | ||
| page on the |GitHub repository|. | ||
|
|
||
| Obtaining source code from GitHub | ||
| --------------------------------- | ||
|
|
||
| If you have |git| installed on your computer, you may clone the | ||
| |Github repository| and access the source code from the most | ||
| recent development version by running: | ||
|
|
||
| .. code-block:: bash | ||
| git clone https://github.com/PlasmaPy/plasmapy_sphinx.git | ||
| The repository will be cloned inside a new subdirectory called | ||
| :file:`plasmapy_sphinx`. | ||
|
|
||
| If you do not have |git| installed on your computer, then you may | ||
| download the most recent source code from |Github repository| | ||
| by going to :guilabel:`Code` and selecting :guilabel:`Download ZIP`. | ||
| `Unzipping <https://www.wikihow.com/Unzip-a-File>`__ the file will | ||
| create a subdirectory called :file:`plasmapy_sphinx` that contains the | ||
| source code. | ||
|
|
||
| Building and installing | ||
| ----------------------- | ||
|
|
||
| To install the downloaded version of `plasmapy_sphinx`, enter the | ||
| :file:`plasmapy_sphinx` directory and run: | ||
|
|
||
| .. code-block:: bash | ||
| pip install . | ||
| If you expect to occasionally edit the source code, instead run: | ||
|
|
||
| .. code-block:: bash | ||
| pip install -e . | ||
| The ``-e`` flag makes the installation editable. | ||
|
|
||
| .. note:: | ||
|
|
||
| If you noticed any places where the installation instructions could | ||
| be improved or have become out of date, please `create an issue`_ on | ||
| |Github repository|. It would really help! | ||
|
|
||
| blah | ||
| .. _clone a repository using SSH: https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-ssh-urls | ||
| .. _create an issue: https://github.com/PlasmaPy/plasmapy_sphinx/issues/new/choose | ||
| .. _download Python: https://www.python.org/downloads | ||
| .. _from PyPI: https://pypi.org/project/plasmapy_sphinx | ||
| .. _from Zenodo: https://doi.org/10.5281/zenodo.6774349 | ||
rocco8773 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| .. _installing packages: https://packaging.python.org/en/latest/tutorials/installing-packages/#installing-from-vcs | ||
| .. _releases: https://github.com/PlasmaPy/plasmapy_sphinx/releases | ||
| .. _virtual environment: https://realpython.com/python-virtual-environments-a-primer | ||
| .. _ZIP: https://en.wikipedia.org/wiki/ZIP_(file_format) | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.