Skip to content

Commit 95b9a11

Browse files
author
Steven Silvester
authored
Merge pull request #172 from blink1073/docs-improvements
Add generated docs and logos
2 parents 47c293c + c63f183 commit 95b9a11

File tree

10 files changed

+72
-6
lines changed

10 files changed

+72
-6
lines changed

docs/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ dependencies:
99
- myst-parser
1010
- pip:
1111
- pydata_sphinx_theme
12+
- numpydoc
13+
- sphinx-click

docs/source/_static/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* Added to avoid logo being too squeezed */
2+
.navbar-brand {
3+
height: 4rem !important;
4+
}
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading

docs/source/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@
3232
# Add any Sphinx extension module names here, as strings. They can be
3333
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3434
# ones.
35-
extensions = ["myst_parser"]
35+
extensions = [
36+
"sphinx.ext.autodoc",
37+
"sphinx.ext.intersphinx",
38+
"sphinx.ext.napoleon",
39+
"myst_parser",
40+
"sphinx_click",
41+
]
3642

3743
myst_enable_extensions = ["html_image"]
3844

@@ -52,6 +58,9 @@
5258
#
5359
html_theme = "pydata_sphinx_theme"
5460

61+
html_logo = "_static/images/logo/logo.svg"
62+
html_favicon = "_static/images/logo/favicon.svg"
63+
5564
# Add any paths that contain custom static files (such as style sheets) here,
5665
# relative to this directory. They are copied after the builtin static files,
5766
# so a file named "default.css" will overwrite the builtin "default.css".
@@ -74,3 +83,4 @@
7483
def setup(app):
7584
dest = osp.join(HERE, "reference", "changelog.md")
7685
shutil.copy(osp.join(HERE, "..", "..", "CHANGELOG.md"), dest)
86+
app.add_css_file("custom.css")

docs/source/get_started/making_first_release.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ already uses Jupyter Releaser.
7474
![Full Release Workflow Next Step](../images/publish_release_next_step.png)
7575
7676
- **Note** If the publish portion fails you can attempt to publish the draft GitHub release given by the URL in the "\*\* Failure Message \*\*" using the "Publish Release" workflow.
77+
- **Note** GitHub Actions caches the secrets used on a given workflow run. So if you run into an auth issue, you'll
78+
need to run a new workflow instead of re-running the existing workflow.
7779
- Review and merge the forward-port PR if applicable
7880
- Announce the release on appropriate channels

docs/source/how_to_guides/write_config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Note: the only unusable hook names are `before-prep-git` and `before-extract-rel
2727

2828
This is where `jupyter-releaser` looks for configuration (first one found is used):
2929

30-
```code
30+
```
3131
.jupyter-releaser.toml
3232
pyproject.toml (in the tools.jupyter-releaser section )
3333
package.json (in the jupyter-releaser property)

docs/source/reference/api_docs.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
API Docs
22
========
33

4-
Coming soon!
4+
Library Functions
5+
-----------------
6+
.. automodule:: jupyter_releaser.lib
7+
:members:
8+
9+
Python Utility Functions
10+
------------------------
11+
.. automodule:: jupyter_releaser.python
12+
:members:
13+
14+
15+
NPM Utility Functions
16+
------------------------
17+
.. automodule:: jupyter_releaser.npm
18+
:members:
19+
20+
21+
Changelog Utility Functions
22+
---------------------------
23+
.. automodule:: jupyter_releaser.changelog
24+
:members:
25+
26+
27+
Global Utility Functions
28+
------------------------
29+
.. automodule:: jupyter_releaser.util
30+
:members:

docs/source/reference/releaser_cli.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Releaser CLI
2+
============
3+
4+
.. click:: jupyter_releaser.cli:main
5+
:prog: jupyter-releaser
6+
:nested: full

0 commit comments

Comments
 (0)