Commit caae6e2
authored
[1/?] Add ability to run code examples in the playground: Move code samples to separate files (#544)
* top-level `/code-samples` directory
* flat structure within `/code-samples`
* file names within `/code-samples` having the page name, they are _primarily_ used in as a prefix
* a few files only consist of said prefix
* file names consist of `[a-z-]`
* code samples are embedded, using the [snippet](https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#embedding-external-files) feature with the two dashes each syntax (`--8<--`)
* code samples are reused when the same code is used elsewhere or lines from it ([snippet lines](https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#snippet-lines) syntax). Code sample reuse, that could only be achieved by the [block format](https://facelessuser.github.io/pymdown-extensions/extensions/snippets/#block-format) is not done
* code samples currently have no new line at EOF
* we currently have code samples in the following languages:
* pony (_see below_)
* Bash (`.sh`; 13)
* C (9)
* Error (`.txt`; 3)
= 313 code samples, 298 unique snippets1 parent b3e0fe4 commit caae6e2
File tree
341 files changed
+2509
-2239
lines changed- code-samples
- docs
- appendices
- c-ffi
- expressions
- generics
- getting-started
- gotchas
- object-capabilities
- packages
- reference-capabilities
- testing
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
341 files changed
+2509
-2239
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments