mirror of
https://github.com/EveryInc/compound-engineering-plugin.git
synced 2026-11-30 22:15:17 +01:00
8 lines
778 B
Markdown
8 lines
778 B
Markdown
<!-- ce-docs-root:start -->
|
|
**Resolve the CE artifact root `<root>` before composing any artifact path.**
|
|
|
|
- **Read** `docs_root` from `<repo-root>/.compound-engineering/config.yaml` only (`<repo-root>` = `git rev-parse --show-toplevel`). Do not read it from `config.local.yaml`. Unset -> `<root>` is `docs`, exactly as before.
|
|
- **Validate** a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under `.git/`. Otherwise stop with an error naming `docs_root` and the value -- never fall back to `docs`.
|
|
- **Use** `<root>` as the sole artifact location: create it if absent, compose each path as `<root>/<subdir>` with this skill's own subdirectory, and never also read `docs`.
|
|
<!-- ce-docs-root:end -->
|