-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from abvthecity/andrew/docs-migration
🌿 Fern Docs migration
- Loading branch information
Showing
173 changed files
with
11,426 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: preview-docs | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Fern | ||
run: npm install -g fern-api | ||
|
||
- name: Generate preview URL | ||
id: generate-docs | ||
env: | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
run: | | ||
OUTPUT=$(fern generate --docs --preview 2>&1) || true | ||
echo "$OUTPUT" | ||
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') | ||
echo "Preview URL: $URL" | ||
echo "🌿 Preview your docs: $URL" > preview_url.txt | ||
- name: Comment URL in PR | ||
uses: thollander/[email protected] | ||
with: | ||
filePath: preview_url.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: publish-docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/heads/main') && github.run_number > 1 }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Fern | ||
run: npm install -g fern-api | ||
|
||
- name: Publish Docs | ||
env: | ||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | ||
run: fern generate --docs --log-level debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
generated | ||
.mise.toml | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# OctoAI Documentation 🐙 | ||
|
||
This is the source of the OctoAI's public facing documentation found at [octo.ai/docs](https://octo.ai/docs). These docs utilize `.mdx` files with the [Mintlify](https://mintlify.com/) service/framework. | ||
|
||
## Run Locally 🏃♂️ | ||
|
||
**NOTE:** `node` is required for local development of these docs, if you do not have `node` on your system refer to the [NodeJS documentation](https://nodejs.org/en/download/package-manager). | ||
|
||
Clone the project using | ||
|
||
```bash | ||
# via URL | ||
git clone https://github.com/octoml/docs.git | ||
|
||
# via SSH | ||
git clone [email protected]:octoml/docs.git | ||
``` | ||
|
||
Go to the project directory | ||
|
||
```bash | ||
cd docs | ||
``` | ||
|
||
Globally install the Mintlify CLI | ||
|
||
```bash | ||
npm i -g mintlify | ||
``` | ||
|
||
Start the server | ||
|
||
```bash | ||
mintlify dev | ||
``` | ||
|
||
## Development | ||
|
||
It is highly recommended to use the [MDX VSCode Extension](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx) if using the VSCode IDE. | ||
|
||
The `mint.json` file is the core configuration file where you can specify various settings and properties to customize your documentation. These settings include structure, API configurations, integrations, analytics, redirects, and search engine optimization. | ||
|
||
For writing content, the [Mintlify Docs](https://mintlify.com/docs/page) break down the MDX standards required. | ||
|
||
There are also Components provided by Mintlify that can be used to add interactivity and styling to the docs. Those can be found [here](https://mintlify.com/docs/content/components/accordions). | ||
|
||
### OpenAPI | ||
|
||
OpenAPI documentation is autogenerated from the parsed OpenAPI spec. See [Mintlify Docs](https://mintlify.com/docs/api-playground/openapi/setup) for details. | ||
|
||
All OpenAPI specs are in the `~/openapi-specs` directory. | ||
|
||
The docs generated by the specs are held in the `~/api-reference` directory. | ||
|
||
## Deployment 🖥️ | ||
|
||
Merging to `main` will kick off an automatic deployment to production. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
paths: | ||
/generate/ssd: | ||
post: | ||
summary: "Generate SSD" | ||
x-fern-sdk-method-name: generateSsd | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
/generate/controlnet-sdxl: | ||
post: | ||
summary: "Generate ControlNet SDXL" | ||
x-fern-sdk-method-name: generateControlnetSdxl | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
/generate/controlnet-sd15: | ||
post: | ||
summary: "Generate ControlNet SD1.5" | ||
x-fern-sdk-method-name: generateControlnetSd15 | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
/generate/sdxl: | ||
post: | ||
summary: "Generate SDXL" | ||
x-fern-sdk-method-name: generateSdxl | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
/generate/sd: | ||
post: | ||
summary: "Generate SD1.5" | ||
x-fern-sdk-method-name: generateSd | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
/generate/svd: | ||
post: | ||
summary: "Generate SVD Animations" | ||
x-fern-sdk-method-name: generateSvd | ||
servers: | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
- url: https://image.octoai.cloud | ||
x-name: ImageGen | ||
# Hide healthcheck | ||
/healthcheck: | ||
get: | ||
x-fern-ignore: true | ||
|
||
components: | ||
securitySchemes: | ||
BearerAuth: | ||
type: http | ||
scheme: bearer | ||
x-fern-bearer: | ||
name: apiKey | ||
env: OCTOAI_API_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
openapi: ./openapi/openapi.json | ||
openapi-overrides: ./openapi/openapi-overrides.yml |
Oops, something went wrong.