Skip to content

Commit e401b7d

Browse files
committed
chore: set up git hook checks
1 parent 42d61c6 commit e401b7d

File tree

16 files changed

+1190
-94
lines changed

16 files changed

+1190
-94
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npx --no -- commitlint --edit $1
1+
npm run commitlint

.husky/pre-commit

100755100644
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
npm run format:check
2-
npm run changelog
1+
npm run lint-staged
2+
npm run ruff:check
3+
npm run ruff:format
4+
npm test

.prettierrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,45 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12-
- Improve VS Code experience. Enabling Tailwind intellisense in Jinja templates
12+
- Set up git hook checks
13+
- Rename gh workflow to gh-pages.yaml
14+
- Upgrade to tailwind 4
15+
- Ask for theme to inherit from
16+
- Reduce noxfile.py only to clean, build and preview
17+
- Use uv instead venv in nox to speed up builds
18+
- Ignore .tmp
19+
- Rename gh workflow to publish-docs.yaml
20+
- Wip
21+
- Setup lintcommit, git-cliff and prettier
22+
- Improve VS Code experience
1323

1424
## [0.1.1] - 2025-03-11
1525

1626
### Added
1727

18-
- Add VS Code support files to template.
28+
- Add VS Code support files to template
1929

2030
## [0.1.0] - 2025-03-09
2131

2232
### Added
2333

24-
- Add minimal docs.
25-
- Add CHANGELOG.md, LICENCE, favicon and hero images.
34+
- Add minimal docs
35+
- Add CHANGELOG.md, LICENCE, favicon and hero images
2636

2737
### Changed
2838

29-
- Release v0.1.0.
30-
- Run tests in GH Actions.
31-
- Associate jinja modes for vscode.
32-
- Convert to copier template.
33-
- Initial (template theme).
39+
- Release v0.1.0
40+
- Run tests in GH Actions
41+
- Associate jinja modes for vscode
42+
- Convert to copier template
43+
- Initial (template theme)
3444

3545
### Fixed
3646

37-
- Dark/ligh mode icon.
38-
- Default template bake and nox -s build.
39-
- Package names is in snake_case.
40-
- Crash with sphinx theme static templates. Because Sphinx static template uses .jinja suffix too, Copier thinks they are its templates and crash. To prevent collision, we changed Copier template suffix to .copier.
47+
- Dark/ligh mode icon
48+
- Default template bake and nox -s build
49+
- Package names is in snake_case
50+
- Crash with sphinx theme static templates
4151

4252
[unreleased]: https://github.com/documatt/sphinx-theme-template/compare/v0.1.1..HEAD
4353
[0.1.1]: https://github.com/documatt/sphinx-theme-template/compare/v0.1.0..v0.1.1

cliff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body = """
2121
{% for group, commits in commits | group_by(attribute="group") %}
2222
### {{ group | upper_first }}
2323
{% for commit in commits %}
24-
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}.{% if commit.body %} {{ commit.body }}{% endif %}\
24+
- {{ commit.message | split(pat="\n") | first | upper_first | trim }}\
2525
{% endfor %}
2626
{% endfor %}\n
2727
"""

commitlint.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/contrib/structure.md

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

docs/source/contributing.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributing
2+
3+
## File structure and organization
4+
5+
## Local setup
6+
7+
1. `npm i`
8+
9+
## Git hooks
10+
11+
The project is using pre-commit Git manager [Husky](https://typicode.github.io/husky/) to perform various checks on working with Git. See content of scripts in `./husky/` folder. In particular:
12+
13+
- enforces commit message to conventional commit
14+
- formats files with Prettier

0 commit comments

Comments
 (0)