Skip to content

Commit

Permalink
documentation slides
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Oct 1, 2024
1 parent 6bf8063 commit e2bc8ca
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions modules/documentation/slides_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ author: Luisa Orozco, Barbara Vreede, Jaro Camphuijsen, Carlos Martinez, Max Pau
## What is documentation?

- Provides context for your work
- Allows your collaborators and future you to understand what has been done and why
- Allows your collaborators **and future you** to understand what has been done and why

===

Expand All @@ -25,26 +25,27 @@ author: Luisa Orozco, Barbara Vreede, Jaro Camphuijsen, Carlos Martinez, Max Pau
## Why document software?

Make your software reusable:

- A user should be able to run your software in the same way as you do now
- A user should be able to install your software
- A contributor should be able to add or improve code
- A contributor should be able to add to, improve, or fix code

===

<!-- .slide: data-state="standard" -->

## Documentation types

User documentation
- Purpose: What does the software do?
- How can it be used: provide examples
Documentation can have different purposes:

- **User documentation**: What does the software do? How can it be used?
<!-- .element: class="fragment" data-fragment-index="1" -->

Developer documentation
- How can your software be modified or extended?
- **Developer documentation**: How can your software be modified or extended?
<!-- .element: class="fragment" data-fragment-index="2" -->

Deployment documentation
- Hardware and software requirements
- **Deployment documentation**: What hardware and software requirements are there?
<!-- .element: class="fragment" data-fragment-index="3" -->

===

Expand Down Expand Up @@ -98,7 +99,7 @@ Note:
In-code documentation:

+ Makes code more understandable
+ Explains decisions we made
+ Explains decisions that were made

===

Expand Down Expand Up @@ -196,24 +197,26 @@ They follow a standardized syntax.

## Tools

+ **Sphinx** (documentation generator)
+ **Sphinx** / **mkdocs** (documentation generator)
- creates nicely-formatted HTML pages out of .md or .rst files
- programming language independent
+ **Github pages** (deploy your documentation)
- set up inside your GitHub repository
- automatically deploys your Sphinx-generated documentation
- automatically deploys documentation generated above

===

<!-- .slide: data-state="standard" -->

## Take-home message

+ Depending on the purpose and state of the project documentation needs to meet different criteria.
+ Documentation can take different shapes:
+ Readable code
+ In-code comments
+ Docstrings
+ README files
+ Tutorials/notebooks
+ Documentation is a vital part of a project, and should be kept and created alongside the corresponding code.
Documentation is a vital part of a project, and should be kept and created alongside the corresponding code.

Depending on the purpose and state of the project documentation needs to meet different criteria.

Documentation can take different shapes:
+ Readable code
+ In-code comments
+ Docstrings
+ README files
+ Tutorials/notebooks

0 comments on commit e2bc8ca

Please sign in to comment.