diff options
-rw-r--r-- | .gitlab-ci.yml | 7 | ||||
-rw-r--r-- | filters/strip-solutions.lua | 2 | ||||
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | index.md | 12 |
4 files changed, 21 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 639a128..485f445 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -1,3 +1,10 @@ | |||
1 | # GitLab Continuous Integration and Deployment configuration for the Markdown | ||
2 | # course website example, using Nix for the build and publishing through GitLab | ||
3 | # Pages. | ||
4 | # | ||
5 | # Author: Pacien TRAN-GIRARD | ||
6 | # Licence: CC BY-NC 4.0 | ||
7 | |||
1 | stages: | 8 | stages: |
2 | - build | 9 | - build |
3 | - publish | 10 | - publish |
diff --git a/filters/strip-solutions.lua b/filters/strip-solutions.lua index 2bba42f..24221d4 100644 --- a/filters/strip-solutions.lua +++ b/filters/strip-solutions.lua | |||
@@ -3,7 +3,7 @@ | |||
3 | -- Useful to generate public and private handouts from the same source. | 3 | -- Useful to generate public and private handouts from the same source. |
4 | -- | 4 | -- |
5 | -- Author: Pacien TRAN-GIRARD | 5 | -- Author: Pacien TRAN-GIRARD |
6 | -- Licence: EUPL-1.2 | 6 | -- Licence: CC BY-NC 4.0 |
7 | 7 | ||
8 | strip_solutions = os.getenv('STRIP_SOLUTIONS') | 8 | strip_solutions = os.getenv('STRIP_SOLUTIONS') |
9 | 9 | ||
@@ -1,7 +1,7 @@ | |||
1 | # Build environment and recipe for the Markdown course website example. | 1 | # Build environment and recipe for the Markdown course website example. |
2 | # | 2 | # |
3 | # Author: Pacien TRAN-GIRARD | 3 | # Author: Pacien TRAN-GIRARD |
4 | # Licence: EUPL-1.2 | 4 | # Licence: CC BY-NC 4.0 |
5 | 5 | ||
6 | { | 6 | { |
7 | inputs = { | 7 | inputs = { |
@@ -68,3 +68,15 @@ Pages. | |||
68 | - [Quarto (reference)](https://quarto.org/docs/reference/index.html) | 68 | - [Quarto (reference)](https://quarto.org/docs/reference/index.html) |
69 | - [Nix guides](https://nixos.org/learn.html) | 69 | - [Nix guides](https://nixos.org/learn.html) |
70 | - [GitLab CI configuration reference](https://docs.gitlab.com/ee/ci/yaml/) | 70 | - [GitLab CI configuration reference](https://docs.gitlab.com/ee/ci/yaml/) |
71 | |||
72 | |||
73 | ## Licence | ||
74 | |||
75 | The code of this example is licensed under the [CC BY-NC 4.0]. | ||
76 | |||
77 | It can be used as a template for course websites, without requiring the | ||
78 | publication of the added original content (which can may contain exercise | ||
79 | solutions not meant to be shared publicly). | ||
80 | |||
81 | [CC BY-NC 4.0]: https://creativecommons.org/licenses/by-nc/4.0/ | ||
82 | |||