Skip to content

Commit

Permalink
Collection of small changes resulting from final removal of `plasmapy…
Browse files Browse the repository at this point in the history
…_sphinx` from `plasmapy` (#10)

* fix typo

* copy over CSS changes from plasmapy version

* correct version reference for gh-action-pypi-publish

* try extending versions.html so the flyout remains in the sidebar for the new RTD beta/addons framwork

* move the readthedocs-embed-flyout

* remove extra >

* remove elements that were trying to make the theme work with RTD's Addons
  • Loading branch information
rocco8773 authored May 6, 2024
1 parent b41c38a commit 5943a54
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: python -m build

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@v1
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion plasmapy_sphinx/directives/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def parse_event(env, sig, signode):
Instance of the Sphinx's build environment.
sig : str
The "signature" given the the event directive or role. For example,
The "signature" given the event directive or role. For example,
.. code-block:: rst
Expand Down
15 changes: 11 additions & 4 deletions plasmapy_sphinx/theme/static/css/plasmapy.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
@import "theme.css"; /* From sphinx_rtd_theme */
@import "admonition_color_contrast.css";


/* -----------------------------------------------------------------------------
* RTD Overrides
*/
Expand Down Expand Up @@ -71,6 +70,14 @@ div.graphviz {
margin-bottom: 0 !important;
}

/*
* Patch for overflow wrapping caused by sphinx_rtd_theme==1.1.0
* See https://github.com/PlasmaPy/PlasmaPy/issues/1784
*/
.rst-content p a code {
overflow-wrap: normal;
}

/* Remove excess bottom margin for table headings */
.rst-content table.docutils thead p {
margin-bottom: 0;
Expand Down Expand Up @@ -130,7 +137,7 @@ div.wy-nav-content a:hover {

/*
The style for generic code literals, in particular text that is
enclosed in double back ticks in reST (e.g., ``make -j 32``).
enclosed in double back ticks in reStructuredText (e.g., ``make -j 32``).
*/

div.wy-nav-content .rst-content code.literal {
Expand All @@ -140,7 +147,7 @@ div.wy-nav-content .rst-content code.literal {

/*
The style for links to Python objects, in particular text enclosed in
single back ticks in reST (e.g., `~plasmapy.particles`).
single back ticks in reStructuredText (e.g., `~plasmapy.particles`).
*/

div.wy-nav-content .rst-content code.literal.xref {
Expand All @@ -150,7 +157,7 @@ div.wy-nav-content .rst-content code.literal.xref {

/*
The style for literal text that shows the location of a file, in
particular when used by the reST role :file: (e.g.,
particular when used by the reStructuredText role :file: (e.g.,
:file:`docs/_static/css/plasmapy.css`).
*/
div.wy-nav-content .rst-content code.literal.file {
Expand Down

0 comments on commit 5943a54

Please sign in to comment.