This repository contains the documentation for the Starknet Agent Kit, built using Antora documentation framework.
Before you begin, ensure you have the following installed: - Node.js (v16 or later) - npm (usually comes with Node.js) - Git
-
Clone the repository:
bash git clone https://github.com/kasarlabs/sak-docs.git cd sak-docs
-
Install dependencies:
bash npm install
-
Install Antora globally (this is required for the build script):
bash npm install -g @antora/cli @antora/site-generator
-
To build the documentation locally:
This will generate the site in thebash ./build_local_site.sh
build/site
directory. -
To serve the documentation locally:
The documentation will be available atbash ./server.sh
http://localhost:8080
sak-docs/
├── components/
│ └── StarknetAgent/
│ ├── antora.yml # Component configuration
│ └── modules/
│ ├── ROOT/ # Home page and root content
│ ├── architecture/ # Architecture documentation
│ ├── quick-start/ # Quick start guides
│ └── tools/ # Tools documentation
├── playbook.yml # Antora playbook configuration
├── build_local_site.sh # Build script
└── server.sh # Local server script
Documentation is written in AsciiDoc format. Key files:
-
components/StarknetAgent/antora.yml
: Defines component metadata and navigation -
components/StarknetAgent/modules/ROOT/nav.adoc
: Main navigation structure -
components/StarknetAgent/modules/ROOT/pages/index.adoc
: Home page
-
antora: command not found
-
Solution: Install Antora globally
bash npm install -g @antora/cli @antora/site-generator
-
-
Missing dependencies
-
Solution: Run npm install
bash npm install
-
-
Create a new branch for your changes
-
Make your changes
-
Test locally by building the documentation
-
Submit a pull request
-
[Antora Documentation](https://docs.antora.org/antora/latest/)
-
[AsciiDoc Syntax Quick Reference](https://docs.asciidoctor.org/asciidoc/latest/syntax-quick-reference/)
If you encounter any issues or need assistance: 1. Check the Common Issues section above 2. Create an issue in the repository 3. Reach out to the maintainers