Skip to content

Commit 42a31f6

Browse files
Add hatch scripts to build, serve and watch the docs + docs improvements (#587)
* Add `hatch` scripts to build, serve and watch the docs * Convert index.rst to index.md * more fixes * more convert * more improvements * fix rtd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix readme * Fix indices and tables * use ref * move faq --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1ab5984 commit 42a31f6

File tree

22 files changed

+121
-146
lines changed

22 files changed

+121
-146
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,3 @@ dmypy.json
133133

134134
# macOS
135135
.DS_Store
136-
137-
# Copied changelog
138-
docs/source/**/changelog.md

CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,27 @@ To run the Python tests, use:
5252
```bash
5353
pytest
5454
```
55+
56+
## Documentation
57+
58+
Contributions can also take the form of fixes and improvements to the documentation.
59+
60+
To build the docs, run:
61+
62+
```bash
63+
hatch run docs:build
64+
```
65+
66+
To serve the docs:
67+
68+
```bash
69+
hatch run docs:serve
70+
```
71+
72+
It is also possible to automatically watch the docs with the following command:
73+
74+
```bash
75+
hatch run docs:watch
76+
```
77+
78+
Then open http://localhost:8000 in your browser to view the documentation.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ See the [adoption guides](https://jupyter-releaser.readthedocs.io/en/latest/how_
3030

3131
GitHub actions scripts are available to draft a changelog, draft a release, publish a release, and check a release.
3232

33-
See the [action details documentation](https://jupyter-releaser.readthedocs.io/en/latest/background/theory.html#action-details) for more information.
33+
See the [action details documentation](https://jupyter-releaser.readthedocs.io/en/latest/reference/theory.html#action-details) for more information.
3434

3535
The actions can be run on a [fork](https://jupyter-releaser.readthedocs.io/en/latest/how_to_guides/convert_repo_from_releaser.html) of `jupyter_releaser` and target multiple
3636
repositories, or run as workflows on the [source repositories](https://jupyter-releaser.readthedocs.io/en/latest/how_to_guides/convert_repo_from_repo.html), using

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/source/background/index.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
# sys.path.insert(0, os.path.abspath('.'))
1414
import importlib.metadata
1515
import os.path as osp
16-
import shutil
1716

1817
HERE = osp.abspath(osp.dirname(__file__))
1918

2019
# -- Project information -----------------------------------------------------
2120

2221
project = "Jupyter Releaser"
23-
copyright = "2021, Project Jupyter"
22+
copyright = "2024, Project Jupyter"
2423
author = "Project Jupyter"
2524

2625
# The full version, including alpha/beta/rc tags.
@@ -97,6 +96,4 @@
9796

9897

9998
def setup(app):
100-
dest = osp.join(HERE, "reference", "changelog.md")
101-
shutil.copy(osp.join(HERE, "..", "..", "CHANGELOG.md"), dest)
10299
app.add_css_file("custom.css")
File renamed without changes.

docs/source/get_started/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Getting Started
2+
3+
Tutorials. A hands-on introduction to Jupyter Releaser for maintainers.
4+
5+
```{toctree}
6+
:caption: 'Contents:'
7+
:maxdepth: 1
8+
9+
making_release_from_repo
10+
making_release_from_releaser
11+
generate_changelog
12+
```

docs/source/get_started/index.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)