Skip to content

tokiory/dev-tokiory

Repository files navigation

Logo

/dev/tokiory

Personal blog and portfolio website built with SvelteKit and MDX

Deployed on Vercel Built with SvelteKit


πŸš€ Features

  • βš™οΈ Modern Tech Stack: Built with SvelteKit, TypeScript, and UnoCSS
  • πŸ“ MDX Support: Write articles in Markdown with embedded Svelte components
  • 🎨 Syntax Highlighting: Code blocks with Shiki highlighter and custom transformers
  • πŸ” SEO Optimized: Automatic sitemap generation and meta tags
  • πŸ“± Responsive Design: Mobile-first design with UnoCSS
  • ⚑ Fast Performance: Optimized builds and Vercel deployment
  • πŸ›‘οΈ Type Safety: Full TypeScript support throughout the codebase

πŸ› οΈ Tech Stack

  • Framework: SvelteKit
  • Styling: UnoCSS with custom presets
  • Content: MDsveX for MDX support
  • Syntax Highlighting: Shiki
  • Icons: Iconify
  • Fonts: Variable fonts from Fontsource
  • Deployment: Vercel
  • Package Manager: Bun

πŸ“ Project Structure

_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

🚦 Getting Started

Prerequisites

  • Bun (recommended) or Node.js 18+
  • Git

Installation

  1. Clone the repository:
git clone https://github.com/tokiory/dev-tokiory.git
cd dev-tokiory
  1. Install dependencies:
bun install
  1. Start the development server:
bun run dev
  1. Open your browser and navigate to http://localhost:5173

Available Scripts

  • bun run dev - Start development server
  • bun run build - Build for production
  • bun run preview - Preview production build locally
  • bun run check - Run type checking 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
---

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 transformers:

  • Focus notation: // [!code focus]
  • Diff notation: // [!code ++] and // [!code --]
  • Highlight notation: // [!code highlight]

🎨 Styling

The project uses UnoCSS with:

  • Custom presets for icons and styling
  • CSS variables for theming
  • Responsive design utilities
  • Variable fonts (Manrope, Martian Mono, Podkova, Iosevka)

πŸ”§ Configuration

Key configuration files:

  • svelte.config.js - SvelteKit and MDsveX configuration
  • uno.config.ts - UnoCSS configuration
  • vite.config.ts - Vite build configuration
  • tsconfig.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:

  1. Build the project:
bun run build
  1. Deploy to Vercel:
vercel --prod

🀝 Contributing

While this is a personal blog, suggestions and bug reports are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

πŸ“„ License

This project is open source and available under the MIT License.

πŸ”— Links


Built with ❀️ by tokiory

About

πŸ¦† The third generation of my static blog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published