Personal blog and portfolio website built with SvelteKit and MDX
_dev_tokiory/
āāā content/
ā āāā articles/ # Blog articles in MDX format
ā āāā drafts/ # Draft articles
ā āāā *.mdx # Published articles
āāā src/
ā āāā lib/
ā ā āāā components/ # Reusable Svelte components
ā ā āāā modules/ # Feature modules
ā āāā routes/
ā ā āāā (standard)/ # Main site routes
ā ā āāā (cv)/ # CV/Resume routes
ā ā āāā api/ # API endpoints
ā āāā styles/ # Global styles
āāā static/ # Static assets
āāā docs/ # Documentation and assets
Clone the repository:
git clone https://github.com/tokiory/dev-tokiory.git
cd dev-tokiory
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 lintingArticles 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
---
Your article content here with support for:
- Markdown syntax
- Embedded Svelte components
- Code blocks with syntax highlighting
The project uses Shiki for syntax highlighting with custom transformers:
// [!code focus]
// [!code ++]
and // [!code --]
// [!code highlight]
The project uses UnoCSS with:
Key configuration files:
svelte.config.js
- SvelteKit and MDsveX configurationuno.config.ts
- UnoCSS configurationvite.config.ts
- Vite build configurationtsconfig.json
- TypeScript configurationThe 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 --prod
While this is a personal blog, suggestions and bug reports are welcome! Please:
This project is open source and available under the MIT License.
Built with ā¤ļø by tokiory