Skip to content

Commit c869eb5

Browse files
authored
Merge branch 'main' into main
2 parents 8456790 + 8229e73 commit c869eb5

File tree

18 files changed

+114
-31
lines changed

18 files changed

+114
-31
lines changed

.all-contributorsrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,19 @@
960960
"profile": "https://github.com/hfactor13",
961961
"contributions": [
962962
"code",
963-
"review"
963+
"review",
964+
"design"
965+
]
966+
},
967+
{
968+
"login": "jameslamb",
969+
"name": "James Lamb",
970+
"avatar_url": "https://avatars.githubusercontent.com/u/7608904?v=4",
971+
"profile": "https://github.com/jameslamb",
972+
"contributions": [
973+
"code",
974+
"doc",
975+
"translation"
964976
]
965977
}
966978
],

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ There are different sessions in nox related to building the docs: `docs`, `docs-
188188
```
189189
To see the guide built locally, open the file `_build/html/index.html` in your browser.
190190

191+
- `docs-linkcheck`: this session checks that links in documentation work
192+
```bash
193+
nox -e docs-linkcheck
194+
```
195+
If the tests fail, you will see logs in the terminal and in `_build/linkcheck_output/output.txt`.
196+
191197
- `docs-test`: this session runs the tests for the guide.
192198
```bash
193199
nox -e docs-test

README.md

Lines changed: 11 additions & 10 deletions
Large diffs are not rendered by default.

_ext/translation_graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def run(self):
146146
fig.update_layout(
147147
paper_bgcolor="rgba(0,0,0,0)",
148148
plot_bgcolor="rgba(0,0,0,0)",
149+
hoverlabel_bgcolor="var(--bs-body-bg)",
150+
hoverlabel_font_color="var(--bs-body-color)",
149151
font_color="var(--bs-body-color)",
150152
margin=dict(l=40, r=40, t=40, b=40),
151153
xaxis_showgrid=False,

_static/pyos.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* PyOS-specific vars :) */
22
:root {
3-
--pyos-color-primary: #703c87;
3+
--pyos-color-primary: #cfafde;
44
--pyos-color-secondary: #8045e5;
55
--pyos-color-secondary-highlight: #591bc2;
66
--pyos-color-tertiary: #a66c98;

conf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,18 @@
206206
# myst complains about bibtex footnotes because of render order
207207
suppress_warnings = ["myst.footnote"]
208208

209+
# -- Options for linkcheck -------------------------------------------------
210+
211+
# config reference: https://www.sphinx-doc.org/en/master/usage/configuration.html
212+
linkcheck_anchors_ignore_for_url = [
213+
# GitHub code links with line-number anchors are reported as "not found"
214+
r"https:\/\/.*github\.com.*\/blob\/.*",
215+
]
216+
217+
linkcheck_ignore = [
218+
# gnu.org is so strictly rate-limited that retries to it really slow down link-checking... just assume they're fine
219+
r"https:\/\/.*gnu\.org.*",
220+
]
209221

210222
def _post_build(app: "Sphinx", exception: Exception | None) -> None:
211223
rss.generate_tutorials_feed(app)

documentation/repository-files/license-files.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,42 @@ This would not be true with a GPL licensed package. `GPL-3` packages can include
130130

131131
## What about software citation?
132132

133-
While many permissive licenses do not require citation we STRONG encourage that you cite all software that you use in papers, blogs and other publications. You tell your users how to cite your package by using a [citation.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files). We will cover this topic when we talk about creating DOI's for your package using Zenodo.
133+
While many permissive licenses do not require citation, we strongly encourage that you cite all software that you use in papers, blogs, and other publications. You tell your users how to cite your package by using a [citation.cff file](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files).
134134

135-
<!-- TODO: add link when lesson is created - but also we don't yet know how citation.cff files work with Zenodo (do they work??) will the citation info update with a new Zenodo link
135+
### Citation.cff files: Making your software citable
136136

137-
These files - we need to understand if that date releases auto populates or forces zenodo to modify it's citation. If it's not dynamic it could be problematic
137+
A `CITATION.cff` file is a machine-readable file that provides citation information for your software package. The "cff" stands for "Citation File Format," which is a standardized format for software citation metadata.
138138

139-
-->
139+
#### What citation.cff files add to your repository
140+
141+
When you add a `CITATION.cff` file to your repository, GitHub automatically detects it and displays a "Cite this repository" button. This makes it easy for users to properly cite your software. The file contains standardized citation information that tools and services can automatically read and use. GitHub will generate both APA and BibTeX citation formats for users.
142+
143+
#### How dates are tracked in citation.cff files
144+
145+
The citation file tracks important dates for your software. The `date-released` field shows when the current version was released. The `date-published` field shows when the software was first made available. You also include a `version` field with the specific version number.
146+
147+
You should update these dates with each new release so people cite the correct version of your software.
148+
149+
#### Integration with Zenodo
150+
151+
Citation.cff files work well with Zenodo, which is a popular place to store research software and get DOIs. When you create a Zenodo release, it can automatically pull information from your citation file. This keeps your citation information the same between GitHub and Zenodo. You can also include your Zenodo DOI in the citation file. Each time you make a new GitHub release, it can create a new Zenodo version with updated citation information.
152+
153+
154+
Here's a basic example of what a `CITATION.cff` file might look like:
155+
156+
```yaml
157+
cff-version: 1.2.0
158+
message: "If you use this software, please cite it as below."
159+
authors:
160+
- family-names: "Your Last Name"
161+
given-names: "Your First Name"
162+
orcid: "https://orcid.org/0000-0000-0000-0000"
163+
title: "Your Package Name"
164+
version: 1.0.0
165+
doi: "10.5281/zenodo.1234"
166+
date-released: 2025-07-12
167+
url: "https://github.com/yourusername/your-package"
168+
```
140169
141170
# References
142171

documentation/repository-files/readme-file-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Example: [![PyPI version shields.io](https://img.shields.io/pypi/v/pandera.svg)]
8484
```{tip}
8585
Once you package is accepted to pyOpenSci, we will provide you with
8686
a badge to add to your repository that shows that it has been reviewed.
87-
[![pyOpenSci](https://pyopensci.org/badges/peer-reviewed.svg)](https://github.com/pyOpenSci/software-review/issues/12)
87+
[![pyOpenSci](https://pyopensci.org/badges/peer-reviewed.svg)](https://github.com/pyOpenSci/software-submission/issues/12)
8888
8989
```
9090

locales/es/LC_MESSAGES/documentation.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ msgid ""
19411941
"Once you package is accepted to pyOpenSci, we will provide you with a "
19421942
"badge to add to your repository that shows that it has been reviewed. "
19431943
"[![pyOpenSci](https://pyopensci.org/badges/peer-"
1944-
"reviewed.svg)](https://github.com/pyOpenSci/software-review/issues/12)"
1944+
"reviewed.svg)](https://github.com/pyOpenSci/software-submission/issues/12)"
19451945
msgstr ""
19461946

19471947
#: ../../documentation/repository-files/readme-file-best-practices.md:85

locales/es/LC_MESSAGES/package-structure-code.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7199,13 +7199,13 @@ msgstr "Herramienta 3: versionado de setuptools-scm usando etiquetas git"
71997199

72007200
#: ../../package-structure-code/python-package-versions.md:226
72017201
msgid ""
7202-
"[`Setuptools_scm`](https://github.com/pypa/setuptools_scm/) is an "
7202+
"[`Setuptools_scm`](https://github.com/pypa/setuptools-scm/) is an "
72037203
"extension that you can use with setuptools to manage package versions. "
72047204
"**Setuptools_scm** operates the same way that **hatch_vcs** (discussed "
72057205
"above) does. It stores a version in a **\\_version.py** file and relies "
72067206
"on (**git**) tags to determine the package's current version."
72077207
msgstr ""
7208-
"[`Setuptools_scm`](https://github.com/pypa/setuptools_scm/) es una "
7208+
"[`Setuptools_scm`](https://github.com/pypa/setuptools-scm/) es una "
72097209
"extensión que puede usar con setuptools para gestionar las versiones de "
72107210
"los paquetes. **Setuptools_scm** opera de la misma manera que "
72117211
"**hatch_vcs** (discutido anteriormente). Almacena una versión en un "

0 commit comments

Comments
 (0)