Skip to content

Make lesson citable #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
run: |
make dirhtml

- name: Generate PDF
run: |
make pyppeteer
mv _build/pyppeteer/*.pdf _build/dirhtml/_static/lesson.pdf

# The following supports building all branches and combining on
# gh-pages
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/validate-cff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
paths:
- CITATION.cff
workflow_dispatch:

name: CITATION.cff
jobs:
Validate-CITATION-cff:
runs-on: ubuntu-latest
name: Validate CITATION.cff
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate CITATION.cff
uses: dieghernan/cff-validator@main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Code documentation lesson
# How to document your research software

- [Credit and license](https://coderefinery.github.io/documentation/license/)
- [How to preview the lesson locally](https://coderefinery.github.io/sphinx-lesson/contributing-to-a-lesson/#build-and-test-locally)
36 changes: 36 additions & 0 deletions citation.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
cff-version: 1.2.0
message: "If you use this lesson material, please cite it using these metadata."
authors:
- name: "CodeRefinery"
- family-names: "Bast"
given-names: "Radovan"
- family-names: "Wikfeldt"
given-names: "Kjartan Thor"
- family-names: "Rantaharju"
given-names: "Jarno"
- family-names: "Darst"
given-names: "Richard"
- family-names: "Wittke"
given-names: "Samantha"
- family-names: "van der Burg"
given-names: "Sven"
- family-names: "Razick"
given-names: "Sabry"
- family-names: "Rasel"
given-names: "Annajiat Alim"
- family-names: "Negru"
given-names: "Stefan"
- family-names: "Lindi"
given-names: "Bjørn"
- family-names: "van Vliet"
given-names: "Marijn"
- family-names: "Orozco"
given-names: "Luisa"
title: "How to document your research software"
type: "data"
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."
version: 2023-08-10
date-released: 2023-08-10
url: "https://coderefinery.github.io/documentation/"
license: CC-BY-4.0
repository-code: "https://github.com/coderefinery/documentation"
9 changes: 3 additions & 6 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

# -- Project information -----------------------------------------------------

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

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

# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
Expand Down
2 changes: 1 addition & 1 deletion content/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ of time.
### Detailed schedule

```markdown
* 10:45 - 12:30 Documentation
* 10:45 - 12:30 How to document your research software
- 10:45 - 10:55 Motivation and tools
- create a wishlist in HackMD
- 10:55 - 11:05 Break
Expand Down
4 changes: 2 additions & 2 deletions content/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Code documentation
==================
How to document your research software
======================================

In this lesson we will discuss different solutions for implementing and
deploying code documentation.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ git+https://github.com/rkdarst/sphinx-copybutton.git@exclude-unselectable-3
sphinx-lesson
sphinx_rtd_theme_ext_color_contrast
https://github.com/coderefinery/sphinx-coderefinery-branding/archive/master.zip
https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip