generated from mintlify/starter
-
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.
Add Trunk Check for linting, address issues
- Loading branch information
1 parent
9b3f5c8
commit ceeb8ac
Showing
28 changed files
with
217 additions
and
133 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,4 @@ | ||
self-hosted-runner: | ||
# Labels of self-hosted runner in array of string | ||
labels: | ||
- warp-ubuntu-latest-x64-2x |
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,20 +1,24 @@ | ||
name: No Broken Links | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
no-broken-links: | ||
name: Broken Link Checker | ||
runs-on: warp-ubuntu-latest-x64-2x | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Run mintlify script | ||
- name: Run Mintlify Script | ||
run: npx mintlify broken-links |
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,20 +1,24 @@ | ||
name: ci-lint | ||
name: Vale | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
vale: | ||
name: vale | ||
name: Vale Lanugage Review | ||
runs-on: warp-ubuntu-latest-x64-2x | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: errata-ai/vale-action@reviewdog | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GH_READER}} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
vale_flags: "--glob=*.mdx" | ||
vale_flags: --glob=*.mdx | ||
fail_on_error: true |
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,4 @@ | ||
{ | ||
"MD013": false, | ||
"MD033": false | ||
} |
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,9 @@ | ||
*out | ||
*logs | ||
*actions | ||
*notifications | ||
*tools | ||
plugins | ||
user_trunk.yaml | ||
user.yaml | ||
tmp |
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,7 @@ | ||
rules: | ||
quoted-strings: | ||
required: only-when-needed | ||
extra-allowed: ["{|}"] | ||
key-duplicates: {} | ||
octal-values: | ||
forbid-implicit-octal: true |
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,14 @@ | ||
module.exports = { | ||
plugins: [ | ||
{ | ||
name: "preset-default", | ||
params: { | ||
overrides: { | ||
removeViewBox: false, // https://github.com/svg/svgo/issues/1128 | ||
sortAttrs: true, | ||
removeOffCanvasPaths: true, | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
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,40 @@ | ||
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml | ||
version: 0.1 | ||
|
||
cli: | ||
version: 1.21.0 | ||
|
||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v1.4.5 | ||
uri: https://github.com/trunk-io/plugins | ||
|
||
runtimes: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
|
||
lint: | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- git-diff-check | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
ignore: | ||
- linters: [ALL] | ||
paths: | ||
- styles | ||
|
||
actions: | ||
enabled: | ||
- trunk-announce | ||
- trunk-check-pre-push | ||
- trunk-fmt-pre-commit | ||
- trunk-upgrade-available |
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,24 +1,24 @@ | ||
# Docs | ||
|
||
### Development | ||
## Development | ||
|
||
Install the [Mintlify CLI](https://www.npmjs.com/package/mintlify) to preview the documentation changes locally. To install, use the following command | ||
|
||
``` | ||
```bash | ||
npm i -g mintlify | ||
``` | ||
|
||
Run the following command at the root of your documentation (where mint.json is) | ||
|
||
``` | ||
```bash | ||
mintlify dev | ||
``` | ||
|
||
### Publishing Changes | ||
## Publishing Changes | ||
|
||
Changes will be deployed to production automatically after pushing to the `main` branch. | ||
|
||
#### Troubleshooting | ||
### 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` |
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,21 +1,24 @@ | ||
--- | ||
title: Define Schema | ||
description: '' | ||
description: "" | ||
--- | ||
|
||
<Warning>A new approach for schema definition is currently in development. Expect this to be simpler in the next few weeks. Feedback welcomed!</Warning> | ||
<Warning> | ||
A new approach for schema definition is currently in development. Expect this | ||
to be simpler in the next few weeks. Feedback welcomed! | ||
</Warning> | ||
|
||
The schema exposes functions on your project's API endpoint. Define your schema in the `schema.graphql` file in your project. | ||
|
||
```graphql schema.graphql | ||
directive @hm_function on FIELD_DEFINITION | ||
|
||
type Query { | ||
classifySentiment(text: String!): String! @lambda @hm_function | ||
classifySeverity(text: String!): String! @lambda @hm_function | ||
classifySentiment(text: String!): String! @lambda @hm_function | ||
classifySeverity(text: String!): String! @lambda @hm_function | ||
} | ||
``` | ||
|
||
Hypermode follows [GraphQL's standard definition language](https://graphql.org/learn/schema/). Add your function signature and the [directive](https://graphql.org/learn/queries/#directives) `@lambda @hm_function` to register the function on the project's endpoint. The signature must match the exposed function in your `index.ts` file. | ||
|
||
When deployed, your GraphQL API is available on the `/graphql` path from your project's endpoint. The endpoint is visible in the Hypermode Console on the Project Home screen. | ||
When deployed, your GraphQL API is available on the `/graphql` path from your project's endpoint. The endpoint is visible in the Hypermode Console on the Project Home screen. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 +1,8 @@ | ||
--- | ||
title: Function Observability | ||
description: '' | ||
description: "" | ||
--- | ||
|
||
When you invoke a function within your project, the service records each execution. In addition to duration, logs are available for each execution to enable integrated debugging. | ||
|
||
To access the run history, navigate to the Function Runs tab of your project within the Hypermode Console. | ||
To access the run history, navigate to the Function Runs tab of your project within the Hypermode Console. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 +1,19 @@ | ||
--- | ||
title: Project Manifest | ||
description: '' | ||
description: "" | ||
mode: "wide" | ||
--- | ||
|
||
The manifest in a Hypermode project allows you to configure the resources your functions have access to at runtime. You define the manifest in the `hypermode.json` and `schema.graphql` files within the root of your project directory. | ||
|
||
<CardGroup cols={2}> | ||
<Card | ||
title="Models" | ||
icon="message-plus" | ||
href="/define-models" | ||
> | ||
<Card title="Models" icon="message-plus" href="/define-models"> | ||
Define inference services for use in your functions | ||
</Card> | ||
<Card | ||
title="Hosts" | ||
icon="server" | ||
href="/define-hosts" | ||
> | ||
<Card title="Hosts" icon="server" href="/define-hosts"> | ||
Establish connectivity for models and other external endpoints | ||
</Card> | ||
<Card | ||
title="Schema" | ||
icon="connectdevelop" | ||
href="/define-schema" | ||
> | ||
<Card title="Schema" icon="connectdevelop" href="/define-schema"> | ||
Expose functions on your project's API endpoint | ||
</Card> | ||
</CardGroup> | ||
</CardGroup> |
Oops, something went wrong.