Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xcatliu/pagic
A static site generator powered by Deno + React
https://github.com/xcatliu/pagic
deno markdown pagic static-site-generator
Last synced: 6 days ago
JSON representation
A static site generator powered by Deno + React
- Host: GitHub
- URL: https://github.com/xcatliu/pagic
- Owner: xcatliu
- License: mit
- Created: 2017-03-01T10:40:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-19T01:16:18.000Z (about 1 year ago)
- Last Synced: 2024-10-29T17:28:27.297Z (about 1 month ago)
- Topics: deno, markdown, pagic, static-site-generator
- Language: JavaScript
- Homepage: https://pagic.org
- Size: 6.48 MB
- Stars: 1,649
- Watchers: 22
- Forks: 103
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-luooooob - xcatliu/pagic - A static site generator powered by Deno + React (JavaScript)
- awesome-deno-cn - @xcatliu/pagic
- awesome-deno - pagic - The easiest way to generate static html page from markdown, built with Deno.![GitHub stars](https://img.shields.io/github/stars/xcatliu/pagic?style=plastic) (Tools / Online Playgrounds)
- awesome-deno - pagic - The easiest way to generate static html page from markdown, built with Deno. (Modules / Static site generator)
README
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
- Templates: [docs](https://github.com/xcatliu/pagic_template_docs)
- [TypeScript 入门教程](https://ts.xcatliu.com/) ([GitHub](https://github.com/xcatliu/typescript-tutorial))
- [流浪小猫的博客](https://blog.xcatliu.com/) ([GitHub](https://github.com/xcatliu/blog))
- [Deno X ranking](https://yoshixmk.github.io/deno-x-ranking/) ([GitHub](https://github.com/yoshixmk/deno-x-ranking))
- [Deno 钻研之术](https://deno-tutorial.js.org/) ([GitHub](https://github.com/hylerrix/deno-tutorial))
- [Deno 中文手册](https://manual.deno.js.cn/) ([GitHub](https://github.com/denocn/deno_manual))
- [JavaScript 20 年](https://cn.history.js.org/) ([GitHub](https://github.com/doodlewind/jshistory-cn))
- [ECMAScript+ 面试宝典](https://es-interview.js.org/) ([GitHub](https://github.com/hylerrix/es-interview))
- [Blitz.js + React 全栈开发手册](https://blitzjs-tutorial.js.org/) ([GitHub](https://github.com/hylerrix/blitzjs-tutorial))
- [自然醒的博客](https://blog.shenfq.com/)([GitHub](https://github.com/Shenfq/blog))
- [Viktor's Docs](https://docs.itdongdong.com/)([GitHub](https://github.com/ViktorWong/my-docs))
- [0xzhang 的博客](https://blog.0xzhang.com/)([GitHub](https://github.com/0xzhang))
- [Add my site as a demo](https://github.com/xcatliu/pagic/issues/new?assignees=xcatliu&labels=demo&template=add-a-demo.md&title=Add+my+site+as+a+demo+https%3A%2F%2Fexample.com) 😝## Get started
### Installation
```bash
# 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-env --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:
```bash
mkdir site && cd site && echo "export default {};" > pagic.config.ts && echo "# Hello world" > README.md
```### Run `pagic`
```bash
pagic build --watch --serve
```## More information
- Visit the [official website](https://pagic.org)
- Read the [documentation](https://pagic.org/docs/introduction.html)
- [Configure](https://pagic.org/docs/config.html) your site
- Checkout the [theme list](https://pagic.org/themes/) and the [plugin list](https://pagic.org/plugins/)
- Read the [blog](https://pagic.org/blog/) of Pagic
- Join our [discord channel](https://discord.com/channels/785366263823335424)## Special thanks
- [StrawBerry Icon](http://chuangzaoshi.com/icon/): A free and open iconic font library for developer and creator
## Backers
[![Backers](https://opencollective.com/pagic/tiers/backers.svg?avatarHeight=114&width=838)](https://opencollective.com/pagic)
## Contributors
[![Contributors](https://opencollective.com/pagic/contributors.svg?avatarHeight=44&width=838&button=false)](https://github.com/xcatliu/pagic/graphs/contributors)
## LICENSE
[MIT](./LICENSE)
---
Have fun with Pagic!