# pagic **Repository Path**: nextge-web/pagic ## Basic Information - **Project Name**: pagic - **Description**: Deno + React 驱动的静态网站生成器 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 9 - **Created**: 2020-10-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
agic
简体中文 | Website | Docs | Config | Demos | Themes | Plugins | News
## 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](https://yoshixmk.github.io/deno-x-ranking/) ([GitHub](https://github.com/yoshixmk/deno-x-ranking)) - [TypeScript 入门教程](https://ts.xcatliu.com/) ([GitHub](https://github.com/xcatliu/typescript-tutorial/)) - [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)) - [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 --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) - [Configura](https://pagic.org/docs/config.html) your site - Checkout the [theme list](https://pagic.org/themes/) and the [plugin list](https://pagic.org/plugins/) - See [news](https://pagic.org/news/) about Pagic ## LICENSE [MIT](./LICENSE) --- Have fun with Pagic!