Skip to content

Commit 1434a75

Browse files
Merge pull request #39 from nocodb/fix-docs
2 parents 021bc0f + b57b2b6 commit 1434a75

File tree

14 files changed

+45
-38
lines changed

14 files changed

+45
-38
lines changed

app/docs/changelog/[...slug]/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {changelogSource} from '@/lib/source';
22
import {DocsBody, DocsDescription, DocsTitle,} from 'fumadocs-ui/page';
33
import {notFound} from 'next/navigation';
44
import {getMDXComponents} from '@/mdx-components';
5-
import MdxLink from "@/components/mdx/MdxLink";
65
import { AnchorProvider } from 'fumadocs-core/toc';
76
import { Toc, TOCScrollArea} from 'fumadocs-ui/components/layout/toc';
87
import ClerkTOCItems from 'fumadocs-ui/components/layout/toc-clerk';
@@ -32,9 +31,7 @@ export default async function Page(props: {
3231
<DocsDescription className="mb-0">{page.data.description}</DocsDescription>
3332
<DocsBody>
3433
<MDXContent
35-
components={getMDXComponents({
36-
a: MdxLink
37-
})}
34+
components={getMDXComponents()}
3835
/>
3936
</DocsBody>
4037
<Cards>

app/docs/scripts/[[...slug]]/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {scriptsSource} from '@/lib/source';
22
import {DocsBody, DocsDescription, DocsTitle,} from 'fumadocs-ui/page';
33
import {notFound} from 'next/navigation';
44
import {getMDXComponents} from '@/mdx-components';
5-
import MdxLink from "@/components/mdx/MdxLink";
65
import { AnchorProvider } from 'fumadocs-core/toc';
76
import { Toc, TOCScrollArea, } from 'fumadocs-ui/components/layout/toc';
87
import ClerkTOCItems from 'fumadocs-ui/components/layout/toc-clerk';
@@ -32,9 +31,7 @@ export default async function Page(props: {
3231
<DocsDescription className="mb-0">{page.data.description}</DocsDescription>
3332
<DocsBody>
3433
<MDXContent
35-
components={getMDXComponents({
36-
a: MdxLink
37-
})}
34+
components={getMDXComponents()}
3835
/>
3936
</DocsBody>
4037
<Cards>

app/docs/self-hosting/[[...slug]]/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export default async function Page(props: {
3232
<DocsDescription className="mb-0">{page.data.description}</DocsDescription>
3333
<DocsBody>
3434
<MDXContent
35-
components={getMDXComponents({
36-
a: MdxLink
37-
})}
35+
components={getMDXComponents()}
3836
/>
3937
</DocsBody>
4038
<Cards>

components/mdx/MdxLink.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ const transformHref = (href: string) => {
66
return href;
77
}
88

9+
if (href.startsWith('/docs/product-docs')) {
10+
return href;
11+
}
12+
13+
if(href.startsWith('/docs/self-hosting')) {
14+
return href
15+
}
16+
917
if (href.startsWith('/docs')) {
1018
return `/docs/product-docs/${href}`;
1119
}

content/docs/FAQs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ icon: "helpCircle"
66

77
## How to upgrade NocoDB ?
88

9-
- Please see [here](https://docs.nocodb.com/getting-started/upgrading)
9+
- Please see [here](/docs/self-hosting/upgrading)
1010

1111
## How to export CSV from the grid view ?
1212

content/docs/automation/webhook/create-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,4 +344,4 @@ One can also customize the payload as per the requirement. For example, to send
344344
In self-hosted version, you can configure the following environment variables to customize the webhook behavior.
345345
- NC_ALLOW_LOCAL_HOOKS: Allow localhost based links to be triggered. Default: false
346346

347-
Find more about environment variables [here](/getting-started/self-hosted/environment-variables)
347+
Find more about environment variables [here](/docs/self-hosting/environment-variables)

content/docs/developer-resources/webhook/create-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,4 @@ One can also customize the payload as per the requirement. For example, to send
322322
In self-hosted version, you can configure the following environment variables to customize the webhook behavior.
323323
- NC_ALLOW_LOCAL_HOOKS: Allow localhost based links to be triggered. Default: false
324324

325-
Find more about environment variables [here](/getting-started/self-hosted/environment-variables)
325+
Find more about environment variables [here](/docs/self-hosting/environment-variables)

content/docs/engineering/writing-docs.mdx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,21 @@ This article discusses some of the protocol and conventions to be followed while
88

99
## Folder Structure
1010
- Docs follow object-oriented approach. Each folder represents an object and each file represents procedures associated with that object.
11-
- Each folder contains an `_category_.json` file which contains the metadata for that object.
11+
- Each folder contains an `meta.json` file which contains the metadata for that object.
1212
```
1313
{
14-
"label": "Engineering",
15-
"collapsible": true,
16-
"collapsed": true
14+
"title": "Engineering",
15+
"icon": "terminal",
16+
"pages": [
17+
"architecture",
18+
"repository-structure",
19+
"development-setup",
20+
"unit-testing",
21+
"playwright",
22+
"build-and-releases",
23+
"translations",
24+
"writing-docs"
25+
]
1726
}
1827
```
1928

@@ -35,9 +44,7 @@ keywords: ['Engineering', Writing docs', 'Docs conventions']
3544
## Nomenclature
3645
- Folder names & file name are
3746
- in kebab-case.
38-
- prefix with a number that represents the order in which the folder/file should be displayed in the sidebar.
39-
- prefix number is always a 3-digit number.
40-
- For example, `010.account-settings`.
47+
- For example, `account-settings`.
4148
- Only first letter of the folder/file name is capitalized. Second letter onwards, first letter is capitalized only if it is a proper noun.
4249

4350
## Tags
@@ -61,6 +68,6 @@ Tags that are currently being used in the docs are listed below. See if you can
6168
- Use `Skitch` for annotations.
6269

6370
## Before you commit
64-
- Use `npm run build` to build the docs.
71+
- Use `pnpm run build` to build the docs.
6572
- Ensure that the build is successful & there are no errors/warnings related to missing links, images, etc.
6673

content/docs/fields/field-types/numerical/number.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ keywords: ['Fields', 'Field types', 'Numerical types', 'Number', 'Create number
1717

1818
![image](/img/v2/fields/types/number.png)
1919

20-
:::info
20+
<Callout type="note">
2121
- This field type can hold both positive and negative numbers.
2222
- Supported range (JavaScript): -9007199254740991 to 9007199254740991
23-
:::
23+
</Callout>
2424

2525
## Similar numerical fields
2626
Following are the other numerical fields available in NocoDB, with some custom add-on features.

content/docs/getting-started/quick-start.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ When you opt for self-hosting, you gain the advantage of running an application
1616

1717
Setting up NocoDB on your own server is a straightforward process & the articles below will guide you through the steps to get started.
1818

19-
- [Installation](/getting-started/self-hosted/installation/auto-upstall)
20-
- [Environment Variables](/getting-started/self-hosted/environment-variables)
21-
- [Upgrading](/getting-started/self-hosted/upgrading)
19+
- [Installation](/docs/self-hosting/installation/auto-upstall)
20+
- [Environment Variables](/docs/self-hosting/environment-variables)
21+
- [Upgrading](/docs/self-hosting/upgrading)
2222

2323

2424
## SaaS (Cloud Hosted)

0 commit comments

Comments
 (0)