This project uses VitePress to build and manage documentation. Below are the steps to get started.
-
Clone the Repository
git clone https://github.com/focai-acc/focai-acc.github.io cd focai-acc.github.io
-
Install Dependencies Make sure you have Yarn installed. Then run:
yarn install
-
Start the Development Server
yarn dev
To build the documentation for production, run:
yarn build
To preview the built documentation, run:
yarn preview
The documentation is organized in the following structure:
docs/
├── collection/ # Product collection
│ ├── focEliza.md # Main product overview
│ └── plugins/ # Plugin documentation
│ ├── verifiable-log.md
│ ├── onchain-da.md
│ └── ...
├── dev-community/ # Developer community docs
│ ├── introduction.md
│ ├── quick-start.md
│ ├── development-process.md
│ └── contributing.md
└── zh/ # Chinese documentation
├── collection/ # Mirror of English collection
└── dev-community/ # Mirror of English dev-community
When adding new documentation:
- Place English documentation in the root directory
- Place Chinese documentation in the
/zh
directory - Maintain the same file structure in both directories
- Update the navigation menus accordingly
Edit .vitepress/config.mts
to update the navigation menu:
// English navigation
themeConfig: {
nav: [
{
text: 'Collection',
link: '/collection/focEliza'
},
{
text: 'Dev Community',
link: '/dev-community'
}
]
}
// Chinese navigation
locales: {
zh: {
themeConfig: {
nav: [
{
text: '产品集',
link: '/zh/collection/focEliza'
},
{
text: '开发者社区',
link: '/zh/dev-community'
}
]
}
}
}
Configure the sidebar in .vitepress/config.mts
:
// English sidebar
sidebar: {
'/collection': [
{
text: 'Overview',
items: [
{ text: 'focEliza', link: '/collection/focEliza' }
]
},
{
text: 'Plugins',
items: [
{ text: 'Verifiable Log', link: '/collection/plugins/verifiable-log' }
]
}
]
}
// Chinese sidebar
'/zh/collection': [
{
text: '概述',
items: [
{ text: 'focEliza', link: '/zh/collection/focEliza' }
]
}
]
For more details, refer to the VitePress documentation.