Skip to content

Latest commit

Β 

History

History

docs

README.md

Vortex Documentation Development

Documentation built with Docusaurus and React components.

Quick Start

yarn install           # Install dependencies
yarn start            # Start dev server
yarn build            # Build for production

Development Commands

# 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)

Project Structure

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

Component Usage

VerticalTabs

import { VerticalTabs, VerticalTab, VerticalTabPanel } from '@site/src/components/VerticalTabs';

<VerticalTabs>
  <VerticalTab>πŸ’§ Title | Subtitle description</VerticalTab>
  <VerticalTabPanel>
    Content for this tab...
  </VerticalTabPanel>
</VerticalTabs>

Writing Tests

Example component test:

import { render, screen } from '@testing-library/react';

test('component renders correctly', () => {
  render(<Component />);
  expect(screen.getByText('Expected text')).toBeInTheDocument();
});

Content Guidelines

  • Use American spelling (organize, color, behavior)
  • Combine Markdown with React components in MDX
  • Include practical bash/JavaScript examples

Pre-commit Checklist

yarn lint && yarn spellcheck && yarn lint-prose && yarn test && yarn build