Follow these steps to deploy the Pixieset API documentation to GitHub Pages.
- GitHub account
- Git installed locally
- Node.js installed (v18 or higher)
- Go to https://github.com/new
- Repository name:
pixieset-api-docs - Description: "Unofficial API documentation for Pixieset Studio and Gallery APIs"
- Public repository (required for GitHub Pages free tier)
- Do NOT initialize with README (we already have one)
- Click "Create repository"
# Navigate to the project directory
cd /Users/trozz/Desktop/pixieset/pixieset-api-docs
# Initialize git repository
git init
# Add all files
git add .
# Create initial commit
git commit -m "Initial commit: Pixieset API documentation site"
# Add GitHub repository as remote
git remote add origin https://github.com/trozz/pixieset-api-docs.git
# Push to main branch
git push -u origin main- The workflow file is already created at
.github/workflows/deploy.yml - After pushing to GitHub, go to your repository
- Navigate to Settings → Pages
- Under "Build and deployment", select:
- Source: GitHub Actions
- The workflow will automatically run when you push to main branch
If you prefer the traditional approach:
- Rename
.github/workflows/deploy-gh-pages.yml.alternativeto.github/workflows/deploy.yml - Delete the original
deploy.yml - Push changes to GitHub
- After the first deployment, go to Settings → Pages
- Under "Build and deployment", select:
- Source: Deploy from a branch
- Branch: gh-pages
- Folder: / (root)
- Go to the Actions tab in your repository
- You should see the "Deploy to GitHub Pages" workflow running
- Wait for it to complete (usually takes 2-3 minutes)
- Your site will be available at: https://trozz.github.io/pixieset-api-docs/
If you want to deploy manually without GitHub Actions:
# Build the site
npm run build
# Deploy to gh-pages branch
GIT_USER=trozz npm run deploy- Check Node.js version:
node --version(should be v18+) - Clear cache:
npm run clear - Reinstall dependencies:
rm -rf node_modules && npm install
- Ensure the repository name in
docusaurus.config.tsmatches your GitHub repo - Check that
baseUrlis set correctly (/pixieset-api-docs/) - Wait a few minutes for GitHub Pages to propagate
- Ensure your repository is public
- Check that GitHub Actions has proper permissions in Settings → Actions → General
To update the documentation after initial deployment:
- Make changes to markdown files in
docs/directory - Test locally:
npm start - Commit and push changes:
git add . git commit -m "Update: description of changes" git push
- GitHub Actions will automatically rebuild and deploy
To use a custom domain:
- Add a
CNAMEfile in thestatic/directory with your domain - Update
docusaurus.config.ts:url: 'https://your-domain.com', baseUrl: '/',
- Configure DNS settings with your domain provider
- Add custom domain in GitHub Pages settings