Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(documentation): Init #984

Merged
merged 63 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f9ebbf3
feat(documentation): Init
creatorrr Dec 23, 2024
6e1d59a
wip(documentation): Work on mintlify docs
creatorrr Dec 24, 2024
30835e3
docs(mintlify): Add task walkthrough & other misc improvements
HamadaSalhab Jan 9, 2025
61b3377
Merge pull request #1036 from julep-ai/d/docs-improvement
creatorrr Jan 9, 2025
d9c37cd
wip(docs): mintlify sidebar
creatorrr Jan 15, 2025
06bc976
Merge branch 'dev' into mintlify-docs
creatorrr Jan 15, 2025
9ef7044
feat(docs): finalised mintlify sidebar
Vedantsahai18 Jan 16, 2025
9e9ff9d
docs(integration): intital draft of supported models added
Vedantsahai18 Jan 16, 2025
13fd68b
chore:supported model page update
Vedantsahai18 Jan 17, 2025
96e7afd
wip: added note to support model
Vedantsahai18 Jan 17, 2025
3470cbd
wip: initial integration docuemntaion added + icons to sidebar
Vedantsahai18 Jan 17, 2025
171ebc4
doc(documentation): ADd trip planning tutorial page
HamadaSalhab Jan 17, 2025
9a65a94
doc(documentation): Add browser use tutorial page
HamadaSalhab Jan 17, 2025
a5ece05
doc(documentation): Add rag workflow tutorial page
HamadaSalhab Jan 17, 2025
d211aff
doc(documentation): Add video processing tutorial page
HamadaSalhab Jan 17, 2025
0764f3b
wip: complete integration pages
Vedantsahai18 Jan 17, 2025
c4fc0c2
chore: misc fixes
Vedantsahai18 Jan 17, 2025
8a45bc2
wip: misc fixes
Vedantsahai18 Jan 18, 2025
f309f31
chore: minro refactor
Vedantsahai18 Jan 18, 2025
2d04a86
Merge pull request #1064 from julep-ai/mintlify-vedant
Vedantsahai18 Jan 18, 2025
738d0a7
Merge branch 'mintlify-docs' into d/tutorials
HamadaSalhab Jan 18, 2025
ff25d07
chore: python expr placeholder
Vedantsahai18 Jan 19, 2025
41d19b5
chore: misc fix
Vedantsahai18 Jan 19, 2025
b476438
chore(docs): Refactor browser-use tutorial
HamadaSalhab Jan 19, 2025
a2933cb
chore(docs): Refactor crawling-rag tutorial
HamadaSalhab Jan 19, 2025
85db166
chore(docs): Refactor trip-planning tutorial
HamadaSalhab Jan 19, 2025
5daaec9
chore(docs): Refactor video-processing tutorial
HamadaSalhab Jan 19, 2025
9fc25df
chore(docs:) Remove multi-agent-research tutorial
HamadaSalhab Jan 20, 2025
db4e4ab
Merge pull request #1067 from julep-ai/d/tutorials
Vedantsahai18 Jan 20, 2025
813836a
misc fix
Vedantsahai18 Jan 20, 2025
3907fcd
wip: get started + advanve topics
Vedantsahai18 Jan 20, 2025
525ff85
Merge pull request #1070 from julep-ai/mintlify-vedant
Vedantsahai18 Jan 21, 2025
028da2f
wip(documentation): Notes on agents
creatorrr Jan 21, 2025
6c277f1
wip(documentation): added agent concept structure
Vedantsahai18 Jan 21, 2025
a50cae1
wip(documentation): agent structure finalized
Vedantsahai18 Jan 21, 2025
fffa570
docs(advanced-topics): Add python expression page
HamadaSalhab Jan 21, 2025
373050a
docs(advanced-topics): Add files page
HamadaSalhab Jan 21, 2025
5704ae0
docs(advanced-topics): Add Agentic Patterns page (wip)
HamadaSalhab Jan 21, 2025
ae796ec
docs(advanced-topics): Modify Agentic Patterns page
HamadaSalhab Jan 21, 2025
09e7266
wip: Add tasks concept
creatorrr Jan 21, 2025
0ac13ae
wip(documentation): refactors + added data to agents,tasks in concept
Vedantsahai18 Jan 22, 2025
3b37ece
chore: minor fix
Vedantsahai18 Jan 22, 2025
9b9c70f
chore: minor fixes + refactors
Vedantsahai18 Jan 22, 2025
e771773
wip(documentation): refactors + concepts structure added
Vedantsahai18 Jan 22, 2025
eba1a01
Merge branch 'mintlify-docs' into d/advanced-topics
HamadaSalhab Jan 22, 2025
d3e2f0f
docs(advanced-topics): Refactor Agentic Patterns page
HamadaSalhab Jan 22, 2025
c26d921
docs(advanced-topics): Refactor Files page
HamadaSalhab Jan 22, 2025
aab611f
docs(advanced-topics): Add function signatures to Python Expressions …
HamadaSalhab Jan 22, 2025
6b6b27e
docs(advanced-topics): Point available functions to Python Expression…
HamadaSalhab Jan 22, 2025
7336f74
Merge pull request #1073 from julep-ai/d/advanced-topics
HamadaSalhab Jan 22, 2025
fe68e4e
docs(advanced-topics): Add chart images to Agentic Patterns Page
HamadaSalhab Jan 22, 2025
e7bb50c
docs(advanced-topics): Add Sessions page
HamadaSalhab Jan 22, 2025
c1e3b61
docs(core-concepts): Add Executions page
HamadaSalhab Jan 22, 2025
9549b3b
docs(cpore-concepts): Add Users page
HamadaSalhab Jan 22, 2025
0b95b66
docs(core-concepts): Add Docs page (wip)
HamadaSalhab Jan 22, 2025
b7563da
Merge pull request #1077 from julep-ai/d/advanced-topics
HamadaSalhab Jan 22, 2025
b63db74
wip(documentation): fixes
Vedantsahai18 Jan 23, 2025
e4deeb3
chore: o1 access enabled
Vedantsahai18 Jan 23, 2025
4e3b069
wip: refactors, fixes
Vedantsahai18 Jan 23, 2025
e36b301
docs(concepts): Finalize docs page content
HamadaSalhab Jan 23, 2025
3afce50
feat(documentation): Add dark version of hero image
creatorrr Jan 23, 2025
9b19b5b
Merge branch 'dev' into mintlify-docs
HamadaSalhab Jan 23, 2025
bd70f2d
Remove old `docs` directory
HamadaSalhab Jan 23, 2025
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
32 changes: 32 additions & 0 deletions documentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Mintlify Starter Kit

Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including

- Guide pages
- Navigation
- Customizations
- API Reference pages
- Use of popular components

### Development

Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command

```
npm i -g mintlify
```

Run the following command at the root of your documentation (where mint.json is)

```
mintlify dev
```

### Publishing Changes

Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.

#### Troubleshooting

- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`
4 changes: 4 additions & 0 deletions documentation/api-reference/endpoint/create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 'Create Plant'
openapi: 'POST /plants'
---
4 changes: 4 additions & 0 deletions documentation/api-reference/endpoint/delete.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 'Delete Plant'
openapi: 'DELETE /plants/{id}'
---
4 changes: 4 additions & 0 deletions documentation/api-reference/endpoint/get.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: 'Get Plants'
openapi: 'GET /plants'
---
33 changes: 33 additions & 0 deletions documentation/api-reference/introduction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: 'Introduction'
description: 'Example section for showcasing API endpoints'
---

<Note>
If you're not looking to build API reference documentation, you can delete
this section by removing the api-reference folder.
</Note>

## Welcome

There are two ways to build API documentation: [OpenAPI](https://mintlify.com/docs/api-playground/openapi/setup) and [MDX components](https://mintlify.com/docs/api-playground/mdx/configuration). For the starter kit, we are using the following OpenAPI specification.

<Card
title="Plant Store Endpoints"
icon="leaf"
href="https://github.com/mintlify/starter/blob/main/api-reference/openapi.json"
>
View the OpenAPI specification file
</Card>

## Authentication

All API endpoints are authenticated using Bearer tokens and picked up from the specification file.

```json
"security": [
{
"bearerAuth": []
}
]
```
195 changes: 195 additions & 0 deletions documentation/api-reference/openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"openapi": "3.0.1",
"info": {
"title": "OpenAPI Plant Store",
"description": "A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification",
"license": {
"name": "MIT"
},
"version": "1.0.0"
},
"servers": [
{
"url": "http://sandbox.mintlify.com"
}
],
"security": [
{
"bearerAuth": []
}
],
"paths": {
"/plants": {
"get": {
"description": "Returns all plants from the system that the user has access to",
"parameters": [
{
"name": "limit",
"in": "query",
"description": "The maximum number of results to return",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Plant response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plant"
}
}
}
}
},
"400": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"post": {
"description": "Creates a new plant in the store",
"requestBody": {
"description": "Plant to add to the store",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewPlant"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "plant response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Plant"
}
}
}
},
"400": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/plants/{id}": {
"delete": {
"description": "Deletes a single plant based on the ID supplied",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of plant to delete",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"204": {
"description": "Plant deleted",
"content": {}
},
"400": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Plant": {
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"description": "The name of the plant",
"type": "string"
},
"tag": {
"description": "Tag to specify the type",
"type": "string"
}
}
},
"NewPlant": {
"allOf": [
{
"$ref": "#/components/schemas/Plant"
},
{
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"description": "Identification number of the plant",
"type": "integer",
"format": "int64"
}
}
}
]
},
"Error": {
"required": [
"error",
"message"
],
"type": "object",
"properties": {
"error": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
}
}
97 changes: 97 additions & 0 deletions documentation/development.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: 'Development'
description: 'Learn how to preview changes locally'
---

<Info>
**Prerequisite**: Please install Node.js (version 19 or higher) before proceeding.
</Info>

Step 1. Install Mintlify on your OS:

<CodeGroup>

```bash npm
npm i -g mintlify
```

```bash yarn
yarn global add mintlify
```

</CodeGroup>

Step 2. Go to the docs are located (where you can find `mint.json`) and run the following command:

```bash
mintlify dev
```

The documentation website is now available at `http://localhost:3000`.

### Custom Ports

Mintlify uses port 3000 by default. You can use the `--port` flag to customize the port Mintlify runs on. For example, use this command to run in port 3333:

```bash
mintlify dev --port 3333
```

You will see an error like this if you try to run Mintlify in a port that's already taken:

```md
Error: listen EADDRINUSE: address already in use :::3000
```

## Mintlify Versions

Each CLI is linked to a specific version of Mintlify. Please update the CLI if your local website looks different than production.

<CodeGroup>

```bash npm
npm i -g mintlify@latest
```

```bash yarn
yarn global upgrade mintlify
```

</CodeGroup>

## Deployment

<Tip>
Unlimited editors available under the [Pro
Plan](https://mintlify.com/pricing) and above.
</Tip>

You should see the following if the deploy successfully went through:

<Frame>
<img src="/images/checks-passed.png" style={{ borderRadius: '0.5rem' }} />
</Frame>

## Troubleshooting

Here's how to solve some common problems when working with the CLI.

<AccordionGroup>
<Accordion title="Mintlify is not loading">
Update to Node v18. Run `mintlify install` and try again.
</Accordion>
<Accordion title="No such file or directory on Windows">
Go to the `C:/Users/Username/.mintlify/` directory and remove the `mint`
folder. Then Open the Git Bash in this location and run `git clone
https://github.com/mintlify/mint.git`.

Repeat step 3.

</Accordion>
<Accordion title="Getting an unknown error">
Try navigating to the root of your device and delete the ~/.mintlify folder.
Then run `mintlify dev` again.
</Accordion>
</AccordionGroup>

Curious about what changed in a CLI version? [Check out the CLI changelog.](/changelog/command-line)
Loading
Loading