Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 40cefe4

Browse files
committed
wip
1 parent eccd4d8 commit 40cefe4

File tree

804 files changed

+25139
-5608
lines changed

Some content is hidden

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

804 files changed

+25139
-5608
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@
2323
npm-debug.log*
2424
yarn-debug.log*
2525
yarn-error.log*
26-
.pnpm-debug.log*
2726

2827
# local env files
2928
.env*.local
3029

3130
# vercel
3231
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts
36+
37+
.contentlayer

components.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
{
22
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "default",
4-
"rsc": false,
3+
"style": "new-york",
4+
"rsc": true,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
7+
"config": "tailwind.config.ts",
88
"css": "src/styles/tailwind.css",
9-
"baseColor": "slate",
9+
"baseColor": "zinc",
1010
"cssVariables": true,
1111
"prefix": ""
1212
},
1313
"aliases": {
1414
"components": "@/components",
15-
"utils": "@/lib/utils"
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
1619
}
17-
}
20+
}

contentlayer.config.ts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { defineDocumentType, makeSource } from 'contentlayer2/source-files'
2+
import { extractTocHeadings } from './src/mdx/remark-toc-headings.mjs'
3+
import { title } from 'radash'
4+
5+
const contentDirPath = 'docs'
6+
7+
const Docs = defineDocumentType(() => ({
8+
name: 'Docs',
9+
filePathPattern: '**/*.mdx',
10+
fields: {
11+
title: {
12+
type: 'string',
13+
description: 'The meta title of the doc',
14+
},
15+
nav_title: {
16+
type: 'string',
17+
description: 'The title of the doc in the navigation',
18+
},
19+
description: {
20+
type: 'string',
21+
description: 'The description of the doc',
22+
},
23+
image: {
24+
type: 'string',
25+
description: 'The image of the doc',
26+
},
27+
image_alt: {
28+
type: 'string',
29+
description: 'The image alt of the doc',
30+
},
31+
disable_edit: {
32+
type: 'boolean',
33+
description: 'Disable the github edit button',
34+
},
35+
},
36+
computedFields: {
37+
slug: {
38+
type: 'string',
39+
resolve: (doc) => doc._raw.flattenedPath,
40+
},
41+
seoTitle: {
42+
type: 'string',
43+
resolve: (doc) =>
44+
doc._raw.flattenedPath
45+
? doc._raw.flattenedPath
46+
.split('/')
47+
.slice(-2)
48+
.map((p) => title(p))
49+
.join(': ')
50+
: 'Welcome to Nitric Docs',
51+
},
52+
toc: { type: 'json', resolve: (doc) => extractTocHeadings(doc.body.raw) },
53+
},
54+
}))
55+
56+
export default makeSource({
57+
contentDirPath,
58+
documentTypes: [Docs],
59+
})
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
export const description =
2+
'Basic installation instructions for the Nitric Framework'
3+
4+
# Installation
5+
6+
## Prerequisites
7+
8+
Nitric relies on functionality from the following projects to help retrieve plugins, containerize and deploy your application.
9+
10+
Please follow these links to the official installation steps for each.
11+
12+
- [Git](https://git-scm.com/)
13+
- [Docker](https://docs.docker.com/get-docker/)
14+
- [Docker Buildx](https://github.com/docker/buildx/)
15+
- [Pulumi](https://www.pulumi.com/docs/cli/) _(for deployments, only needed if using the default providers)_
16+
17+
<Note>
18+
When setting up docker on Linux be sure to follow the [post-installation
19+
steps](https://docs.docker.com/engine/install/linux-postinstall/) so you can
20+
run docker as a non-root user.
21+
</Note>
22+
23+
## Installing the Nitric CLI
24+
25+
<InstallNitric>
26+
27+
```bash !!tabs macOS
28+
brew install nitrictech/tap/nitric
29+
```
30+
31+
```bash !!tabs Windows
32+
scoop bucket add nitric https://github.com/nitrictech/scoop-bucket.git
33+
scoop install nitric
34+
```
35+
36+
```bash !!tabs Linux
37+
curl -L "https://nitric.io/install?version=latest" | bash
38+
```
39+
40+
</InstallNitric>
41+
42+
### Manual Install
43+
44+
Alternatively, you can download pre-compiled binaries from the [releases](https://github.com/nitrictech/cli/releases) page and install them manually.
45+
46+
## Update to the latest version
47+
48+
<InstallNitric>
49+
50+
```bash !!tabs macOS
51+
brew upgrade nitric
52+
```
53+
54+
```bash !!tabs Windows
55+
scoop update nitric
56+
```
57+
58+
```bash !!tabs Linux
59+
curl -L "https://nitric.io/install?version=latest" | bash
60+
```
61+
62+
</InstallNitric>
63+
64+
You can easily check which version you're on by running `nitric version`.
65+
66+
## Release notes
67+
68+
You can view the CLI release notes on our [CLI GitHub Releases page](https://github.com/nitrictech/cli/releases).
69+
70+
## What's next
71+
72+
- Checkout out our [concepts](/concepts/introduction) page for a quick overview of Nitric.
73+
- Start building with our [quickstart guide](./quickstart).

0 commit comments

Comments
 (0)