portfolio-xs
v3.3.3
Published
This is a tool to generate portfolio based with your markdown file
Readme
🧰 Portfolio Generator
Generate a beautiful and customizable portfolio site from Markdown files — fast, flexible, and fully static.
📦 Installation
Download this package:
npm install portfolio-xs -g✨ Features
- Write each project in its own folder using simple
Markdown - Auto-generate a stylish React-based portfolio site
- Live preview locally
- One-click deploy to GitHub Pages or any static host
🚀 Usage Guide
1. Initialize a New Project
Create a new project folder under doc/ with starter content:
portfolio initThis creates:
my-project/
|── about.md # editable content
└── doc2. Add your project
Add your new project under the doc fold:
portfolio add 'The name of your project'3. Customize the Markdown
Open my-project/doc and update the frontmatter and content:
---
title: My Project
description: A short summary here
category: Web
createDate: 2024-06-10
updateDate: 2024-06-12
---4. Add an About Section
To customize the "About" section in the sidebar, create a about.md file in the lib/ folder:
lib/about.mdWrite your personal introduction in plain Markdown:
# 👋 Hello!
I'm Bowen, a developer passionate about building beautiful and functional software.
- 🔭 I’m currently working on ski video AI analysis
- 🌱 I’m exploring advanced motion estimation and pose modeling
- 📫 Reach me at: [email protected]
This file will be converted into a React component and automatically injected into the sidebar of the layout.
✅ You can even use raw HTML or / tags in about.md for redirect or custom logic if needed.
5. Update Global Settings
Edit lib/setting.json to update:
- Website title
- Favicon
- Other metadata
{
"title": "Bowen's Portfolio",
"favicon": "./lib/assets/favicon.png",
"description": "A personal site showcasing my projects and skills"
}6. Generate the Site
Compile the markdown content and metadata into a static site:
portfolio generate7. Preview Locally
Launch a local dev server to view and test:
portfolio previewVisit: http://localhost:3000
8. Build for Deployment
Compile final static assets using Webpack:
portfolio build9. Deploy to GitHub Pages
You can push the contents of the dist/ folder to your GitHub Pages repository:
cp -r dist/* ../taobowen.github.io/
cd ../taobowen.github.io/
git add .
git commit -m "Deploy portfolio"
git push origin main🧪 Available Commands
| Command | Description |
|--------------------|---------------------------------------------|
| portfolio init | Create a new markdown project |
| portfolio add 'The name of your project' | Add your new project under the doc fold |
| portfolio generate | Convert markdown into React components and Build static files for deployment |
| portfolio preview | Start local development server |
| portfolio build | Compile final static assets using Webpack |
👨💻 Author
梁家河的扛麦郎
GitHub: @taobowen
📄 License
ISC © 2025 Bowen Tao
