Skip to content

Commit e6fcb62

Browse files
committed
[ docs ] Add Tutorials with AI-generated content according to https://diataxis.fr/tutorials/
1 parent 12e9e50 commit e6fcb62

25 files changed

Lines changed: 2978 additions & 39 deletions

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,18 @@ max_line_length = off
4848

4949
[*.py]
5050
indent_size = 4
51+
52+
# See: https://stackoverflow.com/a/40348831/2572373
53+
[**{.build,docs/build,linters/build}**]
54+
charset = unset
55+
end_of_line = unset
56+
insert_final_newline = unset
57+
trim_trailing_whitespace = unset
58+
indent_style = unset
59+
indent_size = unset
60+
max_line_length = unset
61+
62+
# Auto-generated file
63+
[.idrisCommit]
64+
insert_final_newline = unset
65+

.github/workflows/ci-super-linter.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,13 @@ jobs:
4040
fetch-depth: 0
4141
persist-credentials: false # https://docs.zizmor.sh/audits/#artipacked
4242

43+
- name: Load super-linter configuration
44+
# Use grep inverse matching to exclude eventual comments in the .env file
45+
# because the GitHub Actions command to set environment variables doesn't
46+
# support comments.
47+
run: grep -v '^#' .github/linters/super-linter.env >> "$GITHUB_ENV"
48+
4349
- name: Lint Code Base
4450
uses: super-linter/super-linter/slim@v8
4551
env:
46-
DEFAULT_BRANCH: master
4752
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
IGNORE_GENERATED_FILES: true
49-
SAVE_SUPER_LINTER_SUMMARY: true # Required for generating linting reports in PR
50-
51-
VALIDATE_PYTHON_BLACK: false # Avoid conflict: Ruff is preferred
52-
VALIDATE_GIT_COMMITLINT: false
53-
54-
VALIDATE_MARKDOWN_PRETTIER: false # We use markdownlint
55-
VALIDATE_YAML_PRETTIER: false # We use yamllint
56-
57-
# Disable Biome
58-
VALIDATE_BIOME_FORMAT: false
59-
VALIDATE_BIOME_LINT: false

.linters/super-linter-fix.ipkg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package super-linter-fix
2+
3+
prebuild = "FIX_MARKDOWN=true FIX_NATURAL_LANGUAGE=true FIX_SPELL_CODESPELL=true ./super-linter.sh"

.linters/super-linter-local.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Disable stuff which may not work for local run
2+
VALIDATE_CHECKOV=false

.linters/super-linter-run.ipkg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package super-linter-run
2+
3+
prebuild = "./super-linter.sh"

.linters/super-linter.env

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
DEFAULT_BRANCH=master
2+
IGNORE_GENERATED_FILES=true
3+
# Required for generating linting reports in PR
4+
SAVE_SUPER_LINTER_SUMMARY=true
5+
6+
# Avoid conflict: Ruff is preferred
7+
VALIDATE_GIT_COMMITLINT=false
8+
VALIDATE_PYTHON_BLACK=false
9+
10+
# We use markdownlint
11+
VALIDATE_MARKDOWN_PRETTIER=false
12+
# We use yamllint
13+
VALIDATE_YAML_PRETTIER=false
14+
15+
# Disable Biome
16+
VALIDATE_BIOME_FORMAT=false
17+
VALIDATE_BIOME_LINT=false

.linters/super-linter.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# See: https://github.com/super-linter/super-linter/blob/dd82ec5c927bff0fecc98865b0be8aa6ef849001/docs/run-linter-locally.md
4+
docker run --platform linux/amd64 \
5+
--env-file "$(pwd)/../.github/linters/super-linter.env" \
6+
--env-file "$(pwd)/../.github/linters/super-linter-local.env" \
7+
-e LOG_LEVEL=NOTICE \
8+
-e RUN_LOCAL=true \
9+
-e FIX_MARKDOWN="${FIX_MARKDOWN:-false}" \
10+
-e FIX_NATURAL_LANGUAGE="${FIX_NATURAL_LANGUAGE:-false}" \
11+
-e FIX_SPELL_CODESPELL="${FIX_SPELL_CODESPELL:-false}" \
12+
-v "$(pwd)/../":/tmp/lint \
13+
ghcr.io/super-linter/super-linter:latest

docs/source/tutorials.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ You can read more in the `original framework <https://diataxis.fr/tutorials/>`_
1414
:maxdepth: 1
1515
:caption: Choose what to learn
1616

17-
tutorials/test-function
18-
tutorials/generators
19-
tutorials/derivation
17+
tutorials/t00-installation-and-setup
18+
tutorials/t01-generator-monad
19+
tutorials/t02-handling-emptiness
20+
tutorials/t03-measuring-test-coverage
21+
tutorials/t04-automatic-generator-derivation
22+
tutorials/t05-derivegen-signatures
23+
tutorials/t06-mixing-manual-and-automatic
24+
tutorials/t07-beyond-fuel
25+
tutorials/t08-generating-gadts-with-proofs
26+
tutorials/t09-toy-example
27+
28+
.. toctree::
29+
:maxdepth: 1
30+
:caption: Enjoy your curiosity
31+
32+
tutorials/t10-derivation-tuning
33+
tutorials/t11-under-the-hood-a-derivegen-like-macro

docs/source/tutorials/derivation.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/source/tutorials/generators.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)