Unified documentation site for PDFDancer SDK across Java, Python, and TypeScript.
This repository contains the API documentation for PDFDancer SDK, built with Docusaurus. The docs are automatically synced from the SDK repositories using git submodules and deployed via GitHub Actions.
- Node.js >= 20.0
- npm or yarn
- Git
git clone https://github.com/MenschMachine/pdfdancer-api-docs.git
cd pdfdancer-api-docs
git submodule update --init --recursivenpm installnpm startThis starts a local development server at http://localhost:3000 with hot reload enabled.
pdfdancer-api-docs/
├── docs/ # Documentation content
│ ├── getting-started.md
│ ├── authentication.md
│ ├── java/ # Java SDK docs
│ ├── python/ # Python SDK docs
│ └── typescript/ # TypeScript SDK docs
├── src/
│ ├── components/ # Custom React components
│ ├── css/ # Custom styles (Cyber Orange theme)
│ └── pages/ # Custom pages
├── static/ # Static assets (images, logos)
├── external/ # Git submodules for SDK repos
│ ├── MenschMachine-java/
│ ├── MenschMachine-python/
│ └── MenschMachine-typescript/
├── docusaurus.config.ts # Docusaurus configuration
└── sidebars.ts # Sidebar structure
- Create or edit markdown files in the
docs/directory - Update
sidebars.tsif adding new pages - Test locally with
npm start - Run type checking:
npm run typecheck - Build and verify:
npm run build
Pull latest changes from SDK repositories:
git submodule update --remote --merge
git add .
git commit -m "docs: sync SDK documentation"| Command | Description |
|---|---|
npm start |
Start development server |
npm run build |
Build static site for production |
npm run serve |
Serve built site locally |
npm run typecheck |
Run TypeScript type checking |
npm run clear |
Clear Docusaurus cache |
The site uses a custom "PDFDancer Cyber Orange" theme defined in src/css/custom.css. Key features:
- Orange color scheme (
#ffa500) - Sora font family for UI
- JetBrains Mono for code
- Dark mode with cyber aesthetics
- Glowing effects and transitions
To modify the theme, edit src/css/custom.css.
The site deploys automatically via GitHub Actions on push to any branch. The workflow:
- Checks out code with submodules
- Installs dependencies
- Builds the site
- Deploys to GitHub Pages
Manual deployment:
npm run build
npm run serve # Test the build locally firstIf submodules are not loading:
git submodule update --init --recursive --forceClear cache and rebuild:
npm run clear
npm install
npm run buildChange the port:
npm start -- --port 3001See individual SDK repositories for license information.