You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add $DOCS_DIR variable for configurable documentation path (coleam00#982)
Projects with docs outside `docs/` (e.g., `packages/docs-web/src/content/docs/`)
get broken bundled commands because the path is hardcoded. Add `docs.path` to
`.archon/config.yaml` and thread it through the workflow engine as `$DOCS_DIR`
(default: `docs/`), following the same pipeline as `$BASE_BRANCH`.
Changes:
- Add `docs.path` to RepoConfig and `docsPath` to MergedConfig/WorkflowConfig
- Thread `docsDir` through executor-shared, executor, and dag-executor
- Update bundled commands to use `$DOCS_DIR` instead of hardcoded `docs/`
- Add optional docs path prompt to `archon setup`
- Add variable reference and configuration documentation
- Resolve pre-existing merge conflicts in server/api.ts
Fixescoleam00#982
Copy file name to clipboardExpand all lines: packages/docs-web/src/content/docs/reference/configuration.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,10 @@ worktree:
114
114
- .env.example -> .env # Rename during copy
115
115
- .vscode # Copy entire directory
116
116
117
+
# Documentation directory
118
+
docs:
119
+
path: docs # Optional: default is docs/
120
+
117
121
# Defaults configuration
118
122
defaults:
119
123
loadDefaultCommands: true # Load app's bundled default commands at runtime
@@ -157,6 +161,8 @@ This is useful when you maintain coding style or identity preferences in `~/.cla
157
161
2. If omitted: Auto-detects the default branch via `git remote show origin`. Works without any config for standard repos.
158
162
3. If auto-detection fails and a workflow references `$BASE_BRANCH`: Fails with an error explaining the resolution chain.
159
163
164
+
**Docs path behavior:** The `docs.path` setting controls where the `$DOCS_DIR` variable points. When not configured, `$DOCS_DIR` defaults to `docs/`. Unlike `$BASE_BRANCH`, this variable always has a safe default and never throws an error. Configure it when your documentation lives outside the standard `docs/` directory (e.g., `packages/docs-web/src/content/docs`).
165
+
160
166
## Environment Variables
161
167
162
168
Environment variables override all other configuration. They are organized by category below.
Copy file name to clipboardExpand all lines: packages/docs-web/src/content/docs/reference/variables.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ These variables are substituted by the workflow executor in all node types (`com
21
21
|`$WORKFLOW_ID`| Unique ID for the current workflow run | Useful for artifact naming and log correlation |
22
22
|`$ARTIFACTS_DIR`| Pre-created external artifacts directory (`~/.archon/workspaces/<owner>/<repo>/artifacts/runs/<id>/`) | Always exists before node execution; stored outside the repo to avoid polluting the working tree |
23
23
|`$BASE_BRANCH`| Base branch for git operations | Auto-detected from the repository's default branch, or set via `worktree.baseBranch` in `.archon/config.yaml`. Throws an error if referenced in a prompt but cannot be resolved |
24
+
|`$DOCS_DIR`| Documentation directory path | Configured via `docs.path` in `.archon/config.yaml`. Defaults to `docs/` when not set. Never throws |
24
25
|`$CONTEXT`| GitHub issue or PR context, if available | Populated when the workflow is triggered from a GitHub issue/PR. Replaced with empty string when unavailable |
0 commit comments