π Documentation Website
This document explains how to work with the Docusaurus-based documentation website for WATA.
Overviewβ
The WATA documentation website is built with Docusaurus, a modern static website generator optimized for documentation sites. It's hosted on GitHub Pages and can be accessed at https://ioiti.github.io/wata/.
Local Developmentβ
To run the documentation website locally:
-
Clone the WATA repository
git clone https://github.com/IOITI/wata.git
cd wata -
Navigate to the website directory
cd wata-docs
-
Install dependencies
npm install
-
Start the development server
npm start
-
Open your browser to http://localhost:3000/wata/
The development server features hot reloading, allowing you to see changes immediately as you edit files.
Documentation Structureβ
The documentation is organized into the following sections:
- Introduction: Overview of WATA
- Architecture: System design and components
- Trading Workflow: How trades are processed
- How-To Guide: Step-by-step setup instructions
- Configuration Guide: Detailed configuration options
- Deployment Guide: How to deploy WATA
- Saxo Authentication: Authenticating with Saxo Bank
- Database System: Data storage and management
- Reporting: Analytics and visualization capabilities
- Contributing: How to contribute to WATA
- FAQ: Frequently asked questions
Adding Contentβ
To add new documentation:
-
Create a new Markdown file in the
docs/
directory with the appropriate sidebar position---
sidebar_position: X
---
# Title of Document
Content goes here... -
Add the document to the appropriate category in
sidebars.js
-
Use Markdown for content, with support for:
- Code blocks with syntax highlighting
- Admonitions (notes, warnings, etc.)
- Mermaid diagrams
- Images and other media
Deploymentβ
The documentation website is automatically deployed to GitHub Pages whenever changes are pushed to the main branch. You can also manually deploy by running:
cd wata-docs
npm run gh-pages
This will build the site and push the changes to the gh-pages
branch, which is configured to serve as the GitHub Pages source.