Deploy Statis & Ekspor Template Mintlify
Anda dapat langsung mempublikasikan portal dokumentasi ini ke penyedia hosting statis/edge favorit Anda atau mengekspor berkas docs.json & README.md siap commit ke repositori wisatamasalalu/unul.
Auto-Konfigurasi Lintas Platform via .env.example
Portal dokumentasi UNUL kini dilengkapi detektor lingkungan otomatis di next.config.ts yang membaca variabel DEPLOY_TARGET, NEXT_PUBLIC_BASE_PATH, dan NEXT_PUBLIC_ENABLE_AI. Dengan nilai bawaan DEPLOY_TARGET=auto, satu basis kode yang sama otomatis menyesuaikan mode build untuk GitHub Pages, Vercel, Netlify, Cloudflare Pages, maupun server AI Studio.
Seluruh tautan internal memakai navigasi History API sisi-klien tanpa background fetch RSC payload, sehingga aman dari galat jaringan iframe sekaligus bekerja instan di hosting statis seperti GitHub Pages.
Opsi Deployment: GitHub Pages, Netlify, Vercel & Cloudflare Pages
Pilih strategi deployment sesuai kebutuhan fitur: gunakan Next.js full-stack (Vercel / Cloudflare / Netlify) jika ingin tetap menjalankan Asisten AI Gemini di server, atau gunakan GitHub Pages static export / paket ZIP MDX Mintlify untuk dokumentasi statis murni.
| Platform | Deteksi Otomatis | Output Build | Status Fitur AI Server |
|---|---|---|---|
| Vercel | VERCEL=1 (auto) | standalone / Next.js | Aktif Penuh (Serverless / Edge) |
| Netlify | NETLIFY=true (auto) | @netlify/plugin-nextjs | Aktif Penuh (Netlify Functions) |
| Cloudflare Pages | CF_PAGES=1 (auto) | Pages Functions / Next | Aktif Penuh (Pages Functions) |
| GitHub Pages | GITHUB_ACTIONS=true / DEPLOY_TARGET=github-pages | out/ (output: export) | Mode Statis (Kiamat Lab, Cari, SVG & ZIP aktif) |
| Mintlify Cloud | Langsung dari repo GitHub | docs.json + *.mdx | Built-in Mintlify |
Konfigurasi Auto-Deploy per Platform Hosting
Gunakan .env.example untuk deteksi otomatis lintas platform atau salin konfigurasi spesifik penyedia hosting berikut.
# GEMINI_API_KEY: Server-side only (Vercel / Netlify / Cloudflare / AI Studio)GEMINI_API_KEY="MY_GEMINI_API_KEY" # DEPLOY_TARGET: auto | github-pages | vercel | netlify | cloudflare | standalone# Nilai "auto" otomatis mendeteksi penyedia hosting dari environment CI/CD.DEPLOY_TARGET="auto" # NEXT_PUBLIC_BASE_PATH: Isi "/nama-repo" untuk GitHub Pages project site, atau "" untuk domain rootNEXT_PUBLIC_BASE_PATH="" # NEXT_PUBLIC_ENABLE_AI: auto | true | false# Pada GitHub Pages (static export), "auto" otomatis beralih ke mode dokumentasi statis.NEXT_PUBLIC_ENABLE_AI="auto"Unduh Paket MDX Mintlify Siap Pakai (19 Berkas)
Berisi docs.json, README.md, .env.example, alur kerja GitHub Pages, dan seluruh 15 berkas .mdx dengan frontmatter & tag komponen Mintlify (<CodeGroup>, <Tip>, <Note>).
{
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"name": "UNUL Docs",
"colors": {
"primary": "#0D9373",
"light": "#10B981",
"dark": "#0D9373"
},
"navigation": {
"tabs": [
{
"tab": "Dokumentasi",
"groups": [
{
"group": "Mulai Cepat",
"pages": [
"pendahuluan",
"instalasi-cli"
]
},
{
"group": "Inti Bahasa",
"pages": [
"sintaksis-dasar",
"aliran-kontrol",
"fungsi-pipa",
"hukum-tabu"
]
},
{
"group": "Sistem & Memori",
"pages": [
"memori-array",
"pustaka-sowan",
"konkurensi-portal"
]
},
{
"group": "UI, Data & OS",
"pages": [
"otim-snul-ui",
"contoh-game-tui-gui",
"imah-kripto-anu",
"jaringan-os-biner"
]
},
{
"group": "Referensi & Deploy",
"pages": [
"referensi-bawaan",
"deploy-mintlify"
]
}
]
}
]
},
"navbar": {
"links": [
{
"label": "GitHub",
"href": "https://github.com/wisatamasalalu/unul"
}
],
"primary": {
"type": "button",
"label": "Mulai Cepat",
"href": "/pendahuluan"
}
},
"footer": {
"socials": {
"github": "https://github.com/wisatamasalalu/unul"
}
}
}