Skip to content

Commit 09fcb21

Browse files
authored
Merge pull request #270 from coderefinery/citation
Make lesson citable
2 parents c144d70 + a04824b commit 09fcb21

File tree

7 files changed

+68
-10
lines changed

7 files changed

+68
-10
lines changed

.github/workflows/sphinx.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ jobs:
5858
run: |
5959
make dirhtml
6060
61+
- name: Generate PDF
62+
run: |
63+
pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip
64+
make pyppeteer
65+
mv _build/pyppeteer/*.pdf _build/dirhtml/_static/lesson.pdf
6166
6267
# The following supports building all branches and combining on
6368
# gh-pages

.github/workflows/validate-cff.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
paths:
4+
- CITATION.cff
5+
workflow_dispatch:
6+
7+
name: CITATION.cff
8+
jobs:
9+
Validate-CITATION-cff:
10+
runs-on: ubuntu-latest
11+
name: Validate CITATION.cff
12+
env:
13+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Validate CITATION.cff
20+
uses: dieghernan/cff-validator@main

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Code documentation lesson
1+
# How to document your research software
22

33
- [Credit and license](https://coderefinery.github.io/documentation/license/)
44
- [How to preview the lesson locally](https://coderefinery.github.io/sphinx-lesson/contributing-to-a-lesson/#build-and-test-locally)

citation.cff

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
cff-version: 1.2.0
2+
message: "If you use this lesson material, please cite it using these metadata."
3+
authors:
4+
- name: "CodeRefinery"
5+
- family-names: "Bast"
6+
given-names: "Radovan"
7+
- family-names: "Wikfeldt"
8+
given-names: "Kjartan Thor"
9+
- family-names: "Rantaharju"
10+
given-names: "Jarno"
11+
- family-names: "Darst"
12+
given-names: "Richard"
13+
- family-names: "Wittke"
14+
given-names: "Samantha"
15+
- family-names: "van der Burg"
16+
given-names: "Sven"
17+
- family-names: "Razick"
18+
given-names: "Sabry"
19+
- family-names: "Rasel"
20+
given-names: "Annajiat Alim"
21+
- family-names: "Negru"
22+
given-names: "Stefan"
23+
- family-names: "Lindi"
24+
given-names: "Bjørn"
25+
- family-names: "van Vliet"
26+
given-names: "Marijn"
27+
- family-names: "Orozco"
28+
given-names: "Luisa"
29+
title: "How to document your research software"
30+
type: "data"
31+
abstract: "The lesson 'How to document your research software' gives an overview of the different ways how a code project can be documented: from small projects to larger projects. Markdown and Sphinx are central tools in this lesson."
32+
version: 2023-08-10
33+
date-released: 2023-08-10
34+
url: "https://coderefinery.github.io/documentation/"
35+
license: CC-BY-4.0
36+
repository-code: "https://github.com/coderefinery/documentation"

content/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = "Code documentation"
21-
copyright = "2021, CodeRefinery team"
20+
project = "How to document your research software"
21+
copyright = "CodeRefinery team"
2222
author = "CodeRefinery team"
2323
github_user = "coderefinery"
2424
github_repo_name = "documentation" # auto-detected from dirname if blank
@@ -41,10 +41,7 @@
4141

4242
# Settings for myst_nb:
4343
# https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution
44-
# jupyter_execute_notebooks = "off"
45-
# jupyter_execute_notebooks = "auto" # *only* execute if at least one output is missing.
46-
# jupyter_execute_notebooks = "force"
47-
jupyter_execute_notebooks = "cache"
44+
nb_execution_mode = "cache"
4845

4946
# Add any paths that contain templates here, relative to this directory.
5047
# templates_path = ['_templates']

content/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ of time.
4747
### Detailed schedule
4848

4949
```markdown
50-
* 10:45 - 12:30 Documentation
50+
* 10:45 - 12:30 How to document your research software
5151
- 10:45 - 10:55 Motivation and tools
5252
- create a wishlist in HackMD
5353
- 10:55 - 11:05 Break

content/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Code documentation
2-
==================
1+
How to document your research software
2+
======================================
33

44
In this lesson we will discuss different solutions for implementing and
55
deploying code documentation.

0 commit comments

Comments
 (0)