Deployment

Deployment Guide

Learn how to deploy your XD Wiki documentation to different hosting platforms.

Netlify Deployment

The easiest way to deploy your documentation is using Netlify:

1. Connect Repository

  1. Go to Netlify
  2. Click “New site from Git”
  3. Connect your GitHub repository

2. Build Settings

Configure the build settings:

  • Build command: hugo --gc --minify
  • Publish directory: public
  • Hugo version: Set HUGO_VERSION environment variable

3. Environment Variables

Add these environment variables in Netlify:

HUGO_VERSION=0.125.7
HUGO_ENV=production

GitHub Pages

For GitHub Pages deployment:

  1. Enable GitHub Pages in repository settings
  2. Use GitHub Actions for building
  3. Set up a workflow file

Manual Deployment

Build the site locally and upload:

hugo --gc --minify
# Upload the contents of the 'public' directory

Custom Domain

Configure a custom domain in your hosting provider’s settings.