Skip to content

Commit 9008c0f

Browse files
authored
Merge pull request #205 from sneakers-the-rat/test-docs
Fix broken stuff 2 (and keep stuff unbroken)
2 parents 32d4782 + def1779 commit 9008c0f

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

.github/workflows/build-book.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: python3 -m pip install nox
4343

4444
- name: Build book
45-
run: nox -s docs
45+
run: nox -s docs-test
4646

4747
# Save html as artifact
4848
- name: Save book html as artifact for viewing

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
orphan: true
3+
---
14
# Contributing Guide for the Python open source software packaging book
25

36
This is a community resource. We welcome contributions in the form of issues and/or pull requests to this guide.

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"attrs_block",
6262
]
6363
myst_heading_anchors = 3
64+
myst_footnote_transition = False
6465

6566
# Sphinx_favicon is used now in favor of built in support
6667
# https://pypi.org/project/sphinx-favicon/

noxfile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ def docs(session):
1616
cmd.extend(build_command + session.posargs)
1717
session.run(*cmd)
1818

19+
@nox.session(name="docs-test")
20+
def docs_test(session):
21+
"""
22+
Same as `docs`, but rebuild everything and fail on warnings for testing
23+
"""
24+
session.install("-r", "requirements.txt")
25+
cmd = ["sphinx-build"]
26+
cmd.extend(['-W', '--keep-going', '-E', '-a'])
27+
cmd.extend(build_command + session.posargs)
28+
session.run(*cmd)
29+
1930

2031
@nox.session(name="docs-live")
2132
def docs_live(session):

tutorials/add-license-coc.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ That's it - you've now added a code of conduct to your package directory.
174174

175175
- [<i class="fa-brands fa-github"></i> Guide: `CODE_OF_CONDUCT.md` files](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-code-of-conduct-to-your-project)
176176
- [pyOpenSci package guide `CODE_OF_CONDUCT.md` overview](https://www.pyopensci.org/python-package-guide/documentation/repository-files/code-of-conduct-file.html)
177-
178177
:::
179178

180179
## <i class="fa-solid fa-hands-bubbles"></i> Wrap up

tutorials/publish-conda-forge.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Anyone can submit a package to these channels however they must pass a technical
4444

4545
[Learn more about conda channels here.](#about-conda)
4646

47-
:::{figure-md} pypi-conda-channels
47+
:::{figure-md} pypi-conda-channels-2
4848

4949
<img src="../images/python-pypi-conda-channels.png" alt="Graphic with the title Python package repositories. Below it says anything hosted on PyPI can be installed using pip install. Packaging hosted on a conda channel can be installed using conda install. Below that there are two rows. The top row says conda channels. Next to it are three boxes one with conda-forge, community maintained; bioconda and then default - managed by the Anaconda team. Below that there is a row that says PyPI servers. PyPI - anyone can publish to PyPI and test PyPI (a testbed server for you to practice)." width="700px">
5050

@@ -228,7 +228,7 @@ where it saved the recipe file.
228228

229229
Open the meta.yaml file. The finished `meta.yaml` file that grayskull creates should look like the example below:
230230

231-
```yaml
231+
```yaml+jinja
232232
{% set name = "pyospackage" %}
233233
{% set version = "0.1.8" %}
234234
@@ -421,7 +421,7 @@ This is also why we don't suggest you publish to conda-forge as a practice run.
421421

422422
Once you create your pull request, a suite of CI actions will run that build and test the build of your package. A conda-forge maintainer will work with you to get your recipe in good shape and merged.
423423

424-
:::{figure-md} pypi-conda-channels
424+
:::{figure-md} conda-forge-pr-build
425425

426426
<img src="../images/conda-forge-staged-recipes-ci.png" alt="Image showing the 5 CI tasks that will run against your package in the GitHub interface after you'ce created a pull request. " width="700px">
427427

0 commit comments

Comments
 (0)