diff --git a/docs.json b/docs.json index a137f89a6..c02b9f9e9 100644 --- a/docs.json +++ b/docs.json @@ -22,6 +22,7 @@ "group": "Getting started", "pages": [ "index", + "test-latency", "quickstart", "installation", "editor" @@ -224,9 +225,7 @@ "groups": [ { "group": "API Reference", - "pages": [ - "api-reference/introduction" - ] + "pages": ["api-reference/introduction"] }, { "group": "Admin", @@ -251,9 +250,7 @@ "groups": [ { "group": "Changelog", - "pages": [ - "changelog" - ] + "pages": ["changelog"] } ] } @@ -354,13 +351,7 @@ "background": "/images/thumbnail/background.svg" }, "contextual": { - "options": [ - "copy", - "chatgpt", - "claude", - "cursor", - "vscode" - ] + "options": ["copy", "chatgpt", "claude", "cursor", "vscode"] }, "redirects": [ { diff --git a/test-latency.mdx b/test-latency.mdx new file mode 100644 index 000000000..404b3a36c --- /dev/null +++ b/test-latency.mdx @@ -0,0 +1,94 @@ +--- +title: "Test latency " +sidebarTitle: "Testlatency" +description: "Test latency" +icon: "terminal" +--- + + +## Installing the CLI + + + **Prerequisite**: Please install [Node.js](https://nodejs.org/en) before proceeding. + + + + + Run the following command to install the [CLI](https://www.npmjs.com/package/mint): + + + ```bash npm + npm i -g mint + ``` + + ```bash pnpm + pnpm add -g mint + ``` + + + + + Navigate to your docs directory (where your `docs.json` file is located) and execute the following command: + + ```bash + mint dev + ``` + + A local preview of your documentation will be available at `http://localhost:3000`. + + + +Alternatively, if you do not want to install the CLI globally, you can run a one-time script: + +```bash +npx mint dev +``` + + + Application Configuration in Smartcar Dashboard + + + + + + + This may be due to an outdated version of node. Try the following: + + 1. Remove the currently-installed version of the mint CLI: `npm uninstall -g mint` + 2. Upgrade to Node.js. + 3. Reinstall the mint CLI: `npm install -g mint` + + + **Solution**: Go to the root of your device and delete the `~/.mintlify` folder. Afterwards, run `mint dev` again. + + + This is due to not having the required permissions to globally install node packages. + + **Solution**: Try running `sudo npm i -g mint`. You will be prompted for your password, which is the one you use to unlock your computer. + + + This is likely due to an outdated version of the CLI. + + **Solution:** Run `mint update` to get the latest changes. + + + If you have any problems with the CLI package, you should first run `npm ls -g`. This command shows what packages are globally installed on your machine. + + If you don't use npm or don't see it in the -g list, try `which mint` to locate the installation. + + If you have a package named `mint` and a package named `mintlify` installed, you should uninstall `mintlify`. + + 1. Uninstall the old package: + ```bash + npm uninstall -g mintlify + ``` + 2. Clear your npm cache: + ```bash + npm cache clean --force + ``` + 3. Reinstall the new package: + ```bash + npm i -g mint + ``` + +