Skip to content

Commit a08659e

Browse files
authored
(fix) Fix Nextra v3 upgrade (#14865)
1 parent 72f817e commit a08659e

Some content is hidden

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

72 files changed

+389
-17311
lines changed

.npmrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
auto-install-peers=true
22
enable-pre-post-scripts=true
33
save-workspace-protocol=false
4-
link-workspace-packages=false
4+
link-workspace-packages=false
5+
shamefully-hoist=true
6+
node-linker=hoisted
7+
shared-workspace-lockfile=true
8+
engine-strict=false

docs-v2/.eslintrc.js

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

docs-v2/.npmrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
auto-install-peers=true
2+
enable-pre-post-scripts=true
3+
save-workspace-protocol=false
4+
link-workspace-packages=false
5+
shamefully-hoist=true
6+
node-linker=hoisted
7+
shared-workspace-lockfile=true
8+
engine-strict=false

docs-v2/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
```bash
88
asdf install
9-
yarn install
10-
yarn dev
9+
pnpm dev
1110
```
1211

1312
Open [http://localhost:3000/docs](http://localhost:3000/docs).
@@ -55,7 +54,7 @@ pages
5554
google.mdx # /docs/workspaces/sso/google
5655
```
5756

58-
The `_meta.json` files in each directory defines a mapping between the labels in the sidebar and the files in that directory. If you want to add an item to the sidebar, you'll probably want to edit the `_meta.json` file. [See the Nextra docs](https://nextra.site/docs/docs-theme/page-configuration) for more info.
57+
The `_meta.tsx` files in each directory defines a mapping between the labels in the sidebar and the files in that directory. If you want to add an item to the sidebar, you'll probably want to edit the `_meta.tsx` file. [See the Nextra docs](https://nextra.site/docs/docs-theme/page-configuration) for more info.
5958

6059
## Custom components
6160

@@ -65,7 +64,6 @@ Use (and create!) custom components in `components/`. You'll see a lot of refere
6564

6665
If you need to add any custom redirects, e.g. when you move pages to a different directory, add then to the `vercel.json` file in this directory.
6766

68-
6967
## Adding new versions
7068

7169
Add a new version of docs by creating a new feature branch in the format of `docs-v{number}-pathing`.

docs-v2/components/DocSearch.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function Search() {
1212
facetFilters: [
1313
"version:latest",
1414
],
15+
indexName: process.env.ALGOLIA_INDEX_NAME,
1516
}}
1617
transformItems={(items) => {
1718
return items.map((item) => ({

docs-v2/components/LanguageLink.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import React from "react";
22

3+
type LanguageLinkProps = {
4+
icon: string;
5+
name: string;
6+
link: string;
7+
};
8+
39
function LanguageLink({
410
icon, name, link,
5-
}) {
11+
}: LanguageLinkProps) {
612
return (
713
<div className="flex justify-center items-center">
814
<a href={link}>

docs-v2/components/PipedreamCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const fira = Fira_Code({
1616
});
1717

1818
const PipedreamCode = ({ children }: PipedreamCodeProps) => <>
19-
<code className={`${fira.className} dark:text-white`}>{children}</code>
19+
<code className={`${fira.className} dark:text-white p-2`}>{children}</code>
2020
</>;
2121

2222
export default PipedreamCode;

docs-v2/components/PythonMappings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const PythonMappings = () => {
7272
<a
7373
target="_blank"
7474
className="external"
75-
href={`https://pypi.org/project/${mapping[0]}`}
75+
href={`https://pypi.org/project/${mapping[0]}`} rel="noreferrer"
7676
>
7777
<span className="font-mono">{`# pipedream add-package ${mapping[0]}`}</span>
7878
</a>

docs-v2/components/VideoPlayer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import React from "react";
22

3+
type VideoPlayerProps = {
4+
src: string;
5+
title: string;
6+
startAt?: number;
7+
};
8+
39
const VideoPlayer = ({
410
src, title, startAt,
5-
}) => {
11+
}: VideoPlayerProps) => {
612
const embedUrl = `${src}?rel=0${startAt
713
? `&start=${startAt}`
814
: ""}`;

docs-v2/eslint.config.js

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

0 commit comments

Comments
 (0)