www.konxc.space - Website Resmi KonXC
Website resmi KonXC yang dibangun menggunakan Astro dan di-deploy ke GitHub Pages.
🌐 Live Site: https://www.konxc.space
Repository ini berisi source code untuk website resmi KonXC. Website ini dibangun menggunakan:
- Astro - Static site generator
- Tailwind CSS - CSS framework
- pnpm - Package manager
- GitHub Pages - Hosting platform (manual deployment)
- Node.js (versi 20 atau lebih baru)
- pnpm:
npm install -g pnpm - Git
# Clone repository
git clone https://github.com/konxc/konxc.github.io.git
cd konxc.github.io
# Install dependencies
pnpm install
# Start development server
pnpm devWebsite akan tersedia di http://localhost:4321
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:4321 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm astro ... |
Run CLI commands like astro add, astro check |
Karena masalah billing dengan GitHub Actions, deployment dilakukan secara manual menggunakan script yang telah disediakan.
Branch gh-pages hanya berisi hasil build, tidak ada source code!
# Linux/macOS/Windows (Git Bash)
bash ./scripts/deploy-manual.shScript akan otomatis:
- Pull latest changes dari main
- Build project
- Deploy hanya hasil build ke branch gh-pages
- Push ke GitHub Pages
Lihat docs/DEPLOY_MANUAL.md untuk dokumentasi deploy yang lebih detail.
/
├── public/ # Static assets
├── src/
│ ├── pages/ # Astro pages
│ └── components/ # Reusable components
├── scripts/ # Deployment scripts
├── docs/ # Documentation
├── dist/ # Build output (git ignored)
├── astro.config.mjs # Astro configuration
├── tailwind.config.js # Tailwind configuration
└── package.json # Dependencies
- main: Development branch (source code)
- gh-pages: Deployment branch (build files only)
-
Development Workflow:
- Buat perubahan di branch
main - Test lokal dengan
pnpm dev - Test build dengan
pnpm build - Deploy menggunakan script manual
- Buat perubahan di branch
-
Update Content:
- Edit file di
src/pages/untuk halaman baru - Edit file di
src/components/untuk komponen - Asset static (gambar, dll) taruh di
public/
- Edit file di
-
Styling:
- Gunakan Tailwind CSS classes
- Custom CSS bisa ditambahkan di komponen Astro
-
Deployment Checklist:
- Pastikan perubahan sudah di-commit di branch main
- Test build lokal dengan
pnpm build - Jalankan script deploy manual
- Verifikasi website di https://www.konxc.space (tunggu 2-5 menit)
- Build Error: Periksa syntax Astro dan dependencies
- Deploy Error: Pastikan pnpm terinstall dan script executable
- Website tidak update: Tunggu 2-5 menit, GitHub Pages butuh waktu
- Lihat dokumentasi lengkap:
docs/TROUBLESHOOTING.md
Untuk pertanyaan atau masalah:
- Periksa dokumentasi di folder
docs/ - Buat issue di repository ini
- Hubungi tim development
Repository ini adalah milik KonXC. Semua hak cipta dilindungi.