Appearance
Publishing the Help Documentation
This folder contains the user-facing help documentation for OnixFeed. The docs are written in Markdown and published using VitePress - a static site generator with full SEO support and clean URLs.
How It Works
VitePress builds your Markdown files into static HTML pages with proper routes (e.g., /getting-started instead of /#/getting-started). This makes the content fully crawlable by search engines.
Key files:
.vitepress/config.ts- Site configuration, navigation, sidebar.vitepress/theme/custom.css- OnixFeed branding and stylesindex.md- Home page with hero section*.md- Documentation pagespublic/images/- Static assets (logo, screenshots)
Local Development
bash
# Install dependencies
npm install
# Start dev server with hot reload
npm run devThen open http://localhost:5173
Building for Production
bash
# Build static files
npm run build
# Preview the build locally
npm run previewThe build output goes to .vitepress/dist/.
Deploying to Production
Option 1: Hestia Server (Recommended)
- Create subdomain
help.onixfeed.comin Hestia - Build locally:
npm run build - Upload
.vitepress/dist/contents to thepublic_htmlfolder
bash
# From your local machine
npm run build
rsync -avz .vitepress/dist/ user@server:/home/user/web/help.onixfeed.com/public_html/Option 2: GitHub Pages
- Push to GitHub
- Add GitHub Actions workflow (see below)
- Settings → Pages → Source: GitHub Actions
- Custom domain:
help.onixfeed.com
GitHub Actions workflow (.github/workflows/deploy.yml):
yaml
name: Deploy VitePress
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist
- uses: actions/deploy-pages@v4Option 3: Vercel/Netlify
- Connect repo
- Build command:
npm run build - Output directory:
.vitepress/dist - Custom domain in dashboard
Customization
Styling
Edit .vitepress/theme/custom.css:
css
:root {
--vp-c-brand-1: #FAC525; /* Primary color (yellow) */
--vp-c-brand-2: #BB3E03; /* Secondary color (orange) */
--vp-sidebar-bg-color: #f5f0e5; /* Sidebar background */
}Dark mode is automatically handled with .dark class overrides.
Navigation
Edit .vitepress/config.ts:
nav- Top navigation barsidebar- Left sidebar menu structure
Adding Pages
- Create a new
.mdfile in the root - Add it to the
sidebararray inconfig.ts - The dev server will hot reload
Adding Images
- Place images in
public/images/ - Reference in Markdown:
 - Images in
public/are served from the root URL
File Structure
docs/help-vite/
├── .vitepress/
│ ├── config.ts # Site configuration
│ ├── theme/
│ │ ├── index.ts # Theme entry
│ │ └── custom.css # OnixFeed branding
│ ├── dist/ # Build output (gitignored)
│ └── cache/ # Build cache (gitignored)
├── public/
│ └── images/ # Static assets
│ └── onixfeed-help-logo.png
├── index.md # Home page
├── 01-getting-started.md
├── 02-managing-books.md
├── 03-contributors.md
├── 04-onix-feeds.md
├── 05-import-export.md
├── 06-stock-inventory.md
├── 07-reviews-content.md
├── 08-ecommerce-shopify.md
├── 09-account-settings.md
├── 10-troubleshooting.md
├── 11-onix-reference.md
├── 12-onixfeed-woo.md
├── package.json
└── PUBLISHING.md # This fileFeatures Included
- Local Search - Full-text search across all pages
- Dark Mode - Toggle in the nav bar
- Syntax Highlighting - For code blocks
- Responsive - Mobile-friendly layout
- SEO - Static HTML with proper meta tags
Content Guidelines
When adding or editing documentation:
- Use clear headings - H2 for main sections, H3 for subsections
- Include screenshots - Place in
public/images/ - Link between docs - Use relative links
[See Troubleshooting](/10-troubleshooting) - Keep it concise - Users want answers, not essays
- Update config.ts - Add new pages to the sidebar
Related
- Support System Documentation - See
docs/future-dev/UVDESK-SUPPORT-HUB.mdfor ticketing system (Zoho Desk)
