This directory contains the complete documentation for the Content Editorial Assistant (CEA) project, built with Antora and deployed to GitLab Pages.
The documentation is organized into three main sections:
- Architecture: Complete system architecture and design documentation for the AI-powered style analysis system
- How-to Guides: Step-by-step guides for extending rules, adding ambiguity detectors, and integrating new AI models
- API Reference: Complete API documentation for REST and WebSocket interfaces, including AI rewriting endpoints
- Node.js 18 or higher
- npm (comes with Node.js)
-
Install dependencies:
cd docs npm install -
Build the documentation:
npx antora --fetch antora-playbook.yml
-
Serve locally:
npx http-server dist -p 8080
-
Open in browser:
http://localhost:8080
For development with live reload:
# Install live-server globally
npm install -g live-server
# Build and serve with live reload
npx antora --fetch antora-playbook.yml && live-server distThe documentation is automatically deployed to GitHub Pages via GitHub Actions when changes are pushed to the main branch.
- Trigger: Push to
mainbranch or changes todocs/**files - Build: GitHub Actions runs Antora to build the site
- Deploy: Built site is deployed to GitHub Pages
- Access: Available at your GitLab Pages URL
To manually trigger deployment:
- Go to the Actions tab in your GitHub repository
- Select Deploy Documentation to GitHub Pages
- Click Run workflow
The documentation supports Mermaid diagrams for visualizing architecture and workflows:
[mermaid]
....
graph TD
A[Start] --> B[Process]
B --> C[End]
....- Flowcharts: System architecture and process flows
- Sequence Diagrams: API interactions and component communication
- Class Diagrams: Object relationships and inheritance
- State Diagrams: System states and transitions
- Git Graphs: Development workflows
docs/
├── antora-playbook.yml # Antora configuration
├── antora.yml # Component configuration
└── modules/
├── ROOT/ # Main documentation
│ ├── nav.adoc # Navigation
│ └── pages/ # Content pages
│ ├── index.adoc # Main landing page
│ ├── getting-started.adoc # Setup guide
│ └── api-reference.adoc # API documentation
├── architecture/ # Architecture documentation
│ ├── nav.adoc # Architecture navigation
│ └── pages/
│ └── architecture.adoc # System architecture
└── how-to/ # How-to guides
├── nav.adoc # How-to navigation
└── pages/ # How-to pages
├── how-to-add-new-rule.adoc
├── how-to-add-new-ambiguity-detector.adoc
└── how-to-add-new-model.adoc
└── package.json # Node.js dependencies
Create a new .adoc file in the appropriate module's pages/ directory:
= Page Title
:page-layout: doc
== Section
Content goes here...Add the page to the relevant nav.adoc file:
* xref:new-page.adoc[New Page Title]Reference other pages using xref:
For more information, see xref:architecture:architecture.adoc[System Architecture].- Use
=for page titles - Use
==for major sections - Use
===for subsections - Use
****for admonitions - Use
----for code blocks
[source,python]
----
def example_function():
return "Hello, World!"
----WARNING: This is a warning message.
NOTE: This is a note.
TIP: This is a tip.Custom UI elements are in antora-lunr-ui/:
partials/head-meta.hbs: Custom head elements (Mermaid support)css/: Custom CSS stylespartials/: Custom partial templates
Edit antora-playbook.yml to customize:
- Site title and URL
- Content sources
- UI bundle
- Extensions and plugins
- Output directory
Build fails with "Module not found":
npm install
rm -rf node_modules package-lock.json
npm installMermaid diagrams not rendering:
- Check syntax in the AsciiDoc source
- Verify the Mermaid CDN is accessible
- Check browser console for JavaScript errors
Navigation not updating:
- Verify
nav.adocfile syntax - Check that
antora.ymlreferences the correct navigation files - Rebuild the documentation
Cross-references broken:
- Verify the target page exists
- Check the module and page name in the
xref - Ensure the reference follows the correct format
Run Antora with debug output:
npx antora --fetch --log-level=debug antora-playbook.yml- Use clear, concise language
- Include code examples for all procedures
- Add diagrams for complex concepts
- Test all links and cross-references
- Follow the existing structure and style
- Create a feature branch
- Make documentation changes
- Test locally with
npx antora --fetch antora-playbook.yml - Submit a pull request
- Wait for review and automated checks
For help with the documentation:
- Build Issues: Check the GitHub Actions logs
- Content Issues: Review the AsciiDoc syntax guide
- Antora Questions: See the Antora documentation
- Mermaid Issues: Check the Mermaid documentation
This documentation is part of the Content Editorial Assistant project and follows the same license terms.