-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
169 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM alpine:3.19 | ||
RUN apk add ruby git | ||
RUN gem install mdl -v 0.13.0 | ||
ENTRYPOINT [ "mdl" ] | ||
CMD [ "" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
git_recurse true | ||
rules "~MD002", "~MD013", "~MD036" | ||
rules "~MD002", "~MD013", "~MD036" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Meta guidelines | ||
|
||
This section presents some guidelines for the writing and maintenance | ||
of this handbook. | ||
|
||
## Scope | ||
|
||
The development handbook is aimed to give guidelines and best practices for the | ||
development process. Strictly operational matters should be avoided | ||
here, and rather be included in the [operational handbook](https://clarin-eric.github.io/handbook-operations/). | ||
|
||
As a rule of thumb, the following distinction can be kept in mind: | ||
|
||
* 👉 Anything that (also) happens on your **local machine** `SHOULD` be done in | ||
line with the development handbook. | ||
* 👉 Anything that (also) happens in the **infrastructure** (in a broad sense?), | ||
or where **roles & responsibilities** come into play, | ||
`SHOULD` be done according to the operational handbook. | ||
|
||
Note that most processes involve both development and operational aspects. | ||
|
||
## Structure | ||
|
||
* 👉 Each page `MUST` have a level 1 heading (`#`) for the title of the section | ||
or chapter | ||
* 👉 Level 2 headings (`##`) `MUST` be used for the main sections and use lower | ||
level headings for subsections | ||
* 👉 Each page `SHOULD` include a short introduction describing its scope and context | ||
|
||
## Style | ||
|
||
* 👉 Mark concrete guidelines with the 👉 emoji | ||
* {TODO: Marking of policies, hints?} | ||
* 👉 Sets of related guidelines `SHOULD` be enumerated using **unordered lists** | ||
(as used here) | ||
* 👉 Important keywords `MAY` be highlighted using `**` emphasis markup | ||
* 👉 Use `MAY`, `SHOULD` and `MUST` and use code markup for these using backticks | ||
* 👉 References `SHOULD` be placed in footnotes. Use the footnote markup that is | ||
supported in both GitHub and mkdocs via the footnotes plugin, and requires usage | ||
of a specific syntax[^FOOTNOTES]. | ||
* 👉 Links that are not references `MAY` be rendered as regular inline links (see | ||
below for an example) | ||
* 👉 The markdown for each page `MUST` pass linting with | ||
[markdownlint](https://github.com/markdownlint/markdownlint) (see rules[^RULES]). | ||
* TODO: hint about CI and local linting | ||
|
||
## Content | ||
|
||
* 👉 References to information sources and other relevant related resources `SHOULD` | ||
be included where applicable. Use footnotes as described above. | ||
|
||
[^FOOTNOTES]: [GitHub blog: "Footnotes now supported in Markdown fields"](https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/) | ||
[^RULES]: [Markdownlint repository: `docs/RULES.md`](https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
SCRIPT_DIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" | ||
|
||
echo "Linting README" \ | ||
&& bash "${SCRIPT_DIR}/mdl.sh" 'README.md' \ | ||
&& echo "Linting docs" \ | ||
&& export WORKDIR="${SCRIPT_DIR}/docs" \ | ||
&& find "${WORKDIR}" -type f -name '*.md'| xargs bash "${SCRIPT_DIR}/mdl.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
SCRIPT_DIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" | ||
|
||
echo "Building mdl image" | ||
docker build --quiet --tag 'mdl:latest' "${SCRIPT_DIR}/docker/mdl" | ||
|
||
docker run --rm --name markdown_lint \ | ||
-v "${SCRIPT_DIR}:${SCRIPT_DIR}" -w "${WORKDIR:-$(pwd -P)}" \ | ||
'mdl:latest' "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters