7 Star 34 Fork 9

xcatliu / pagic

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Pagic

A static site generator powered by Deno + React

简体中文 | Website | Docs | Config | Demos | Themes | Plugins | Blog

deno pagic discord ci

Features

Easy to configure

  • Convention over configuration
  • Single config file pagic.config.ts
  • Intuitive design

Support md and tsx

  • Render md/tsx to static HTML page
  • Support React Hooks
  • Pre-render to static HTML, run as an SPA once loaded

Themes and plugins

  • Official themes default/docs/blog with dark mode
  • Combine plugins to build process
  • Import third-party themes or plugins through URL

Demos

Get started

Installation

# Install deno https://deno.land/#installation
curl -fsSL https://deno.land/x/install/install.sh | sh
# Install Pagic
deno install --unstable --allow-read --allow-write --allow-net --allow-run --name=pagic https://deno.land/x/pagic/mod.ts

Initialize the project

To use pagic to build a static website, the project must include at least one pagic.config.ts config file and one md/tsx page file:

site/
├── pagic.config.ts
└── README.md

You can create the above site project by running the following command:

mkdir site && cd site && echo "export default {};" > pagic.config.ts && echo "# Hello world" > README.md

Run pagic

pagic build --watch --serve

More information

Special thanks

  • StrawBerry Icon: A free and open iconic font library for developer and creator

Backers

Backers

Contributors

Contributors

LICENSE

MIT


Have fun with Pagic!

Comments ( 3 )

Sign in for post a comment

About

Deno + React 驱动的静态网站生成器 spread retract
TypeScript and 3 more languages
MIT
Pages: https://pagic.cn
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
TypeScript
1
https://gitee.com/xcatliu/pagic.git
git@gitee.com:xcatliu/pagic.git
xcatliu
pagic
pagic
master

Search