mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
feat: add documentation website with Docusaurus build pipeline (#1177)
* feat: add documentation website with Docusaurus build pipeline
* feat(docs): add AI discovery meta tags for llms.txt files
- Add global headTags with ai-terms, llms, llms-full meta tags
- Update landing page link to clarify AI context purpose
* fix(docs): restore accidentally deleted faq.md and glossary.md
Files were removed in 12dd97fe during path restructuring.
* fix(docs): update broken project-readme links to GitHub URL
* feat(schema): add compound trigger format validation
This commit is contained in:
@@ -2,7 +2,6 @@ const path = require('node:path');
|
||||
const fs = require('fs-extra');
|
||||
const { BaseIdeSetup } = require('./_base-ide');
|
||||
const chalk = require('chalk');
|
||||
const { FileOps, PathUtils } = require('../../../lib/file-ops');
|
||||
const { AgentCommandGenerator } = require('./shared/agent-command-generator');
|
||||
const { WorkflowCommandGenerator } = require('./shared/workflow-command-generator');
|
||||
|
||||
@@ -26,7 +25,7 @@ class AuggieSetup extends BaseIdeSetup {
|
||||
console.log(chalk.cyan(`Setting up ${this.name}...`));
|
||||
|
||||
// Always use project directory
|
||||
const location = PathUtils.getIdeSubDir(projectDir, '.augment', 'commands');
|
||||
const location = path.join(projectDir, '.augment', 'commands');
|
||||
|
||||
// Clean up old BMAD installation first
|
||||
await this.cleanup(projectDir);
|
||||
@@ -53,11 +52,11 @@ class AuggieSetup extends BaseIdeSetup {
|
||||
content: artifact.content,
|
||||
}));
|
||||
|
||||
const bmadCommandsDir = PathUtils.getIdeSubDir(location, 'bmad');
|
||||
const agentsDir = PathUtils.getIdeSubDir(bmadCommandsDir, 'agents');
|
||||
const tasksDir = PathUtils.getIdeSubDir(bmadCommandsDir, 'tasks');
|
||||
const toolsDir = PathUtils.getIdeSubDir(bmadCommandsDir, 'tools');
|
||||
const workflowsDir = PathUtils.getIdeSubDir(bmadCommandsDir, 'workflows');
|
||||
const bmadCommandsDir = path.join(location, 'bmad');
|
||||
const agentsDir = path.join(bmadCommandsDir, 'agents');
|
||||
const tasksDir = path.join(bmadCommandsDir, 'tasks');
|
||||
const toolsDir = path.join(bmadCommandsDir, 'tools');
|
||||
const workflowsDir = path.join(bmadCommandsDir, 'workflows');
|
||||
|
||||
await this.ensureDir(agentsDir);
|
||||
await this.ensureDir(tasksDir);
|
||||
@@ -180,10 +179,10 @@ BMAD ${workflow.module.toUpperCase()} module
|
||||
const fs = require('fs-extra');
|
||||
|
||||
// Only clean up project directory
|
||||
const location = PathUtils.getIdeSubDir(projectDir, '.augment', 'commands');
|
||||
const location = path.join(projectDir, '.augment', 'commands');
|
||||
const bmadDir = path.join(location, 'bmad');
|
||||
|
||||
if (await this.exists(bmadDir)) {
|
||||
if (await fs.pathExists(bmadDir)) {
|
||||
await fs.remove(bmadDir);
|
||||
console.log(chalk.dim(` Removed old BMAD commands`));
|
||||
}
|
||||
@@ -199,12 +198,12 @@ BMAD ${workflow.module.toUpperCase()} module
|
||||
*/
|
||||
async installCustomAgentLauncher(projectDir, agentName, agentPath, metadata) {
|
||||
// Auggie uses .augment/commands directory
|
||||
const location = PathUtils.getIdeSubDir(projectDir, '.augment', 'commands');
|
||||
const bmadCommandsDir = PathUtils.getIdeSubDir(location, 'bmad');
|
||||
const agentsDir = PathUtils.getIdeSubDir(bmadCommandsDir, 'agents');
|
||||
const location = path.join(projectDir, '.augment', 'commands');
|
||||
const bmadCommandsDir = path.join(location, 'bmad');
|
||||
const agentsDir = path.join(bmadCommandsDir, 'agents');
|
||||
|
||||
// Create .augment/commands/bmad/agents directory if it doesn't exist
|
||||
await this.ensureDir(agentsDir);
|
||||
await fs.ensureDir(agentsDir);
|
||||
|
||||
// Create custom agent launcher
|
||||
const launcherContent = `---
|
||||
@@ -231,7 +230,7 @@ BMAD Custom agent
|
||||
const launcherPath = path.join(agentsDir, fileName);
|
||||
|
||||
// Write the launcher file
|
||||
await this.writeFile(launcherPath, launcherContent);
|
||||
await fs.writeFile(launcherPath, launcherContent, 'utf8');
|
||||
|
||||
return {
|
||||
ide: 'auggie',
|
||||
|
||||
Reference in New Issue
Block a user