Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
auto-install-peers=true
enable-pre-post-scripts=true
save-workspace-protocol=false
link-workspace-packages=false
link-workspace-packages=false
shamefully-hoist=true
node-linker=hoisted
shared-workspace-lockfile=true
3 changes: 3 additions & 0 deletions docs-v2/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use-node-version=20.9.0
use-pnpm=true
engine-strict=true
6 changes: 2 additions & 4 deletions docs-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

```bash
asdf install
yarn install
yarn dev
pnpm dev
```

Open [http://localhost:3000/docs](http://localhost:3000/docs).
Expand Down Expand Up @@ -55,7 +54,7 @@ pages
google.mdx # /docs/workspaces/sso/google
```

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.
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.

## Custom components

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

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.


## Adding new versions

Add a new version of docs by creating a new feature branch in the format of `docs-v{number}-pathing`.
2 changes: 1 addition & 1 deletion docs-v2/components/PipedreamCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const fira = Fira_Code({
});

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

export default PipedreamCode;
6 changes: 4 additions & 2 deletions docs-v2/next.config.js → docs-v2/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const withNextra = require("nextra")({
import nextra from "nextra";

const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
defaultShowCopyCode: true,
});

module.exports = withNextra({
export default withNextra({
basePath: "/docs",
images: {
remotePatterns: [
Expand Down
Loading
Loading