Skip to content

Commit cd771fd

Browse files
committed
refactor: 🎨 format even Jinja Markdown files
1 parent 8a6dd4d commit cd771fd

6 files changed

Lines changed: 26 additions & 21 deletions

File tree

.config/panache.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
flavor = "quarto"
22
exclude = [".git/", ".github/", "LICENSE.md", "README.md"]
3+
include = ["*.qmd", "*.md", "*.md.jinja", "*.qmd.jinja"]
34

45
[format]
56
tab-width = 2

.config/rumdl.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ exclude = [
1111
"**/_badges.qmd",
1212
# Links gets mangled
1313
"**/CONTRIBUTING.md.jinja",
14-
1514
]
1615

16+
include = ["*.qmd", "*.md", "*.md.jinja", "*.qmd.jinja"]
17+
1718
# List style: `-`
1819
[MD004]
1920
style = "dash"

justfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ update-quarto-theme:
3737
# Update files in the template from the Copier parent folder
3838
sync-template-files:
3939
cp CODE_OF_CONDUCT.md .editorconfig template/
40-
cp .config/rumdl.toml .config/panache.toml template/.config/
4140
mkdir -p template/tools
4241
cp tools/get-contributors.sh template/tools/
4342
cp .github/pull_request_template.md template/.github/

template/.config/rumdl.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exclude = [
1111
"**/_badges.qmd",
1212
# Links gets mangled
1313
"**/CONTRIBUTING.md",
14-
1514
]
1615

1716
# List style: `-`

template/404.qmd.jinja

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ title: "The page you are looking for does not exist"
77
---
88

99
{% if for_seedcase -%}
10+
1011
Let's get you back to greener grounds.
1112

1213
👉 Go to [homepage](/index.qmd).
@@ -17,6 +18,8 @@ illustration of the number 404 surrounded by trees and mountains"}
1718
## Illustration by [Storyset](https://storyset.com/online) {.appendix}
1819

1920
{%- else -%}
20-
This page does not exist, go back to the [homepage](/index.qmd) or check the URL
21-
for typos.
21+
22+
This page does not exist, go back to the [homepage](/index.qmd) or
23+
check the URL for typos.
24+
2225
{%- endif %}

template/CONTRIBUTING.md.jinja

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
The easiest way to contribute is to report issues or bugs that you might find
66
while using `{{ github_repo }}`. You can do this by creating a
7-
[new](https://github.com/{{ github_repo_spec }}/issues/new/choose)
8-
issue on our GitHub repository.
7+
[new](https://github.com/{{ github_repo_spec }}/issues/new/choose) issue on our
8+
GitHub repository.
99

1010
## :pencil2: Adding or modifying content
1111

1212
{% if for_seedcase -%}
13-
If you would like to contribute content, please check out our
14-
[guidebook](https://guidebook.seedcase-project.org/) for more specific details
15-
on how we work and develop. It is a regularly evolving document, so is at
16-
various states of completion.
13+
14+
If you would like to contribute content, please check out
15+
our [guidebook](https://guidebook.seedcase-project.org/) for more specific
16+
details on how we work and develop. It is a regularly evolving document, so is
17+
at various states of completion.
18+
1719
{%- endif %}
1820

1921
To contribute to `{{ github_repo }}`, you first need to install
@@ -23,10 +25,10 @@ manage our package, such as to run checks and test the package. Both the uv and
2325
justfile websites have a more detailed guide on using uv, but below are some
2426
simple instructions to get you started.
2527

26-
It's easiest to first
27-
[install uv](https://docs.astral.sh/uv/getting-started/installation/) and then
28-
install justfile and the other tools with uv. Once you've installed uv, install
29-
the other tools by running:
28+
It's easiest to first [install
29+
uv](https://docs.astral.sh/uv/getting-started/installation/) and then install
30+
justfile and the other tools with uv. Once you've installed uv, install the
31+
other tools by running:
3032

3133
```bash
3234
uv tool install rust-just pyrefly ruff
@@ -38,22 +40,22 @@ Code.
3840
We keep all our development workflows in the `justfile`, so you can explore it
3941
to see what commands are available. To see a list of commands available, run:
4042

41-
``` bash
43+
```bash
4244
just
4345
```
4446

4547
As you contribute, make sure your changes will pass our tests by opening a
4648
terminal so that the working directory is the root of this package's repository
4749
and running:
4850

49-
``` bash
51+
```bash
5052
just run-all
5153
```
5254

53-
When committing changes, please try to follow
54-
[Conventional Commits](https://decisions.seedcase-project.org/why-conventional-commits/)
55-
as Git messages. Using this convention allows us to be able to automatically
56-
create a release based on the commit message by using
55+
When committing changes, please try to follow [Conventional
56+
Commits](https://decisions.seedcase-project.org/why-conventional-commits/) as
57+
Git messages. Using this convention allows us to be able to automatically create
58+
a release based on the commit message by using
5759
[Cocogitto](https://decisions.seedcase-project.org/why-semantic-release-with-cocogitto/).
5860
If you don't use Conventional Commits when making a commit, we will revise the
5961
pull request title to follow that format, as we use squash merges when merging

0 commit comments

Comments
 (0)