Documentation built with Docusaurus and React components.
yarn install # Install dependencies
yarn start # Start dev server
yarn build # Build for production# Development
yarn start # Hot reloading dev server
yarn build # Production build
yarn serve # Serve built site locally
# Testing
yarn test # Run all tests
yarn test:watch # Tests in watch mode
yarn test:coverage # Tests with coverage
# Quality
yarn lint # Check code quality
yarn lint-fix # Auto-fix issues
yarn spellcheck # American English validation
yarn lint-prose # Prose style checks (Vale)docs/
βββ content/ # MDX documentation files
βββ src/components/ # React components (VerticalTabs, etc.)
βββ tests/
β βββ unit/ # Jest tests
βββ .vale/Vortex/ # Prose style rules
βββ .vale.ini # Prose style configuration
βββ jest.config.js # Test configuration
βββ cspell.json # Spellcheck configuration
import { VerticalTabs, VerticalTab, VerticalTabPanel } from '@site/src/components/VerticalTabs';
<VerticalTabs>
<VerticalTab>π§ Title | Subtitle description</VerticalTab>
<VerticalTabPanel>
Content for this tab...
</VerticalTabPanel>
</VerticalTabs>Example component test:
import { render, screen } from '@testing-library/react';
test('component renders correctly', () => {
render(<Component />);
expect(screen.getByText('Expected text')).toBeInTheDocument();
});- Use American spelling (organize, color, behavior)
- Combine Markdown with React components in MDX
- Include practical bash/JavaScript examples
yarn lint && yarn spellcheck && yarn lint-prose && yarn test && yarn build