Repository
Current version released
4 years ago
Dependencies
deno.land/x
jspm.dev
front-matter@4.0.2html-to-text@6.0.0markdown-it@11.0.1react-element-to-jsx-string@14.3.1react-html-parser@2.0.2typescript@4.0.3
other
https://cdn.pagic.org/@types/react-dom@16.9.8/index.d.tshttps://cdn.pagic.org/@types/react-dom@16.9.8/server/index.d.tshttps://cdn.pagic.org/@types/react@16.9.50/index.d.tshttps://cdn.pagic.org/i18next@19.8.1/esnext/i18next.jshttps://cdn.pagic.org/react-dom@16.13.1/esnext/react-dom.development.jshttps://cdn.pagic.org/react-dom@16.13.1/esnext/server.development.jshttps://cdn.pagic.org/react-i18next@11.7.3/Trans.jshttps://cdn.pagic.org/react@16.13.1/esnext/react.development.js
std
Versions
- v1.6.3Latest
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-beta.3
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-alpha.4
- v1.0.0-alpha.3
- v1.0.0-alpha.2
- v1.0.0-alpha.1
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v1.9.2
- v0.9.1
- v0.9.0
- v0.8.7
- v0.8.7
- v0.8.7
- v0.8.7
- v0.8.7
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.30
- v0.6.0
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
- 0.7.29
- 0.7.28
- 0.7.27
- 0.7.26
- 0.7.25
- 0.7.24
- 0.7.23
- 0.7.22
- 0.7.21
- 0.7.20
- 0.7.19
- 0.7.18
- 0.7.17
- 0.7.16
- 0.7.15
- 0.7.14
- 0.7.14-debug.1
- 0.7.13
- 0.7.12
- 0.7.11
- 0.7.10
- 0.7.9
- 0.7.8
- 0.7.7
- 0.7.6
- 0.7.5
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7.0
- 0.7.0-debug.2
- 0.7.0-debug.1
agic
A static site generator powered by Deno + React
简体中文 | Website | Docs | Config | Demos | Themes | Plugins | Blog
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
- Deno X ranking (GitHub)
- TypeScript 入门教程 (GitHub)
- 流浪小猫的博客 (GitHub)
- Deno 钻研之术 (GitHub)
- Deno 中文手册 (GitHub)
- JavaScript 20 年 (GitHub)
- ECMAScript+ 面试宝典 (GitHub)
- Add my site as a demo 😝
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
pagic
Run pagic build --watch --serve
More information
- Visit the official website
- Read the documentation
- Configure your site
- Checkout the theme list and the plugin list
- Read the blog of Pagic
Special thanks
- StrawBerry Icon: A free and open iconic font library for developer and creator
Backers
Contributors
LICENSE
Have fun with Pagic!