This repository contains the source code for Intuition's technical documentation site, built using Docusaurus and integrated with Notion for content management. Implementation details on the document publishing pipeline can be found in doc-publishing-process.md
.
The documentation is organized into three main sections:
- Concepts: Core concepts and general documentation
- Contracts: Smart contract documentation and protocol specifications
- Dev Tools: Developer tools and integration guides
The site uses a hybrid approach for documentation management:
- Content is authored and maintained in Notion
- GitHub Actions automatically sync Notion content to the repository
- Docusaurus builds and serves the documentation site
- Docusaurus Configuration: Multi-instance setup with three documentation sections
- Notion Integration: Using
@sillsdev/docu-notion
for Notion-to-Markdown conversion - GitHub Actions: Automated workflow for content syncing and deployment
- Install dependencies:
yarn install
- Pull content from Notion (requires proper environment variables):
yarn pull:all
- Deploy to localhost:
yarn start
The following environment variables are required for Notion integration:
DOCU_NOTION_INTEGRATION_TOKEN
: Notion API integration tokenDOCU_NOTION_CONCEPT_ROOT_PAGE
: Root page ID for Concepts sectionDOCU_NOTION_DEV_ROOT_PAGE
: Root page ID for Dev Tools sectionDOCU_NOTION_CONTRACTS_ROOT_PAGE
: Root page ID for Contracts section
docs/
├── concepts/ # Main documentation
├── dev/ # Developer tools documentation
└── contracts/ # Smart contract documentation
The documentation is automatically deployed through GitHub Actions when changes are pushed to the main branch. The workflow:
- Pulls content from Notion
- Converts to Markdown
- Commits to the gh-pages branch
- Deploys to GitHub Pages
Functional changes:
- Create a new branch from
main
- Make your changes
- Submit a pull request
Content changes: For content changes, please open an issue with the suggested content and a team member will make updates to Notion if the change is approved.