Skip to content

Commit 46ef1e4

Browse files
authored
Merge pull request sirius-tedarik#21 from sirius-tedarik/v0.1.0
V0.1.0
2 parents 2640e16 + d160d31 commit 46ef1e4

File tree

239 files changed

+5131
-4710
lines changed

Some content is hidden

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

239 files changed

+5131
-4710
lines changed

.github/workflows/ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: "Pipeline"
2-
32
on:
43
push:
54
pull_request:
65
workflow_dispatch:
7-
86
jobs:
97
ci:
108
name: "CI"
@@ -18,7 +16,8 @@ jobs:
1816
- run: "moon ci --color"
1917
env:
2018
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
21-
- uses: "moonrepo/run-report-action@v1"
19+
- uses: moonrepo/run-report-action@v1
2220
if: success() || failure()
2321
with:
24-
access-token: ${{ secrets.GH_TOKEN }}
22+
access-token: ${{ secrets.GITHUB_TOKEN }}
23+
matrix: ${{ toJSON(matrix) }}

.github/workflows/docs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deno-deploy
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
id-token: write
7+
contents: read
8+
jobs:
9+
ci:
10+
name: "Docs CD"
11+
environment: CD
12+
runs-on: "ubuntu-latest"
13+
steps:
14+
- uses: "actions/checkout@v4"
15+
with:
16+
fetch-depth: 0
17+
- uses: "moonrepo/setup-toolchain@v0"
18+
- run: "moon run docs:build"
19+
env:
20+
MOONBASE_SECRET_KEY: ${{ secrets.MOONBASE_SECRET_KEY }}
21+
- uses: "moonrepo/run-report-action@v1"
22+
if: success() || failure()
23+
with:
24+
access-token: ${{ secrets.GITHUB_TOKEN }}
25+
matrix: ${{ toJSON(matrix) }}
26+
- name: Deploy to Deno Deploy
27+
uses: denoland/deployctl@v1
28+
with:
29+
project: sirutils
30+
entrypoint: server/index.ts
31+
root: apps/docs/.output

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ lib/
137137

138138
# others
139139
.tmp
140-
.idea
140+
.idea
141+
pnpm-lock.yaml

.moon/toolchain.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$schema: "https://moonrepo.dev/schemas/toolchain.json"
22

33
bun:
4-
version: "1.1.20"
4+
version: "1.1.27"
55
dependencyVersionFormat: "workspace"
66
syncProjectWorkspaceDependencies: true
77

.prototools

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
bun = "1.1.20"
2-
moon = "1.27.2"
1+
bun = "1.1.27"
2+
moon = "1.28.0"
33

44
[plugins]
55
moon = "https://raw.githubusercontent.com/moonrepo/moon/master/proto-plugin.toml"

apps/docs/.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

apps/docs/.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false

apps/docs/README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# shadcn-docs-nuxt Minimal Starter
2+
3+
Starter template for [shadcn-docs-nuxt](https://github.com/ZTL-UwU/shadcn-docs-nuxt).
4+
5+
## Setup
6+
7+
Make sure to install the dependencies:
8+
9+
```bash
10+
# yarn
11+
yarn install
12+
13+
# npm
14+
npm install
15+
16+
# pnpm
17+
pnpm install
18+
19+
# bun
20+
bun install
21+
```
22+
23+
## Development Server
24+
25+
Start the development server on http://localhost:3000
26+
27+
```bash
28+
npm run dev
29+
```
30+
31+
## Production
32+
33+
[![Deploy to NuxtHub](https://hub.nuxt.com/button.svg)](https://hub.nuxt.com/new?repo=ZTL-UwU/shadcn-docs-nuxt-starter)
34+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FZTL-UwU%2Fshadcn-docs-nuxt-starter)
35+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2FZTL-UwU%2Fshadcn-docs-nuxt-starter)
36+
37+
Build the application for production:
38+
39+
```bash
40+
npm run build
41+
```
42+
43+
Locally preview production build:
44+
45+
```bash
46+
npm run preview
47+
```
48+
49+
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

apps/docs/app.config.ts

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
export default defineAppConfig({
2+
shadcnDocs: {
3+
site: {
4+
name: 'sirutils',
5+
description: 'Utilities we use in sirius',
6+
},
7+
theme: {
8+
customizable: true,
9+
color: 'red',
10+
radius: 0.5,
11+
},
12+
header: {
13+
title: 'Sirutils',
14+
showTitle: true,
15+
darkModeToggle: true,
16+
logo: {
17+
light: '/logo.svg',
18+
dark: '/logo-dark.svg',
19+
},
20+
nav: [],
21+
links: [
22+
{
23+
icon: 'lucide:github',
24+
to: 'https://github.com/sirius-tedarik/sirutils',
25+
target: '_blank',
26+
},
27+
],
28+
},
29+
aside: {
30+
useLevel: true,
31+
collapse: false,
32+
},
33+
main: {
34+
breadCrumb: true,
35+
showTitle: true,
36+
padded: true,
37+
},
38+
footer: {
39+
credits: 'Copyright © 2024',
40+
links: [
41+
{
42+
icon: 'lucide:github',
43+
to: 'https://github.com/sirius-tedarik/sirutils',
44+
target: '_blank',
45+
},
46+
],
47+
},
48+
toc: {
49+
enable: true,
50+
title: 'On This Page',
51+
links: [
52+
{
53+
title: 'Star on GitHub',
54+
icon: 'lucide:star',
55+
to: 'https://github.com/sirius-tedarik/sirutils',
56+
target: '_blank',
57+
},
58+
{
59+
title: 'Create Issues',
60+
icon: 'lucide:circle-dot',
61+
to: 'https://github.com/sirius-tedarik/sirutils/issues',
62+
target: '_blank',
63+
},
64+
],
65+
},
66+
search: {
67+
enable: true,
68+
inAside: false,
69+
},
70+
},
71+
})

apps/docs/assets/css/tailwind.css

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
@layer base {
6+
:root {
7+
--background: 0 0% 100%;
8+
--foreground: 222.2 84% 4.9%;
9+
10+
--card: 0 0% 100%;
11+
--card-foreground: 222.2 84% 4.9%;
12+
13+
--popover: 0 0% 100%;
14+
--popover-foreground: 222.2 84% 4.9%;
15+
16+
--primary: 221.2 83.2% 53.3%;
17+
--primary-foreground: 210 40% 98%;
18+
19+
--secondary: 210 40% 96.1%;
20+
--secondary-foreground: 222.2 47.4% 11.2%;
21+
22+
--muted: 210 40% 96.1%;
23+
--muted-foreground: 215.4 16.3% 46.9%;
24+
25+
--accent: 210 40% 96.1%;
26+
--accent-foreground: 222.2 47.4% 11.2%;
27+
28+
--destructive: 0 84.2% 60.2%;
29+
--destructive-foreground: 210 40% 98%;
30+
31+
--border: 214.3 31.8% 91.4%;
32+
--input: 214.3 31.8% 91.4%;
33+
--ring: 221.2 83.2% 53.3%;
34+
--radius: 0.5rem;
35+
}
36+
37+
.dark {
38+
--background: 222.2 84% 4.9%;
39+
--foreground: 210 40% 98%;
40+
41+
--card: 222.2 84% 4.9%;
42+
--card-foreground: 210 40% 98%;
43+
44+
--popover: 222.2 84% 4.9%;
45+
--popover-foreground: 210 40% 98%;
46+
47+
--primary: 217.2 91.2% 59.8%;
48+
--primary-foreground: 222.2 47.4% 11.2%;
49+
50+
--secondary: 217.2 32.6% 17.5%;
51+
--secondary-foreground: 210 40% 98%;
52+
53+
--muted: 217.2 32.6% 17.5%;
54+
--muted-foreground: 215 20.2% 65.1%;
55+
56+
--accent: 217.2 32.6% 17.5%;
57+
--accent-foreground: 210 40% 98%;
58+
59+
--destructive: 0 62.8% 30.6%;
60+
--destructive-foreground: 210 40% 98%;
61+
62+
--border: 217.2 32.6% 17.5%;
63+
--input: 217.2 32.6% 17.5%;
64+
--ring: 224.3 76.3% 48%;
65+
}
66+
}
67+
68+
@layer utilities {
69+
.step {
70+
counter-increment: step;
71+
}
72+
73+
.step:before {
74+
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
75+
@apply -ml-[50px] -mt-1;
76+
content: counter(step);
77+
}
78+
}
79+
80+
@layer base {
81+
* {
82+
@apply border-border;
83+
}
84+
85+
body {
86+
@apply bg-background text-foreground;
87+
}
88+
}

apps/docs/biome.jsonc

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3+
"extends": ["../../biome.jsonc"],
4+
"overrides": [
5+
{
6+
"include": ["**/*.ts", "**/*.tsx", "**/*.vue"],
7+
"linter": {
8+
"rules": {
9+
"suspicious": {
10+
"noReactSpecificProps": "off"
11+
},
12+
"style": {
13+
"noDefaultExport": "off"
14+
},
15+
"correctness": {
16+
"noUndeclaredVariables": "off"
17+
}
18+
}
19+
}
20+
},
21+
{
22+
"include": ["**/*.vue"],
23+
"linter": {
24+
"rules": {
25+
"style": {
26+
"useFilenamingConvention": "off"
27+
}
28+
}
29+
}
30+
}
31+
]
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
::alert{type="info" icon="lucide:info"}
2+
If you want to contribute to this project please refer to [internals](/internals).
3+
::
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
title: Getting started
2+
icon: lucide:rocket
3+
navigation.redirect: /getting-started/introduction

apps/docs/content/2.api/_dir.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
title: API
2+
icon: lucide:book-open
3+
navigation.redirect: /api/packages

0 commit comments

Comments
 (0)