Skip to content

Commit ad5565f

Browse files
committed
chore: update cliuno website
1 parent e571ade commit ad5565f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2458
-421
lines changed
File renamed without changes.

.github/workflows/deploy.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: deploy-ci
2+
3+
on:
4+
workflow_run:
5+
workflows: ["main-ci"]
6+
types:
7+
- completed
8+
9+
permissions:
10+
contents: read
11+
statuses: write
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: pages
17+
cancel-in-progress: false
18+
19+
jobs:
20+
build:
21+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
with:
27+
fetch-depth: 0
28+
- uses: pnpm/action-setup@v3
29+
with:
30+
version: 10
31+
32+
- name: Setup Node
33+
uses: actions/setup-node@v6
34+
with:
35+
node-version: 22
36+
cache: pnpm
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v6
40+
41+
- name: Install dependencies
42+
run: pnpm install --frozen-lockfile
43+
44+
- name: Build with VitePress
45+
run: pnpm build
46+
env:
47+
VITE_CONVEX_URL: ${{ secrets.VITE_CONVEX_URL }}
48+
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v4
51+
with:
52+
path: .vitepress/dist
53+
54+
# Deployment job
55+
deploy:
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
needs: build
60+
runs-on: ubuntu-latest
61+
name: Deploy
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v5

.github/workflows/main.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: pnpm/action-setup@v5
23+
with:
24+
version: 10
25+
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Use Node.js 22
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
cache: "pnpm"
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v4
38+
39+
- name: Install dependencies
40+
run: pnpm install --no-frozen-lockfile
41+
env:
42+
HUSKY: 0
43+
44+
- name: Build project
45+
run: pnpm build
46+
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: .vitepress/dist
51+
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
needs: build
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
.vitepress/cache/
3+
.vitepress/dist/
4+
.env.local
5+
package-lock.json
6+
.env

.vitepress/config.mts

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import { defineConfig } from "vitepress";
2+
import { withMermaid } from "vitepress-plugin-mermaid";
3+
import { fileURLToPath, URL } from "node:url";
4+
import { resolve } from "node:path";
5+
6+
const __dirname = fileURLToPath(new URL(".", import.meta.url));
7+
8+
// https://vitepress.dev/reference/site-config
9+
export default withMermaid(
10+
defineConfig({
11+
title: "CLIuno",
12+
description: "CLIuno here for making your journey in web development less painful",
13+
srcDir: "src",
14+
appearance: "dark",
15+
head: [["link", { rel: "icon", type: "image/x-icon", href: "/logo.png" }]],
16+
srcExclude: ["**/mnt/**", "**/node_modules/**"],
17+
ignoreDeadLinks: [/localhost/, /\/path\/to\//],
18+
vite: {
19+
envDir: resolve(__dirname, ".."),
20+
optimizeDeps: {
21+
include: ["mermaid"],
22+
},
23+
ssr: {
24+
noExternal: ["vitepress-plugin-mermaid", "mermaid"],
25+
},
26+
},
27+
themeConfig: {
28+
// https://vitepress.dev/reference/default-theme-config
29+
search: {
30+
provider: "local",
31+
},
32+
footer: {
33+
message: "Released under the AGPL 3.0.1 License.",
34+
copyright: "Copyright © 2019-present RuM",
35+
},
36+
nav: [
37+
{ text: "Home", link: "/" },
38+
{ text: "Guide", link: "/guide/getting-started" },
39+
{ text: "Frameworks", link: "/frameworks/framework" },
40+
{ text: "API", link: "/api/" },
41+
],
42+
43+
sidebar: [
44+
{ text: "What is CLIuno?", link: "/guide/what-is-cliuno" },
45+
{ text: "Guide", link: "/guide/getting-started" },
46+
{ text: "Frameworks", link: "/frameworks/framework" },
47+
{
48+
text: "API Reference",
49+
items: [
50+
{ text: "Auth", link: "/api/#auth" },
51+
{ text: "Users", link: "/api/#users" },
52+
{ text: "Roles", link: "/api/#roles" },
53+
{ text: "Posts", link: "/api/#posts" },
54+
{ text: "Follows", link: "/api/#follows" },
55+
],
56+
},
57+
],
58+
59+
socialLinks: [
60+
{ icon: "github", link: "https://github.com/Cliuno" },
61+
{ icon: "twitter", link: "https://twitter.com/cliuno" },
62+
{
63+
icon: {
64+
svg: '<svg fill="#000000" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M23.881 8.948c-.773-4.085-4.859-4.593-4.859-4.593H.723c-.604 0-.679.798-.679.798s-.082 7.324-.022 11.822c.164 2.424 2.586 2.672 2.586 2.672s8.267-.023 11.966-.049c2.438-.426 2.683-2.566 2.658-3.734 4.352.24 7.422-2.831 6.649-6.916zm-11.062 3.511c-1.246 1.453-4.011 3.976-4.011 3.976s-.121.119-.31.023c-.076-.057-.108-.09-.108-.09-.443-.441-3.368-3.049-4.034-3.954-.709-.965-1.041-2.7-.091-3.71.951-1.01 3.005-1.086 4.363.407 0 0 1.565-1.782 3.468-.963 1.904.82 1.832 3.011.723 4.311zm6.173.478c-.928.116-1.682.028-1.682.028V7.284h1.7s1.971.551 1.971 2.638c0 1.913-.985 2.667-2.059 3.015z"></path></g></svg>',
65+
},
66+
link: "https://ko-fi.com/ru44y",
67+
},
68+
],
69+
},
70+
}),
71+
);

404.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

assets/app.D7uXggg9.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/chunks/@localSearchIndexroot.CoJYmDDt.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)