Skip to content

Commit

Permalink
Add Mintlify Docs (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed Jan 14, 2024
1 parent 778b5ec commit 301f090
Show file tree
Hide file tree
Showing 81 changed files with 2,827 additions and 2,686 deletions.
7 changes: 7 additions & 0 deletions docs/README.md
@@ -0,0 +1,7 @@
# Mintlify Starter Kit

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

```
pnpm mintlify dev
```
3 changes: 3 additions & 0 deletions docs/_snippets/snippet-example.mdx
@@ -0,0 +1,3 @@
## My Snippet

<Info>This is an example of a reusable snippet</Info>
Expand Up @@ -18,7 +18,6 @@ SwiftGraphQL's cache works like cache in the browser - once you've queried somet

Each SwiftGraphQL query contains a deterministic key that's constructed from the selection and variables.

<!-- Image? -->

Once a result comes in, it's indefinitely cached using this key. Therefore, if you send the same query again, we check the in-memory cache for possible existing results and use them instead.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions docs/favicon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion website/docs/README.mdx → docs/introduction.mdx
@@ -1,5 +1,5 @@
---
title: Getting Started
title: Introduction
---

## Overview
Expand Down
21 changes: 21 additions & 0 deletions docs/logo/swift.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions docs/mint.json
@@ -0,0 +1,49 @@
{
"$schema": "https://mintlify.com/schema.json",
"name": "SwiftGraphQL",
"logo": {
"dark": "/logo/swift.svg",
"light": "/logo/swift.svg"
},
"favicon": "/favicon.svg",
"colors": {
"primary": "#F25C40",
"light": "#F25C40",
"dark": "#F25C40",
"anchors": {
"from": "#F25C40",
"to": "#F25C40"
}
},
"topbarLinks": [],
"topbarCtaButton": {
"name": "Get Started",
"url": "installation"
},
"tabs": [],
"anchors": [
{
"name": "Documentation",
"icon": "book-open-cover",
"url": "introduction"
}
],
"navigation": [
{
"group": "Get Started",
"pages": ["introduction", "why", "installation", "network", "querying", "subscriptions", "errors", "faq"]
},
{
"group": "Essentials",
"pages": ["guides/auth", "guides/uploads", "guides/filestructure"]
},
{
"group": "Advanced",
"pages": ["advanced/scalars", "advanced/cache", "advanced/exchanges", "advanced/how", "advanced/selection"]
}
],
"footerSocials": {
"twitter": "https://twitter.com/maticzav",
"github": "https://github.com/maticzav"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -8,6 +8,7 @@
"@types/prettier": "^2.3.2",
"husky": "^4.3.8",
"marked": "^2.1.3",
"mintlify": "^4.0.104",
"prettier": "^2.3.2",
"ts-node": "^10.2.1",
"ts-node-dev": "^1.1.8",
Expand Down

0 comments on commit 301f090

Please sign in to comment.