1
mirror of https://github.com/importantimport/urara.git synced 2024-09-16 17:18:40 +08:00
urara/README.md

124 lines
5.8 KiB
Markdown
Raw Permalink Normal View History

2022-08-04 23:02:39 +08:00
<br />
2021-11-04 16:23:07 +08:00
<div align="center">
2021-11-05 20:15:47 +08:00
<a href="https://github.com/importantimport/urara">
2022-08-04 23:01:47 +08:00
<img src="https://github.com/importantimport/urara/raw/main/urara/hello-world/urara.webp" alt="urara" /></a>
2021-11-04 16:23:07 +08:00
</div>
2022-08-04 23:01:47 +08:00
<br />
2021-11-05 20:15:47 +08:00
<p align="center">
2024-09-11 15:02:44 +08:00
<a href="https://fff.js.org"><img src="https://img.shields.io/badge/%F0%9F%8C%9F%20F%20F%20F-1.2-yellow?style=flat" alt="fff" /></a>
2022-08-05 17:42:36 +08:00
<img src="https://img.shields.io/github/languages/top/importantimport/urara?color=%23ff3e00" alt="Language" />
<a href="https://github.com/importantimport/urara/blob/main/COPYING"><img src="https://img.shields.io/github/license/importantimport/urara?color=%23fff" alt="License" /></a>
<img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=shield" alt="FOSSA Status" />
2021-11-05 20:15:47 +08:00
</p>
<p align="center">
2022-03-06 17:56:56 +08:00
<a href="https://urara-demo.netlify.app">🚀 Demo</a>
2021-11-05 20:15:47 +08:00
/
2022-03-06 17:56:56 +08:00
<a href="https://urara-docs.netlify.app">📝 Documentation</a>
/
2022-03-06 17:56:56 +08:00
<a href="https://github.com/importantimport/urara/discussions">💬 Discussions</a>
2021-11-05 20:15:47 +08:00
</p>
<p align="center">
<span>English</span>
|
<a href="https://github.com/importantimport/urara/blob/main/README.zh.md">正體中文</a>
</p>
2021-11-05 20:15:47 +08:00
2022-03-20 20:09:12 +08:00
## 🎉 Try it now!
2021-11-04 15:34:01 +08:00
### Local
```bash
2022-03-17 00:30:12 +08:00
npx degit importantimport/urara my-blog && cd my-blog # create a new project in my-blog
pnpm i # if u don't have pnpm installed, run: npm i -g pnpm
2021-11-04 15:34:01 +08:00
```
2022-01-02 17:03:18 +08:00
### Remote
2022-05-30 20:21:15 +08:00
[![Open in StackBlitz](https://img.shields.io/badge/-Open%20in%20StackBlitz-1374ef?style=for-the-badge&logo=Amp)](https://stackblitz.com/github/importantimport/urara) [![Use this template](https://img.shields.io/badge/-Use%20this%20Template-181717?style=for-the-badge&logo=GitHub)](https://github.com/importantimport/urara/generate) [![Deploy with Vercel](https://img.shields.io/badge/-Deploy%20with%20Vercel-1374ef?style=for-the-badge&logo=Vercel)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara&env=URARA_SITE_URL&envDescription=Site%20URL.&envLink=https%3A%2F%2Fexample.com&project-name=urara-blog&repository-name=urara-blog) [![Deploy to Netlify](https://img.shields.io/badge/-Deploy%20to%20Netlify-15847d?style=for-the-badge&logo=Netlify&logoColor=white)](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara#URARA_SITE_URL=https://example.com&CUSTOM_LOGO=https://github.com/importantimport/urara/raw/main/urara/assets/any@512.png)
2022-01-02 17:03:18 +08:00
2021-12-13 17:09:14 +08:00
## ⚡️ Usage
2022-03-06 17:56:56 +08:00
### Developing
Start a development server:
2021-11-04 15:34:01 +08:00
2021-12-13 17:09:14 +08:00
```bash
2022-03-17 00:30:12 +08:00
pnpm dev
2021-11-04 15:34:01 +08:00
```
2022-02-06 22:49:43 +08:00
### Building
2022-03-06 17:56:56 +08:00
Create a production version of ur blog:
2021-11-04 15:34:01 +08:00
```bash
2022-03-17 00:30:12 +08:00
pnpm build
2021-12-13 17:09:14 +08:00
```
2021-11-04 15:34:01 +08:00
2022-03-17 00:30:12 +08:00
u can preview the built app with `pnpm preview`.
2021-11-04 15:34:01 +08:00
2022-03-06 17:56:56 +08:00
### Documentation
2021-12-13 17:09:14 +08:00
2022-03-06 17:56:56 +08:00
For full documentation, visit [urara-docs.netlify.app](https://urara-docs.netlify.app).
2021-11-04 15:34:01 +08:00
2022-03-06 17:56:56 +08:00
### Give this project a star
tyvm! ur ⭐ will give me more motivation to improve this project.
2022-03-20 20:03:11 +08:00
## ✨ Features
- Out of the box **Atom feed** (WebSub), **Sitemap**, **PWA** (Web app manifest & ServiceWorker) support.
2022-03-20 20:03:11 +08:00
- Present beautiful interface designs and animations with daisyUI, of course.
2023-01-13 22:36:17 +08:00
- Good [IndieWeb](https://indieweb.org/) Compatibility - Multi-kind posts with [microformats2](https://microformats.org/) markup content, Showcasing [Webmentions](https://indieweb.org/Webmention) via [webmentions.io](https://webmentions.io) API.
- Don't worry about the article and image directories - just put them under a folder and they'll be [copied automatically at build time](https://github.com/importantimport/urara/blob/main/urara.ts).
2022-03-20 20:03:11 +08:00
- [Comment Components](https://github.com/importantimport/urara/tree/main/src/lib/components/comments): Webmentions, Giscus, Utterances... u can use more than one.
2022-03-06 17:56:56 +08:00
## 📦️ Pre-packed
### TailwindCSS & PostCSS Plugins
2023-01-13 22:35:59 +08:00
- [daisyUI](https://github.com/saadeghi/daisyui) - The most popular, free and open-source Tailwind CSS component library.
2022-03-11 21:13:00 +08:00
- [Tailwind CSS Typography](https://github.com/tailwindlabs/tailwindcss-typography) - Beautiful typographic defaults for HTML you don't control.
2023-01-13 22:35:59 +08:00
- [Autoprefixer](https://github.com/postcss/autoprefixer) - Parse CSS and add vendor prefixes to rules by Can I Use.
2022-03-06 17:56:56 +08:00
- [CSSNANO](https://github.com/cssnano/cssnano) - A modular minifier, built on top of the PostCSS ecosystem.
### Markdown preprocessor & Syntax highlighter
- [MDsveX](https://github.com/pngwn/MDsveX) - A markdown preprocessor for Svelte.
- [Shiki Twoslash](https://github.com/shikijs/twoslash) - A beautiful Syntax Highlighter.
2021-11-04 15:34:01 +08:00
2022-03-06 17:56:56 +08:00
### Vite Plugins
2021-12-13 17:09:14 +08:00
- [UnoCSS](https://github.com/unocss/unocss) - The instant on-demand atomic CSS engine.
2023-01-13 22:35:59 +08:00
- [VitePWA](https://github.com/antfu/vite-plugin-pwa) - Zero-config PWA for Vite.
2021-11-04 15:34:01 +08:00
2022-02-06 22:49:43 +08:00
## 🚀 Sites
2021-11-05 20:15:47 +08:00
- [./kwaa.dev](https://kwaa.dev) - [kwaa/blog](https://github.com/kwaa/blog)
- [Seviche.cc](https://seviche.cc) - [Sevichecc/Urara-Blog](https://github.com/Sevichecc/Urara-Blog)
- [./khatta.sh](https://blog.shameerkashif.me) - [hash3liZer/khatta](https://github.com/hash3liZer/khatta)
2021-11-05 20:15:47 +08:00
and more...
- [urara-blog - Discussions](https://github.com/importantimport/urara/discussions/2)
- [urara-blog - Topics](https://github.com/topics/urara-blog)
2021-12-13 17:09:14 +08:00
are u using Urara? add the `urara-blog` topic on ur repo!
2021-11-05 20:15:47 +08:00
2022-04-30 19:57:41 +08:00
## 👥 Contributing
If u're interested in contributing to Urara, pls read [contributing docs](.github/CONTRIBUTING.md) before submitting a pull request.
## 📝 License
2021-11-04 15:34:01 +08:00
This work is free, it comes without any warranty. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
2022-03-08 07:52:46 +08:00
as published by Sam Hocevar. See the [COPYING](https://github.com/importantimport/urara/blob/main/COPYING) file for more details.
2021-11-05 20:15:47 +08:00
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fimportantimport%2Furara?ref=badge_large)
special thanks / inspired from:
- [@michaeloliverx - Generate Posts List](https://github.com/pngwn/MDsveX/issues/294#issuecomment-907029639)
2022-05-12 19:24:30 +08:00
- icon made by [Kpouri](https://github.com/kpouri)