Skip to content

Commit

Permalink
Merge pull request #10 from Cambridge-ICCS/add_readme_section
Browse files Browse the repository at this point in the history
Add readme section
  • Loading branch information
MarionBWeinzierl committed Jun 22, 2024
2 parents c76b9e9 + d6164b9 commit 4a9f87c
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 0 deletions.
40 changes: 40 additions & 0 deletions slides/_comments_docstrings.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,43 @@ Docstrings:

- Work through the file adding docstrings where they are missing.
- If you are unsure about variable types or meanings at any point you can sneak a look ahead to the code in exercise 5.


## READMEs {.smaller}

- First point of contact for a new user/contributor with the code repository
- Should give essential information on
- what this is
- what it's for
- how to get started
- In the best case it also tells you
- who built/is building this
- how to contribute
- how to reuse
- Usually written in Markdown
- See also, e.g., [https://www.makeareadme.com/](https://www.makeareadme.com/) and [https://readme.so/](https://readme.so/)


## Recommended README Content {.smaller}

- Overview of software, including relevant papers
- Project/release status
- Requirements and environment
- Installation
- Building
- Usage/Quick start guide (incl. simple example with expected output)
- Documentation and Support: User Guide/Website/Help/Discussion forum
- Contributing guide
- Authors and Acknowledgement
- Licence
- Known Issues

## Other potential files in your repository {.smaller}

- LICENSE
- CONTRIBUTING.md
- CITATION.cff
- CODE_OF_CONDUCT.md
- CHANGES.md


48 changes: 48 additions & 0 deletions slides/_licenses.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Types of Licenses

![](https://cdn.ttgtmedia.com/rms/onlineimages/5_types_of_software_licenses-f.png){width=80% fig-align="center"}

[https://www.techtarget.com/searchcio/definition/software-license](https://www.techtarget.com/searchcio/definition/software-license)


## How to choose a license

:::: {.columns}
::: {.column width="70%"}
- [https://choosealicense.com/licenses/](https://choosealicense.com/licenses/)
- Permissive licenses:
- Apache License 2.0
- MIT License
- Copyleft:
- Means that copy/adaption has to use the same license
- GNU General Public License v3.0
:::

::: {.column}
![](images/apache.png){.absolute top=12.5% right=5% width=20%}
![](images/mit_license.png){.absolute top=35% right=10% width=20%}
![](images/gpl3.png){.absolute top=70% right=5% width=20%}
:::
::::

## Example: MIT License

```
Copyright <YEAR> <COPYRIGHT HOLDER>
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.
```

## Add a license in Github

![](images/github_license.png){width=80% fig-align="center"}

## Add a license in Gitlab

![](images/gitlab_license.png){width=80% fig-align="center"}


Binary file added slides/images/apache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/images/github_license.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/images/gitlab_license.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/images/gpl3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/images/mit_license.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions slides/python.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ My background in this is domain science and numerical modelling on HPC.

<!-- ------------------------------------------------------------------------------ -->

{{< include _licenses.qmd >}}

<!-- ------------------------------------------------------------------------------ -->
{{< include _fstrings_magic_config.qmd >}}

<!-- ------------------------------------------------------------------------------ -->
Expand Down

0 comments on commit 4a9f87c

Please sign in to comment.