generated from carpentries/workbench-template-md
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 774447f
Showing
12 changed files
with
387 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: "Contributor Code of Conduct" | ||
--- | ||
|
||
As contributors and maintainers of this project, | ||
we pledge to follow the [The Carpentries Code of Conduct][coc]. | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior | ||
may be reported by following our [reporting guidelines][coc-reporting]. | ||
|
||
|
||
[coc-reporting]: https://docs.carpentries.org/topic_folders/policies/incident-reporting.html | ||
[coc]: https://docs.carpentries.org/topic_folders/policies/code-of-conduct.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
title: "Licenses" | ||
--- | ||
|
||
## Instructional Material | ||
|
||
All Carpentries (Software Carpentry, Data Carpentry, and Library Carpentry) | ||
instructional material is made available under the [Creative Commons | ||
Attribution license][cc-by-human]. The following is a human-readable summary of | ||
(and not a substitute for) the [full legal text of the CC BY 4.0 | ||
license][cc-by-legal]. | ||
|
||
You are free: | ||
|
||
- to **Share**---copy and redistribute the material in any medium or format | ||
- to **Adapt**---remix, transform, and build upon the material | ||
|
||
for any purpose, even commercially. | ||
|
||
The licensor cannot revoke these freedoms as long as you follow the license | ||
terms. | ||
|
||
Under the following terms: | ||
|
||
- **Attribution**---You must give appropriate credit (mentioning that your work | ||
is derived from work that is Copyright (c) The Carpentries and, where | ||
practical, linking to <https://carpentries.org/>), provide a [link to the | ||
license][cc-by-human], and indicate if changes were made. You may do so in | ||
any reasonable manner, but not in any way that suggests the licensor endorses | ||
you or your use. | ||
|
||
- **No additional restrictions**---You may not apply legal terms or | ||
technological measures that legally restrict others from doing anything the | ||
license permits. With the understanding that: | ||
|
||
Notices: | ||
|
||
* You do not have to comply with the license for elements of the material in | ||
the public domain or where your use is permitted by an applicable exception | ||
or limitation. | ||
* No warranties are given. The license may not give you all of the permissions | ||
necessary for your intended use. For example, other rights such as publicity, | ||
privacy, or moral rights may limit how you use the material. | ||
|
||
## Software | ||
|
||
Except where otherwise noted, the example programs and other software provided | ||
by The Carpentries are made available under the [OSI][osi]-approved [MIT | ||
license][mit-license]. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
## Trademark | ||
|
||
"The Carpentries", "Software Carpentry", "Data Carpentry", and "Library | ||
Carpentry" and their respective logos are registered trademarks of [Community | ||
Initiatives][ci]. | ||
|
||
[cc-by-human]: https://creativecommons.org/licenses/by/4.0/ | ||
[cc-by-legal]: https://creativecommons.org/licenses/by/4.0/legalcode | ||
[mit-license]: https://opensource.org/licenses/mit-license.html | ||
[ci]: https://communityin.org/ | ||
[osi]: https://opensource.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#------------------------------------------------------------ | ||
# Values for this lesson. | ||
#------------------------------------------------------------ | ||
|
||
# Which carpentry is this (swc, dc, lc, or cp)? | ||
# swc: Software Carpentry | ||
# dc: Data Carpentry | ||
# lc: Library Carpentry | ||
# cp: Carpentries (to use for instructor training for instance) | ||
# incubator: The Carpentries Incubator | ||
carpentry: 'incubator' | ||
|
||
# Overall title for pages. | ||
title: 'Performance Profiling & Optimisation (Python)' | ||
|
||
# Date the lesson was created (YYYY-MM-DD, this is empty by default) | ||
created: ~ # FIXME | ||
|
||
# Comma-separated list of keywords for the lesson | ||
keywords: 'python, profiling, optimisation, data structures, algorithms' | ||
|
||
# Life cycle stage of the lesson | ||
# possible values: pre-alpha, alpha, beta, stable | ||
life_cycle: 'pre-alpha' | ||
|
||
# License of the lesson | ||
license: 'CC-BY 4.0' | ||
|
||
# Link to the source repository for this lesson | ||
source: 'https://github.com/RSE-Sheffield/pando-python' | ||
|
||
# Default branch of your lesson | ||
branch: 'main' | ||
|
||
# Who to contact if there are any issues | ||
contact: '[email protected]' | ||
|
||
# Navigation ------------------------------------------------ | ||
# | ||
# Use the following menu items to specify the order of | ||
# individual pages in each dropdown section. Leave blank to | ||
# include all pages in the folder. | ||
# | ||
# Example ------------- | ||
# | ||
# episodes: | ||
# - introduction.md | ||
# - first-steps.md | ||
# | ||
# learners: | ||
# - setup.md | ||
# | ||
# instructors: | ||
# - instructor-notes.md | ||
# | ||
# profiles: | ||
# - one-learner.md | ||
# - another-learner.md | ||
|
||
# Order of episodes in your lesson | ||
episodes: | ||
- introduction.md | ||
|
||
# Information for Learners | ||
learners: | ||
|
||
# Information for Instructors | ||
instructors: | ||
|
||
# Learner Profiles | ||
profiles: | ||
|
||
# Customisation --------------------------------------------- | ||
# | ||
# This space below is where custom yaml items (e.g. pinning | ||
# sandpaper and varnish versions) should live | ||
|
||
varnish: RSE-Sheffield/uos-varnish@main | ||
url: 'rse.shef.ac.uk/pando-python' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
site: sandpaper::sandpaper_site | ||
--- | ||
|
||
This is a new lesson built with [The Carpentries Workbench][workbench]. | ||
|
||
|
||
[workbench]: https://carpentries.github.io/sandpaper-docs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 'Instructor Notes' | ||
--- | ||
|
||
This is a placeholder file. Please add content here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
title: "Using Markdown" | ||
teaching: 10 | ||
exercises: 2 | ||
--- | ||
|
||
:::::::::::::::::::::::::::::::::::::: questions | ||
|
||
- How do you write a lesson using Markdown and `{sandpaper}`? | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
::::::::::::::::::::::::::::::::::::: objectives | ||
|
||
- Explain how to use markdown with The Carpentries Workbench | ||
- Demonstrate how to include pieces of code, figures, and nested challenge blocks | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
## Introduction | ||
|
||
This is a lesson created via The Carpentries Workbench. It is written in | ||
[Pandoc-flavored Markdown](https://pandoc.org/MANUAL.txt) for static files and | ||
[R Markdown][r-markdown] for dynamic files that can render code into output. | ||
Please refer to the [Introduction to The Carpentries | ||
Workbench](https://carpentries.github.io/sandpaper-docs/) for full documentation. | ||
|
||
What you need to know is that there are three sections required for a valid | ||
Carpentries lesson: | ||
|
||
1. `questions` are displayed at the beginning of the episode to prime the | ||
learner for the content. | ||
2. `objectives` are the learning objectives for an episode displayed with | ||
the questions. | ||
3. `keypoints` are displayed at the end of the episode to reinforce the | ||
objectives. | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: instructor | ||
|
||
Inline instructor notes can help inform instructors of timing challenges | ||
associated with the lessons. They appear in the "Instructor View" | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
::::::::::::::::::::::::::::::::::::: challenge | ||
|
||
## Challenge 1: Can you do it? | ||
|
||
What is the output of this command? | ||
|
||
```r | ||
paste("This", "new", "lesson", "looks", "good") | ||
``` | ||
|
||
:::::::::::::::::::::::: solution | ||
|
||
## Output | ||
|
||
```output | ||
[1] "This new lesson looks good" | ||
``` | ||
|
||
::::::::::::::::::::::::::::::::: | ||
|
||
|
||
## Challenge 2: how do you nest solutions within challenge blocks? | ||
|
||
:::::::::::::::::::::::: solution | ||
|
||
You can add a line with at least three colons and a `solution` tag. | ||
|
||
::::::::::::::::::::::::::::::::: | ||
:::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
## Figures | ||
|
||
You can use standard markdown for static figures with the following syntax: | ||
|
||
`![optional caption that appears below the figure](figure url){alt='alt text for | ||
accessibility purposes'}` | ||
|
||
![You belong in The Carpentries!](https://raw.githubusercontent.com/carpentries/logo/master/Badge_Carpentries.svg){alt='Blue Carpentries hex person logo with no text.'} | ||
|
||
::::::::::::::::::::::::::::::::::::: callout | ||
|
||
Callout sections can highlight information. | ||
|
||
They are sometimes used to emphasise particularly important points | ||
but are also used in some lessons to present "asides": | ||
content that is not central to the narrative of the lesson, | ||
e.g. by providing the answer to a commonly-asked question. | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
|
||
## Math | ||
|
||
One of our episodes contains $\LaTeX$ equations when describing how to create | ||
dynamic reports with {knitr}, so we now use mathjax to describe this: | ||
|
||
`$\alpha = \dfrac{1}{(1 - \beta)^2}$` becomes: $\alpha = \dfrac{1}{(1 - \beta)^2}$ | ||
|
||
Cool, right? | ||
|
||
::::::::::::::::::::::::::::::::::::: keypoints | ||
|
||
- Use `.md` files for episodes when you want static content | ||
- Use `.Rmd` files for episodes when you need to generate output | ||
- Run `sandpaper::check_lesson()` to identify any issues with your lesson | ||
- Run `sandpaper::build_lesson()` to preview your lesson locally | ||
|
||
:::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
[r-markdown]: https://rmarkdown.rstudio.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: FIXME | ||
--- | ||
|
||
This is a placeholder file. Please add content here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
Place links that you need to refer to multiple times across pages here. Delete | ||
any links that you are not going to use. | ||
--> | ||
|
||
[pandoc]: https://pandoc.org/MANUAL.html | ||
[r-markdown]: https://rmarkdown.rstudio.com/ | ||
[rstudio]: https://www.rstudio.com/ | ||
[carpentries-workbench]: https://carpentries.github.io/sandpaper-docs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"file" "checksum" "built" "date" | ||
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2023-12-07" | ||
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2023-12-07" | ||
"config.yaml" "509085b79e6ec689b015216d87ddbeff" "site/built/config.yaml" "2023-12-08" | ||
"index.md" "a02c9c785ed98ddd84fe3d34ddb12fcd" "site/built/index.md" "2023-12-08" | ||
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2023-12-07" | ||
"episodes/introduction.md" "6c55d31b41d322729fb3276f8d4371fc" "site/built/introduction.md" "2023-12-07" | ||
"instructors/instructor-notes.md" "cae72b6712578d74a49fea7513099f8c" "site/built/instructor-notes.md" "2023-12-07" | ||
"learners/reference.md" "1c7cc4e229304d9806a13f69ca1b8ba4" "site/built/reference.md" "2023-12-07" | ||
"learners/setup.md" "61568b36c8b96363218c9736f6aee03a" "site/built/setup.md" "2023-12-07" | ||
"profiles/learner-profiles.md" "60b93493cf1da06dfd63255d73854461" "site/built/learner-profiles.md" "2023-12-07" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: 'Reference' | ||
--- | ||
|
||
## Glossary | ||
|
||
This is a placeholder file. Please add content here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Setup | ||
--- | ||
|
||
FIXME: Setup instructions live in this document. Please specify the tools and | ||
the data sets the Learner needs to have installed. | ||
|
||
## Data Sets | ||
|
||
<!-- | ||
FIXME: place any data you want learners to use in `episodes/data` and then use | ||
a relative link ( [data zip file](data/lesson-data.zip) ) to provide a | ||
link to it, replacing the example.com link. | ||
--> | ||
Download the [data zip file](https://example.com/FIXME) and unzip it to your Desktop | ||
|
||
## Software Setup | ||
|
||
::::::::::::::::::::::::::::::::::::::: discussion | ||
|
||
### Details | ||
|
||
Setup for different systems can be presented in dropdown menus via a `solution` | ||
tag. They will join to this discussion block, so you can give a general overview | ||
of the software used in this lesson here and fill out the individual operating | ||
systems (and potentially add more, e.g. online setup) in the solutions blocks. | ||
|
||
::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
:::::::::::::::: solution | ||
|
||
### Windows | ||
|
||
Use PuTTY | ||
|
||
::::::::::::::::::::::::: | ||
|
||
:::::::::::::::: solution | ||
|
||
### MacOS | ||
|
||
Use Terminal.app | ||
|
||
::::::::::::::::::::::::: | ||
|
||
|
||
:::::::::::::::: solution | ||
|
||
### Linux | ||
|
||
Use Terminal | ||
|
||
::::::::::::::::::::::::: | ||
|