Skip to content

Commit 706335b

Browse files
authored
Property component (#45)
* Scaffolded property component * Got new property rendering working for Markdown * Not terrible pure CSS implementation * Brought in minimal Mistral example * Better dev script * package.json fixes * Finally got something decent working * Docusaurus finally works * Brought in Mistral's theme * Styling tweaks * Wrapped up styling for docusaurus * Abstracted most logic * Added dynamic font size measurur * Set up Mistral in Nextra * Finished Nextra styles * Renamed Mistral job * Renamed petstore job * Introduced our own tokens * Version bump
1 parent 381851a commit 706335b

File tree

177 files changed

+97289
-54860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+97289
-54860
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Mistral Docusaurus Example
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
merge_group:
9+
10+
jobs:
11+
build-and-test:
12+
name: Mistral Docusaurus Example Build
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "24"
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Build Docs MD
24+
working-directory: ./packages/docs-md
25+
run: npm run build
26+
- name: Build Docusaurus
27+
working-directory: ./examples/docusaurus/mistral
28+
run: npm run build

.github/workflows/docusaurus-example.yaml renamed to .github/workflows/petstore-docusaurus-example.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docusaurus Example
1+
name: Petstore Docusaurus Example
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build-and-test:
12-
name: Docusaurus Example Build
12+
name: Petstore Docusaurus Example Build
1313
runs-on: ubuntu-latest
1414

1515
steps:

.vscode/launch.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,29 @@
77
{
88
"type": "node",
99
"request": "launch",
10-
"name": "Mistral",
10+
"name": "Mistral (Docusaurus)",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}/packages/docs-md/src/cli/cli.ts",
15+
"runtimeArgs": ["--experimental-strip-types"],
16+
"cwd": "${workspaceFolder}/examples/docusaurus/mistral"
17+
},
18+
{
19+
"type": "node",
20+
"request": "launch",
21+
"name": "Mistral (Nextra)",
22+
"skipFiles": [
23+
"<node_internals>/**"
24+
],
25+
"program": "${workspaceFolder}/packages/docs-md/src/cli/cli.ts",
26+
"runtimeArgs": ["--experimental-strip-types"],
27+
"cwd": "${workspaceFolder}/examples/nextra/mistral"
28+
},
29+
{
30+
"type": "node",
31+
"request": "launch",
32+
"name": "Mistral (External)",
1133
"skipFiles": [
1234
"<node_internals>/**"
1335
],
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 2,
3+
"label": "API Reference",
4+
"collapsible": true,
5+
"collapsed": false
6+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebar_position: 1
3+
sidebar_label: About
4+
---
5+
6+
import "@speakeasy-api/docs-md/docusaurus.css";
7+
8+
9+
# About Mistral AI API
10+
11+
_Version: 1.0.0_
12+
13+
Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
14+
15+
Servers
16+
17+
- https://api.mistral.ai
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"position": 3,
3+
"label": "Operations",
4+
"collapsible": true,
5+
"collapsed": false
6+
}

examples/docusaurus/mistral/docs/api/tag/agents.mdx

Lines changed: 1760 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)