Skip to content

Commit b29cb7d

Browse files
committed
Markdown basics
1 parent c18e00b commit b29cb7d

1 file changed

Lines changed: 52 additions & 2 deletions

File tree

06_documentation.qmd

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,59 @@ Doctest can pick up anything that looks like a Python session and run it as a te
211211

212212
* Text is written in markdown
213213
* Easy to use
214-
* API documentation can be generated with mkdocstrings
214+
* API documentation can be generated with `mkdocstrings`
215215
* The end result is a static website that can be hosted on e.g. GitHub pages
216216

217+
## Markdown {.smaller}
218+
219+
````
220+
**bold**
221+
222+
*italic*
223+
224+
[Markdown syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
225+
226+
* Foo
227+
* Bar
228+
* Baz
229+
230+
| Term | Example |
231+
|-------------------|-----------------------------|
232+
| Class | `class Location: ...` |
233+
| Instance | `loc = Location("Antwerp")` |
234+
| Instance variable | `self.name = name` |
235+
236+
```python
237+
class Location:
238+
def __init__(self):
239+
...
240+
```
241+
242+
````
243+
## {.smaller}
244+
245+
**bold**
246+
247+
*italic*
248+
249+
[Markdown syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
250+
251+
* Foo
252+
* Bar
253+
* Baz
254+
255+
| Term | Example |
256+
|-------------------|-----------------------------|
257+
| Class | `class Location: ...` |
258+
| Instance | `loc = Location("Antwerp")` |
259+
| Instance variable | `self.name = name` |
260+
261+
```python
262+
class Location:
263+
def __init__(self):
264+
...
265+
```
266+
217267
## Configuration
218268

219269
```{.yaml filename="mkdocs.yml"}
@@ -266,7 +316,7 @@ plugins:
266316

267317
* Once you have a static website, you need to share it with the world
268318
* GitHub pages allows you to easily host a static website on GitHub
269-
* The website is available at `https://dhi.github.io/<repository>/`
319+
* The website is available at `https://<user>.github.io/<repository>/`
270320
* The website can be created locally by manually editing html pages.
271321
* For use as documentation, it is easier to use a documentation generator like mkdocs.
272322

0 commit comments

Comments
 (0)