Skip to content

Commit 9a13631

Browse files
authored
Initial commit
0 parents  commit 9a13631

32 files changed

+6565
-0
lines changed

.github/workflows/nextjs.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2+
#
3+
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4+
#
5+
name: Deploy Next.js site to Pages
6+
7+
on:
8+
# Runs on pushes targeting the default branch
9+
push:
10+
branches: ["main"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+
permissions:
17+
contents: read
18+
pages: write
19+
id-token: write
20+
21+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23+
concurrency:
24+
group: "pages"
25+
cancel-in-progress: false
26+
27+
jobs:
28+
# Build job
29+
build:
30+
runs-on: ubuntu-latest
31+
defaults:
32+
run:
33+
working-directory: docs
34+
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4
38+
- name: pnpm-setup
39+
uses: pnpm/action-setup@v4
40+
with:
41+
package_json_file: docs/package.json
42+
- name: Detect package manager
43+
id: detect-package-manager
44+
run: |
45+
if [ -f "yarn.lock" ]; then
46+
echo "manager=yarn" >> $GITHUB_OUTPUT
47+
echo "command=install" >> $GITHUB_OUTPUT
48+
echo "runner=yarn" >> $GITHUB_OUTPUT
49+
exit 0
50+
elif [ -f "package-lock.json" ]; then
51+
echo "manager=npm" >> $GITHUB_OUTPUT
52+
echo "command=ci" >> $GITHUB_OUTPUT
53+
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
54+
exit 0
55+
elif [ -f "pnpm-lock.yaml" ]; then
56+
echo "manager=pnpm" >> $GITHUB_OUTPUT
57+
echo "command=install" >> $GITHUB_OUTPUT
58+
echo "runner=pnpm" >> $GITHUB_OUTPUT
59+
exit 0
60+
else
61+
echo "Unable to determine package manager"
62+
exit 1
63+
fi
64+
- name: Setup Node
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: "20"
68+
cache-dependency-path: docs/pnpm-lock.yaml
69+
cache: ${{ steps.detect-package-manager.outputs.manager }}
70+
- name: Setup Pages
71+
uses: actions/configure-pages@v5
72+
with:
73+
# Automatically inject basePath in your Next.js configuration file and disable
74+
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
75+
#
76+
# You may remove this line if you want to manage the configuration yourself.
77+
static_site_generator: next
78+
- name: Restore cache
79+
uses: actions/cache@v4
80+
with:
81+
path: |
82+
.next/cache
83+
# Generate a new cache whenever packages or source files change.
84+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
85+
# If source files changed but packages didn't, rebuild from a prior cache.
86+
restore-keys: |
87+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-
88+
- name: Install dependencies
89+
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
90+
- name: Build with Next.js
91+
run: ${{ steps.detect-package-manager.outputs.runner }} next build
92+
- name: Upload artifact
93+
uses: actions/upload-pages-artifact@v3
94+
with:
95+
path: docs/out
96+
97+
# Deployment job
98+
deploy:
99+
environment:
100+
name: github-pages
101+
url: ${{ steps.deployment.outputs.page_url }}
102+
runs-on: ubuntu-latest
103+
needs: build
104+
steps:
105+
- name: Deploy to GitHub Pages
106+
id: deployment
107+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Docusaurus cache and generated files
108+
.docusaurus
109+
110+
# Serverless directories
111+
.serverless/
112+
113+
# FuseBox cache
114+
.fusebox/
115+
116+
# DynamoDB Local files
117+
.dynamodb/
118+
119+
# TernJS port file
120+
.tern-port
121+
122+
# Stores VSCode versions used for testing VSCode extensions
123+
.vscode-test
124+
125+
# yarn v2
126+
.yarn/cache
127+
.yarn/unplugged
128+
.yarn/build-state.yml
129+
.yarn/install-state.gz
130+
.pnp.*
131+
.vscode
132+
.turbo
133+
.DS_Store

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 daveyplate
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# tsx-package-fumadocs

biome.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true,
7+
"defaultBranch": "main"
8+
},
9+
"files": {
10+
"ignore": ["./src/components/ui/**"]
11+
},
12+
"formatter": {
13+
"indentStyle": "space",
14+
"indentWidth": 4,
15+
"lineWidth": 100
16+
},
17+
"linter": {
18+
"rules": {
19+
"a11y": {
20+
"noSvgWithoutTitle": "off",
21+
"useGenericFontNames": "off"
22+
},
23+
"suspicious": {
24+
"noArrayIndexKey": "off",
25+
"noDoubleEquals": {
26+
"fix": "safe",
27+
"level": "warn",
28+
"options": {}
29+
}
30+
},
31+
"style": {
32+
"noNonNullAssertion": "off",
33+
"useSelfClosingElements": {
34+
"fix": "safe",
35+
"level": "warn"
36+
},
37+
"useTemplate": {
38+
"fix": "safe",
39+
"level": "warn"
40+
}
41+
},
42+
"correctness": {
43+
"noUnusedImports": "info"
44+
},
45+
"nursery": {
46+
"useSortedClasses": {
47+
"fix": "safe",
48+
"level": "info",
49+
"options": {
50+
"functions": ["cn"]
51+
}
52+
}
53+
}
54+
}
55+
},
56+
"javascript": {
57+
"formatter": {
58+
"semicolons": "asNeeded",
59+
"trailingCommas": "none"
60+
}
61+
}
62+
}

docs/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# deps
2+
/node_modules
3+
4+
# generated content
5+
.contentlayer
6+
.content-collections
7+
.source
8+
9+
# test & build
10+
/coverage
11+
/.next/
12+
/out/
13+
/build
14+
*.tsbuildinfo
15+
16+
# misc
17+
.DS_Store
18+
*.pem
19+
/.pnp
20+
.pnp.js
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# others
26+
.env*.local
27+
.vercel
28+
next-env.d.ts
29+
.vscode
30+
.turbo

docs/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# fumadocs
2+
3+
This is a Next.js application generated with
4+
[Create Fumadocs](https://github.com/fuma-nama/fumadocs).
5+
6+
Run development server:
7+
8+
```bash
9+
npm run dev
10+
# or
11+
pnpm dev
12+
# or
13+
yarn dev
14+
```
15+
16+
Open http://localhost:3000 with your browser to see the result.
17+
18+
## Learn More
19+
20+
To learn more about Next.js and Fumadocs, take a look at the following
21+
resources:
22+
23+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js
24+
features and API.
25+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
26+
- [Fumadocs](https://fumadocs.vercel.app) - learn about Fumadocs

0 commit comments

Comments
 (0)