Something went wrong. Try again.
My personal website, blog and portfolio ankddev.fyi
Something went wrong. Try again.
Files
- Svelte 68%
- TypeScript 25%
- JavaScript 4%
- CSS 3%
- HTML <1%
README.md
/dev/ankddev #
ankddev's personal site, blog and portfolio.
Getting Started #
Prerequisites #
- Bun (recommended) or Node.js 18+
- Git
Installation #
- 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
Available Scripts #
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
Writing Articles #
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 highlighting
Code Highlighting #
The project uses Shiki for syntax highlighting with custom transformer:
- Focus notation:
// [!code focus]
Styling #
The project uses UnoCSS with:
- Custom presets for icons and styling
- CSS variables for theming
- Responsive design utilities
- Variable fonts
Configuration #
Key configuration files:
svelte.config.js- SvelteKit and MDsveX configurationuno.config.ts- UnoCSS configurationvite.config.ts- Vite build configurationtsconfig.json- TypeScript configuration
Deployment #
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.
Manual Deployment #
To deploy manually:
# Build the project:
bun run build
# Deploy to Vercel:
vercel --prod
Contributing #
While 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
License #
This project is available under the MIT License.