From 631d9437ec5614f4b63d0c8138e151d232e75d15 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Sun, 11 Aug 2024 20:22:51 +0200 Subject: [PATCH] doc --- readme.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index dfbfe23a..38baf009 100644 --- a/readme.md +++ b/readme.md @@ -1,15 +1,24 @@ -| var | description | example | default | -| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | ------- | -| `MDX`\* | Path to `*.mdx` folder
NB: can be relative or absolute | `docs` or `~/code/myproject/documentation` | none | -| `NEXT_PUBLIC_LIBNAME`\* | Library name | `React Three Fiber` | none | -| `BASE_PATH` | Base path for the final URL | `/react-three-fiber` | none | -| `DIST_DIR` | Path to the output folder ([within project](https://nextjs.org/docs/app/api-reference/next-config-js/distDir#:~:text=should%20not%20leave%20your%20project%20directory)) | `out` or `docs/out/react-three-fiber` | none | -| `OUTPUT` | Set to `export` for static output | `export` | none | -| `HOME_REDIRECT` | Where the home should redirect | `/getting-started/introduction` | none | -| `INLINE_IMAGES_ORIGIN` | [Origin](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin) for inlining relative images
Eg: in a `/advanced/introduction.mdx` file, `` becomes ``
NB: if none, don't use relative images | `https://github.com/pmndrs/react-three-fiber/raw/main` | none | +| var | description | example | default | +| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------ | ------- | +| `MDX`\* | Path to `*.mdx` folder
NB: can be relative or absolute | `docs` or `~/code/myproject/documentation` | none | +| `NEXT_PUBLIC_LIBNAME`\* | Library name | `React Three Fiber` | none | +| `BASE_PATH` | Base path for the final URL | `/react-three-fiber` | none | +| `DIST_DIR` | Path to the output folder ([within project](https://nextjs.org/docs/app/api-reference/next-config-js/distDir#:~:text=should%20not%20leave%20your%20project%20directory)) | `out` or `docs/out/react-three-fiber` | none | +| `OUTPUT` | Set to `export` for static output | `export` | none | +| `HOME_REDIRECT` | Where the home should redirect | `/getting-started/introduction` | none | +| `INLINE_IMAGES_ORIGIN` | [Origin](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin) for inlining relative images | `https://github.com/pmndrs/react-three-fiber/raw/main` | none | \* Required +
+ `INLINE_IMAGES_ORIGIN` + In mdx `docs` folder, given a `advanced/introduction.mdx` file: + ```mdx + ![](dog.png) + ``` + becomes `![](https://github.com/pmndrs/uikit/raw/main/docs/advanced/dog.png)` +
+ # dev ```sh