ankddev's personal site, blog and portfolio.
- Bun (recommended) or Node.js 18+
- Git
- Clone the repository:
git clone https://github.com/ankddev/website
cd website- Install dependencies:
bun install- Start the development server:
bun run dev- Open your browser and navigate to
http://localhost:5173
bun run dev- Start development serverbun run build- Build for productionbun run preview- Preview production build locallybun run check- Run type checking and lintingbun run check:watch- Run type checking and linting in backgroundbun run format- Format with Prettierbun run lint- Check formatting and linting
Articles are written in MDX format and stored in the content/articles/ directory. Each article should include frontmatter with metadata:
---
title: Your Article Title
description: Brief description of the article
date: 2024-01-15
tags:
- tag1
- tag2
pinned: false
---
Your article content here with support for:
- Markdown syntax
- Embedded Svelte components
- Code blocks with syntax highlightingThe project uses Shiki for syntax highlighting with custom transformer:
- Focus notation:
// [!code focus]
The project uses UnoCSS with:
- Custom presets for icons and styling
- CSS variables for theming
- Responsive design utilities
- Variable fonts
Key configuration files:
svelte.config.js- SvelteKit and MDsveX configurationuno.config.ts- UnoCSS configurationvite.config.ts- Vite build configurationtsconfig.json- TypeScript configuration
The site is automatically deployed to Vercel on push to the main branch. The deployment configuration is handled by the Vercel adapter in svelte.config.js.
To deploy manually:
# Build the project:
bun run build
# Deploy to Vercel:
vercel --prodWhile this is a personal website and blog, suggestions and bug reports are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is available under the MIT License.