### Run Mintlify Local Development Server
Source: https://docs.veloera.org/development
Starts a local development server for previewing documentation. Navigate to the docs directory (containing docs.json) and run this command. The preview will be available at http://localhost:3000 by default.
```bash
mintlify dev
```
--------------------------------
### Install Mintlify CLI with npm or yarn
Source: https://docs.veloera.org/development
Installs the Mintlify command-line interface globally using either npm or yarn. This is a prerequisite for running local development servers and other Mintlify commands. Ensure Node.js (version 19+) is installed.
```bash
npm i -g mintlify
```
```bash
yarn global add mintlify
```
--------------------------------
### Troubleshooting: Reinstall Mintlify after Node Version Change
Source: https://docs.veloera.org/development
Provides steps to resolve 'sharp' module loading errors, often related to outdated Node.js versions. This involves removing the current Mintlify installation, upgrading Node.js, and then reinstalling Mintlify.
```bash
npm remove -g mintlify
npm install -g mintlify
```
--------------------------------
### Markdown Text Formatting Examples
Source: https://docs.veloera.org/essentials/markdown
Illustrates the Markdown syntax for applying common text styles such as bold, italic, and strikethrough. It also shows how to combine these styles and use HTML for superscript and subscript text.
```markdown
`**bold**`
`_italic_`
`~strikethrough~`
`**_bold and italic_**`
`superscript`
`subscript`
```
--------------------------------
### Run Mintlify on a Custom Port
Source: https://docs.veloera.org/development
Starts the Mintlify local development server on a specified port. Replace '3333' with your desired port number. If the specified port is in use, Mintlify will attempt to use the next available port.
```bash
mintlify dev --port 3333
```
--------------------------------
### Markdown Linking Syntax
Source: https://docs.veloera.org/essentials/markdown
Explains how to create hyperlinks in Markdown, including linking to external websites and internal pages using root-relative paths. It also mentions the performance implications of relative links.
```markdown
[link to google](https://google.com)
[link to text](/writing-content/text)
[link to text](../text)
```
--------------------------------
### Update Mintlify CLI to Latest Version
Source: https://docs.veloera.org/development
Updates the Mintlify command-line interface to the latest available version using npm or yarn. This ensures compatibility with the production version of your website and includes the latest features and bug fixes.
```bash
npm i -g mintlify@latest
```
```bash
yarn global upgrade mintlify
```
--------------------------------
### GET /plants
Source: https://docs.veloera.org/api-reference/endpoint/get
Retrieves a list of all plants accessible to the user. Supports pagination via the 'limit' query parameter.
```APIDOC
## GET /plants
### Description
Returns all plants from the system that the user has access to.
### Method
GET
### Endpoint
/plants
### Parameters
#### Query Parameters
- **limit** (integer) - Optional - The maximum number of results to return
#### Request Body
This endpoint does not accept a request body.
### Request Example
```yaml
GET /plants?limit=10
```
### Response
#### Success Response (200)
- **name** (string) - The name of the plant
- **tag** (string) - Tag to specify the type
#### Response Example
```json
{
"name": "",
"tag": ""
}
```
#### Error Response (400)
- **error** (integer) - Error code
- **message** (string) - Error message
#### Error Response Example
```json
{
"error": 123,
"message": ""
}
```
```
--------------------------------
### Markdown Blockquote Syntax
Source: https://docs.veloera.org/essentials/markdown
Shows the Markdown syntax for creating single-line and multi-line blockquotes using the '>' character. Blockquotes are used to visually set apart quoted text.
```markdown
> Dorothy followed her through many of the beautiful rooms in her castle.
> Dorothy followed her through many of the beautiful rooms in her castle.
>
> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
```
--------------------------------
### Markdown Titles and Subtitles
Source: https://docs.veloera.org/essentials/markdown
Demonstrates the syntax for creating main titles and subtitles using Markdown's '#' characters. These are used for section headers and sub-section headers, respectively, and automatically generate anchors for navigation.
```markdown
## Titles
### Subtitles
```
--------------------------------
### Display Code Blocks with Syntax Highlighting (Java)
Source: https://docs.veloera.org/essentials/code
Shows how to create fenced code blocks with syntax highlighting for Java code. Enclose the code in triple backticks, followed by the language identifier ('java') and an optional filename ('HelloWorld.java'). This improves readability for longer code examples.
```java
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
```
--------------------------------
### LaTeX Component in Markdown
Source: https://docs.veloera.org/essentials/markdown
Demonstrates the usage of the custom 'Latex' component within Markdown to render mathematical equations using LaTeX syntax. This allows for the inclusion of complex formulas in documentation.
```markdown
8 x (vk x H1 - H2) = (0,1)
```
--------------------------------
### Importing and Using Reusable Variables
Source: https://docs.veloera.org/essentials/reusable-snippets
This example shows how to import specific variables (myName, myObject) exported from a snippet file. These imported variables can then be used directly within the destination file's content.
```mdx
import { myName, myObject } from '/snippets/path/to/custom-variables.mdx';
Hello, my name is {myName} and I like {myObject.fruit}.
```
--------------------------------
### Validate Documentation Links
Source: https://docs.veloera.org/development
Checks the documentation for any broken or invalid reference links. Running this command helps maintain the integrity of your documentation by identifying and flagging issues with internal and external links.
```bash
mintlify broken-links
```
--------------------------------
### Configure Documentation with docs.json
Source: https://docs.veloera.org/essentials/settings
The docs.json file is used to configure the core settings of your Mintlify documentation site. It allows for complete control over the look and feel. Ensure this file exists in your project root.
```json
{
"name": "My Docs",
"logo": "/logo.png",
"favicon": "/favicon.ico",
"colors": {
"primary": "#007bff"
}
}
```
--------------------------------
### Plant Store Endpoints
Source: https://docs.veloera.org/api-reference/introduction
This section details the API endpoints available for the Plant Store, as defined in the OpenAPI specification.
```APIDOC
## Plant Store Endpoints
### Description
This section details the API endpoints available for the Plant Store, as defined in the OpenAPI specification.
### Method
GET
### Endpoint
/plants
### Parameters
#### Query Parameters
- **species** (string) - Optional - Filter plants by species.
### Request Example
```json
{
"message": "GET /plants"
}
```
### Response
#### Success Response (200)
- **plants** (array) - A list of plant objects.
- **id** (string) - The unique identifier for the plant.
- **name** (string) - The name of the plant.
- **species** (string) - The species of the plant.
#### Response Example
```json
{
"plants": [
{
"id": "1",
"name": "Monstera",
"species": "Monstera deliciosa"
},
{
"id": "2",
"name": "Snake Plant",
"species": "Sansevieria trifasciata"
}
]
}
```
```
--------------------------------
### POST /plants
Source: https://docs.veloera.org/api-reference/endpoint/create
Creates a new plant in the store by sending plant details in the request body.
```APIDOC
## POST /plants
### Description
Creates a new plant in the store.
### Method
POST
### Endpoint
http://sandbox.mintlify.com/plants
### Parameters
#### Query Parameters
None
#### Request Body
- **name** (string) - Required - The name of the plant
- **tag** (string) - Required - Tag to specify the type
- **id** (integer) - Required - Identification number of the plant
### Request Example
```json
{
"name": "",
"tag": "",
"id": 123
}
```
### Response
#### Success Response (200)
- **name** (string) - The name of the plant
- **tag** (string) - Tag to specify the type
#### Response Example
```json
{
"name": "",
"tag": ""
}
```
#### Error Response (400)
- **error** (integer) - Error code
- **message** (string) - Error message
#### Error Response Example
```json
{
"error": 123,
"message": ""
}
```
```
--------------------------------
### Importing and Using a Reusable Component Snippet
Source: https://docs.veloera.org/essentials/reusable-snippets
This code demonstrates importing a custom component ('MyComponent') from a snippet file and using it with props. The 'title' prop is passed to customize the component's output.
```mdx
import { MyComponent } from '/snippets/custom-component.mdx';
Lorem ipsum dolor sit amet.
```
--------------------------------
### Navigation with Folder Structure in JSON
Source: https://docs.veloera.org/essentials/navigation
Shows how to configure navigation when MDX files are organized into folders. The `pages` array references the folder and file name to create the correct link.
```json
"navigation": {
"tabs": [
{
"tab": "Docs",
"groups": [
{
"group": "Group Name",
"pages": ["your-folder/your-page"]
}
]
}
]
}
```
--------------------------------
### Regular Navigation Syntax in JSON
Source: https://docs.veloera.org/essentials/navigation
Defines a standard navigation structure with tabs, groups, and pages. This is the basic format for linking documents in the website's navigation menu.
```json
"navigation": {
"tabs": [
{
"tab": "Docs",
"groups": [
{
"group": "Getting Started",
"pages": ["quickstart"]
}
]
}
]
}
```
--------------------------------
### Navigation and Appearance Configuration
Source: https://docs.veloera.org/essentials/settings
Customize the appearance and navigation of the project, including top anchors, tabs, and footer social links.
```APIDOC
## Navigation and Appearance Configuration
### Description
Customize the appearance and navigation of the project, including top anchors, tabs, and footer social links.
### Method
N/A (Configuration object)
### Endpoint
N/A
### Parameters
#### Request Body
- **topAnchor** (Object) - Optional - Overrides for the top-most anchor.
- **name** (string) - Optional - The name of the top-most anchor.
- **icon** (string) - Optional - Font Awesome icon for the anchor.
- **iconType** (string) - Optional - Type of icon (e.g., "duotone", "solid").
- **tabs** (Array