feat(tasks): add test:hugo task for Hugo-only testing

- Add test:hugo for fast Hugo-only tests (no LikeC4)
- Update technical writer docs with new task
This commit is contained in:
Stephan Lo 2025-11-16 13:48:12 +01:00
parent 82d424aeca
commit 4935913002
2 changed files with 15 additions and 4 deletions

View file

@ -59,6 +59,13 @@ tasks:
- test:html - test:html
- likec4:validate - likec4:validate
test:hugo:
desc: Run Hugo-only tests (markdown, HTML, build)
deps:
- test:build
- test:markdown
- test:html
test:full: test:full:
desc: Run all tests including link check (may have errors in legacy content) desc: Run all tests including link check (may have errors in legacy content)
deps: deps:

View file

@ -58,8 +58,11 @@ Your content here...
### 4. Test and Commit ### 4. Test and Commit
```bash ```bash
# Run tests # Run tests (fastest - Hugo only)
task test:quick task test:hugo
# Or run full tests (includes LikeC4 validation)
task test
# Commit your changes # Commit your changes
git add . git add .
@ -223,8 +226,9 @@ task --list
| `task serve` | Start dev server with hot reload | | `task serve` | Start dev server with hot reload |
| `task build` | Build production site | | `task build` | Build production site |
| `task clean` | Remove build artifacts | | `task clean` | Remove build artifacts |
| `task test` | Run all tests (build, markdown, HTML, links) | | `task test` | Run all tests (includes LikeC4) |
| `task test:quick` | Run quick tests (build, markdown) | | `task test:hugo` | Run Hugo-only tests (fastest) |
| `task test:full` | All tests + link checking |
### LikeC4 Tasks ### LikeC4 Tasks