Docusaurus documentation site for Almena Network platform.
| Tool | Version | Purpose |
|---|---|---|
| Task | 3.x | Task runner |
| Node.js | 20+ | Docusaurus, build |
| pnpm | Latest | Package manager |
pnpm install# Start development server
pnpm start
# Access at http://localhost:3001# Production build
pnpm build
# Preview production build
pnpm servepnpm start # Start dev server (hot reload) on port 3001
pnpm build # Production build
pnpm serve # Serve production build on port 3001
pnpm clear # Clear cachedocs/
├── docs/ # Markdown documentation
│ ├── user-guide/ # End-user documentation
│ ├── integrator-guide/ # Integration documentation
│ ├── api-reference/ # API documentation
│ └── getting-started-*/ # Getting started guides
├── src/ # React components
├── static/ # Static assets
├── docusaurus.config.ts # Docusaurus configuration
└── sidebars.ts # Navigation structure
See DOCUMENTATION_STRUCTURE.md for complete structure overview.
- User Documentation: How to use Almena Network
- Integrator Documentation: How to integrate Almena Network into applications
- NEVER document features that aren't implemented
- Mark future features clearly as "Coming Soon"
- Documentation must reflect current codebase state
- All documentation MUST be available in English AND Spanish
- English is the default/source language (
docs/) - Spanish translations live in
i18n/es/docusaurus-plugin-content-docs/current/ - Both versions must be kept in sync
- English (default):
docs/ - Spanish:
i18n/es/docusaurus-plugin-content-docs/current/
Always create or update content in English first in the docs/ directory.
Copy the file structure to the Spanish directory and translate:
# Example: Translating a user guide file
# English source: docs/user-guide/wallet/dashboard.md
# Spanish target: i18n/es/docusaurus-plugin-content-docs/current/user-guide/wallet/dashboard.md
# Create the directory structure
mkdir -p i18n/es/docusaurus-plugin-content-docs/current/user-guide/wallet/
# Copy and translate
cp docs/user-guide/wallet/dashboard.md \
i18n/es/docusaurus-plugin-content-docs/current/user-guide/wallet/dashboard.md
# Edit the Spanish file with translationsWhen adding new navbar items, footer links, or sidebar categories, update:
i18n/es/docusaurus-theme-classic/navbar.jsoni18n/es/docusaurus-theme-classic/footer.jsoni18n/es/docusaurus-plugin-content-docs/current.json
If structure changes significantly:
pnpm docusaurus write-translations --locale espnpm start -- --locale espnpm buildThis builds both English and Spanish versions.
- Maintain structure: Keep the same file structure in both languages
- Code examples: Keep code in English, translate comments
- Technical terms: Some terms like "DID", "API", "SDK" remain in English
- URLs and links: Update internal links to point to Spanish versions when applicable
- Keep in sync: When updating English docs, update Spanish immediately
# Build and check for broken links in both languages
pnpm build
# Serve and check Spanish version
pnpm serve
# Then navigate to /es/ in your browser- Framework: Docusaurus 3
- Language: TypeScript, MDX
- Build Tool: Webpack
- Package Manager: pnpm
# Run on different port
pnpm start --port 3002# Clear cache and rebuild
pnpm clear
pnpm buildAll markdown links must reference existing files. Check console output for specific broken links.
For detailed information, see: