Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
a8a35ae
Attempted fix for integration test failing on CI (#2024)
AnthonyMDev Nov 9, 2021
ece5b5b
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.6 (#2026)
renovate[bot] Nov 10, 2021
55c5db8
Update apollo-tooling to v2.33.9 (#2028)
calvincestari Nov 12, 2021
8d48031
Gateway clarification based on license change
hwillson Nov 12, 2021
46957a3
Update SQLite.swift to version 13.0 (#2015)
Iron-Ham Nov 17, 2021
d93568f
Release `0.50.0` (#2031)
calvincestari Nov 17, 2021
3262cd0
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.8 (#2038)
renovate[bot] Nov 18, 2021
f1707b4
Update caching.mdx (#2042)
bogdanbeczkowski Nov 24, 2021
c3687d2
Update ROADMAP.md (#2053)
calvincestari Dec 7, 2021
f192578
Clean up Github API for performance tests
AnthonyMDev Dec 13, 2021
c3969d1
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.9 (#2062)
renovate[bot] Dec 13, 2021
dbd7b87
Make filesystem diagram a bit easier to understand (#2063)
designatednerd Dec 14, 2021
67d86ae
Allow periods in arguments to be ignored when parsing cacheKeys (#2057)
Iron-Ham Dec 15, 2021
5079b14
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.11 (#2068)
renovate[bot] Dec 16, 2021
4d8b5bb
fix(deps): update dependency gatsby-theme-apollo-docs to v5.3.12 (#2074)
renovate[bot] Dec 17, 2021
95ee510
Add tutorial on subscriptions to match Android (#2072)
designatednerd Dec 20, 2021
0358975
Bump mermaid from 8.13.6 to 8.13.8 in /docs (#2083)
dependabot[bot] Jan 6, 2022
d46bd37
chore(deps): update dependency engine.io to 4.1.2 [security] (#2094)
renovate[bot] Jan 13, 2022
60ecd70
chore(deps): update dependency follow-redirects to 1.14.7 [security] …
renovate[bot] Jan 13, 2022
d44820d
chore(deps): update dependency node-forge to 1.0.0 [security] (#2095)
renovate[bot] Jan 13, 2022
fbeee46
Add note about acceptable extensions for types of schema file. (#2059)
designatednerd Jan 19, 2022
a4e7b4f
Docs: Bump to Gatsby v3 (#2104)
jgarrow Jan 25, 2022
0c9aa54
fix(deps): pin dependency gatsby-theme-apollo-docs to 6.0.0 (#2113)
renovate[bot] Jan 26, 2022
161873b
fix(deps): pin dependency gatsby to 3.14.6 (#2123)
renovate[bot] Jan 29, 2022
63eacd1
Edits to intro and installation docs (#2125)
Feb 1, 2022
eb6cbe1
Fix tutorial URL and tweak downloading a schema article (#2133)
Feb 3, 2022
7538bef
Split advanced "Creating a client" content into separate article (#2143)
Feb 7, 2022
ca88016
Disable flaky integration test
AnthonyMDev Feb 8, 2022
f51e7c4
Update gatsby config to deploy 1.0 alpha docs
AnthonyMDev Feb 8, 2022
ec034e8
Update roadmap after 1.0.0-alpha.1 release (#2145)
calvincestari Feb 9, 2022
0beea3d
[v1.0.0 Alpha 1] JavascriptError @unchecked Sendable (#2147)
TizianoCoroneo Feb 11, 2022
bf4cb5a
Update documentation to clarify schema download format and filename (…
calvincestari Feb 14, 2022
3c58987
chore(deps): update dependency follow-redirects to 1.14.8 [security] …
renovate[bot] Feb 14, 2022
f409e81
Update license copyright notice
calvincestari Feb 15, 2022
cf713c1
Delete Jazzy config - not supported
calvincestari Feb 16, 2022
c188637
Update list of active maintainers
calvincestari Feb 16, 2022
2b607ec
[Fix #2170] Do not refetch query watcher from server after cache miss…
AnthonyMDev Feb 25, 2022
bf86e01
Add `graphql-ws` protocol support (#2168)
calvincestari Feb 25, 2022
8b6a50a
chore(deps): update dependency prismjs to 1.27.0 [security] (#2179)
renovate[bot] Feb 28, 2022
cb5f1ce
Release 0.51.0 (#2086)
calvincestari Feb 28, 2022
664c1f1
Enable lazy access to the request body creation for leverage in custo…
rickfast Mar 3, 2022
52bbeac
Release `0.51.1` (#2188)
calvincestari Mar 7, 2022
6aee64a
Updates for new docs infra (#2197)
trevorblades Mar 15, 2022
f916c5f
Remove files from old Gatsby docs theme (#2202)
jgarrow Mar 15, 2022
62f4554
Clear body on APQ retry in JSONRequest (#2206)
AnthonyMDev Mar 18, 2022
729fedb
Release 0.51.2 (#2207)
AnthonyMDev Mar 18, 2022
08a41ba
Fix changelog version.
AnthonyMDev Mar 18, 2022
fecf44b
Add netlify config for deploy previews (#2208)
trevorblades Mar 22, 2022
b25d1de
Add codegen option for excludes (#2205)
bannzai Mar 23, 2022
a5f6f5d
Fix typo (#2212)
changm4n Mar 23, 2022
b4f58e2
Start a docs production deploy when docs changes get merged (#2211)
trevorblades Mar 23, 2022
4772297
Bump minimist from 1.2.5 to 1.2.6 in /SimpleUploadServer (#2214)
dependabot[bot] Mar 23, 2022
79876e5
Bump node-fetch from 2.6.6 to 2.6.7 in /SimpleUploadServer (#2215)
dependabot[bot] Mar 23, 2022
a563c40
Add note to tutorial about the `graphql-ws` subscription library (#2219)
rkoron007 Mar 25, 2022
c8c3951
Update tutorial-obtain-schema.md (#2225)
Carrione Mar 29, 2022
26351b5
Update tutorial-execute-query.md (#2228)
Carrione Mar 29, 2022
ab160e4
chore: Update Xcode build tool versions on CircleCI (#2242)
calvincestari Apr 8, 2022
57f329d
chore: Update roadmap
calvincestari Apr 15, 2022
b9a6116
fix: Sandbox documentation links (#2254)
martinbonnin Apr 21, 2022
09003c7
ci: Update xcode image to fix Node version mismatch
calvincestari Apr 21, 2022
fc260c7
ci: Update Node version to match what is installed with Xcode 13.3.1 …
calvincestari Apr 21, 2022
90d2c34
chore: updates roadmap (#2258)
jpvajda Apr 27, 2022
51c686f
Update build phases example to propagate errors to Xcode (#2260)
adam-zethraeus May 3, 2022
eecef09
Add a comment about a new use of the X-APOLLO-OPERATION-NAME header (…
glasser May 5, 2022
c78e0b1
Set permissions for GitHub actions (#2248)
neilnaveen May 16, 2022
858c769
updates roadmap for june 2022 (#2295)
jpvajda Jun 6, 2022
51c81bd
Update CircleCI tool versions (#2304)
calvincestari Jun 8, 2022
402dd16
fix: `graphql_transport_ws` protocol should send 'complete' to end su…
calvincestari Jun 17, 2022
c0a8ce3
Replace print statement with CodegenLogger.log (#2348)
hiltonc Jun 29, 2022
d26751a
Fix buttons on docs root (#2369)
Jul 12, 2022
f214c8e
Expose GraphQLResultError Path String (#2361)
Jul 12, 2022
414cc63
Revert "Fix buttons on docs root (#2369)" (#2371)
trevorblades Jul 12, 2022
0c43e49
release: 0.52.0 (#2370)
calvincestari Jul 14, 2022
bfa089b
Fix typo (#2379)
mischa-hildebrand Jul 18, 2022
b2ed705
Fix incorrect parameter name (#2380)
mischa-hildebrand Jul 18, 2022
135acc4
chore: Update ROADMAP for Beta release cycle (#2393)
calvincestari Jul 25, 2022
928f9ea
Remove all instances of bitcode as not supported in Xcode 14 (#2398)
stareque-atlassian Jul 28, 2022
42646f7
Release 0.53.0 (#2406)
calvincestari Jul 29, 2022
5f31e2a
fix: checkout at tag with legacy optionals behavior (#2412)
calvincestari Aug 2, 2022
323ed07
Update version in Swift Scripting docs (#2416)
redryerye Aug 3, 2022
ddc8953
Re-added support for iOS 11
adamayoung Aug 18, 2022
7482d49
Update to 0.53.0
adamayoung Aug 18, 2022
09895bf
Update dependencies
adamayoung Aug 18, 2022
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
Prev Previous commit
Next Next commit
Updates for new docs infra (apollographql#2197)
* Prepare ios docs for new infra

* Add sidebar config

* Update ExpansionPanelList components

* Update code fences

* Move _redirects file

* Fix links

* Update docset title

* Update sidebar config

* Add version to ios docs config

* Remove imports and fix links

* Remove mb from homepage button

* Add algolia filters
  • Loading branch information
trevorblades authored Mar 15, 2022
commit 6aee64a1af6a02336447733334b14a9bd7093196
28 changes: 12 additions & 16 deletions docs/shared/carthage-installation-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Carthage Installation">

<ExpansionPanelList>
<ExpansionPanelListItem number="1">
<ExpansionPanelListItem>

<h4>Set up your `Cartfile`</h4>
#### Set up your `Cartfile`

Add `github "apollographql/apollo-ios"` to your Cartfile.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="2">
<ExpansionPanelListItem>

<h4>Check out and build dependencies</h4>
#### Check out and build dependencies

Run `carthage update --use-xcframeworks --platform ios` (or `--platform ios,macos` to build both Mac and iOS).

> **Note:** There's an issue with the way Carthage uses Lipo in the Xcode 12 GM. Please `cd` into `[YourProject]/Carthage/Checkouts/apollo-ios/scripts` and then run `./carthage-build-workaround.sh` to resolve this build issue.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">
<ExpansionPanelListItem>

<h4>Add built frameworks to your project</h4>
#### Add built frameworks to your project

Drag and drop `Apollo.framework` from the appropriate `Carthage/Build/iOS` or `Carthage/Build/Mac` folder to the **Embedded Binaries** section of your application target's **General** settings tab. This should also cause them to appear in the **Linked Frameworks And Libraries** section automatically.
- To include the `ApolloSQLite` library, also drag `ApolloSQLite.framework` and `SQLite.framework` to this area.
- To include the `ApolloWebSocket` library, also drag `ApolloWebSocket.framework` and `Starscream.framework` to this area.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="4">
<ExpansionPanelListItem>

<h4>Work around Carthage submission bug</h4>
#### Work around Carthage submission bug

On your application target's **Build Phases** settings tab, click the **+** icon and choose **New Run Script Phase**. Create a Run Script in which you specify your shell (e.g., `bin/sh`) and add the following contents to the script area below the shell:

Expand All @@ -53,8 +47,10 @@ Again, if you're adding `ApolloSQLite` or `ApolloWebSocket`, please make sure to
This script works around an [App Store submission bug](http://www.openradar.me/radar?id=6409498411401216) triggered by universal binaries and ensures that necessary bitcode-related files and dSYMs are copied when archiving.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="check">
You're done!
<ExpansionPanelListItem>

You're done!

</ExpansionPanelListItem>
</ExpansionPanelList>

Expand Down
6 changes: 0 additions & 6 deletions docs/shared/carthage-run-script-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Carthage Run Script">

The scripts and binaries that you need to generate code are included in the `Carthage/Checkouts` folder. If this folder is not checked into version control, all developers on a team (and your CI machine) need to run `carthage checkout` when changes are made to the version to ensure they have the correct underlying binaries and scripts.
Expand Down
24 changes: 10 additions & 14 deletions docs/shared/pods-installation-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="CocoaPods Installation">

<ExpansionPanelList>
<ExpansionPanelListItem number="1">
<ExpansionPanelListItem>

<h4>Install or update CocoaPods</h4>
#### Install or update CocoaPods

Because Apollo iOS uses Swift 5, you need to use CocoaPods version `1.7.0` or later. You can install CocoaPods with the following command:

Expand All @@ -18,28 +12,30 @@ Because Apollo iOS uses Swift 5, you need to use CocoaPods version `1.7.0` or la
```

</ExpansionPanelListItem>
<ExpansionPanelListItem number="2">
<ExpansionPanelListItem>

<h4>Add dependencies</h4>
#### Add dependencies

Add `pod "Apollo"` to your Podfile.

- To include the `ApolloSQLite` framework, also add `pod "Apollo/SQLite"`
- To include the `ApolloWebSocket` framework, also add `pod "Apollo/WebSocket"`

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">
<ExpansionPanelListItem>

Run `pod install`.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="4">
<ExpansionPanelListItem>

Use the `.xcworkspace` file generated by CocoaPods to work on your project.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="check">
You're done!
<ExpansionPanelListItem>

You're done!

</ExpansionPanelListItem>
</ExpansionPanelList>

Expand Down
6 changes: 0 additions & 6 deletions docs/shared/pods-run-script-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="CocoaPods Run Script">

Our CocoaPods install includes the code-generation scripts and binaries of the `apollo` CLI client as files which will not be added to the framework, but which you can still call from a Run Script Build Phase. Add the following to the Run Script:
Expand Down
20 changes: 8 additions & 12 deletions docs/shared/spm-installation-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Swift Package Manager Installation">

> **Note:** These instructions use the Xcode 13 UI. Xcode 11 is the first version of Xcode that integrates Swift Package manager, whereas older versions require using the command line. If you're using an older version of Xcode, we recommend using CocoaPods instead.

<ExpansionPanelList>
<ExpansionPanelListItem number="1">
<ExpansionPanelListItem>

Go to **File > Add Packages...**

<img class="screenshot" src="../source/screenshot/spm_packages_add_package.jpg" alt="Adding an SPM package" width="300" />

</ExpansionPanelListItem>
<ExpansionPanelListItem number="2">
<ExpansionPanelListItem>

In the dialog that appears, paste the URL of the Apollo iOS GitHub repo (`https://github.com/apollographql/apollo-ios.git`) into the search bar, then select the `apollo-ios` package that appears:

<img class="screenshot" src="../source/screenshot/spm_packages_dialog.jpg" alt="Pasting the Apollo iOS GitHub URL" />

</ExpansionPanelListItem>
<ExpansionPanelListItem number="3">
<ExpansionPanelListItem>

Select which version you want to use ([see version history](https://github.com/apollographql/apollo-ios/releases)), then click **Add Package**. Note that Xcode might not automatically select the latest version number!

> Xcode automatically suggests the dependency rule `Up to Next Major`. We **strongly** suggest that until the release of Apollo iOS `1.x`, you select `Up To Next Minor` instead, because we might release breaking changes in a minor version.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="4">
<ExpansionPanelListItem>

Select which packages you want to use. If you're getting started, we recommend selecting just the main `Apollo` library for now. You can always add other packages later if you need them.

Expand All @@ -41,8 +35,10 @@ Select which packages you want to use. If you're getting started, we recommend s
Then, click **Add Package**.

</ExpansionPanelListItem>
<ExpansionPanelListItem number="check">
You're done!
<ExpansionPanelListItem>

You're done!

</ExpansionPanelListItem>
</ExpansionPanelList>

Expand Down
6 changes: 0 additions & 6 deletions docs/shared/spm-run-script-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Swift Package Manager Run Script">

> **Note:** If your Derived Data is in a custom location, go back and use the [Swift Scripting](./swift-scripting) method instead. This script relies on Derived Data being in the default location. Swift Scripting doesn't rely on Derived Data at all.
Expand Down
6 changes: 0 additions & 6 deletions docs/shared/sqlite-carthage-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Adding SQLite with Carthage">

You will need to add the `ApolloSQLite` framework to your target. This should be one of the libraries that gets built automatically on checkout, and should include the dependent libraries necessary to run it.
Expand Down
6 changes: 0 additions & 6 deletions docs/shared/sqlite-cocoapods-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Adding SQLite with CocoaPods">

Add the following to your `Podfile`:
Expand Down
6 changes: 0 additions & 6 deletions docs/shared/sqlite-spm-panel.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
ExpansionPanel,
ExpansionPanelList,
ExpansionPanelListItem
} from 'gatsby-theme-apollo-docs';

<ExpansionPanel title="Adding SQLite with Swift Package Manager">

Add the following to your `Package.swift`:
Expand Down
1 change: 0 additions & 1 deletion docs/static/_redirects → docs/source/_redirects
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/tutorial /docs/ios/tutorial/tutorial-introduction
/tutorial/tutorial-create-project /docs/ios/tutorial/tutorial-add-sdk
/docs/ios/tutorial/tutorial-create-project /docs/ios/tutorial/tutorial-add-sdk
13 changes: 6 additions & 7 deletions docs/source/api-reference.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
title: API Reference
description: ''
---

* [Apollo.framework](../api/Apollo/README/)
* [ApolloAPI.framework](../api/ApolloAPI/README/)
* [ApolloUtils.framework](../api/ApolloUtils/README/)
* [ApolloCodegenLib.framework](../api/ApolloCodegenLib/README/)
* [ApolloSQLite.framework](../api/ApolloSQLite/README/)
* [ApolloWebSocket.framework](../api/ApolloWebSocket/README/)
* [Apollo.framework](./api/Apollo/README/)
* [ApolloAPI.framework](./api/ApolloAPI/README/)
* [ApolloUtils.framework](./api/ApolloUtils/README/)
* [ApolloCodegenLib.framework](./api/ApolloCodegenLib/README/)
* [ApolloSQLite.framework](./api/ApolloSQLite/README/)
* [ApolloWebSocket.framework](./api/ApolloWebSocket/README/)

Our API reference is automatically generated directly from the inline comments in our code, so if you're adding something new, all you have to do is actually add doc comments and they'll show up here.

Expand Down
4 changes: 2 additions & 2 deletions docs/source/caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This type of cache is used by default when setting up an `ApolloClient`. If you

If for some reason you find you need to instantiate the in-memory cache yourself, you can do so with one line:

```swift:title=Cache%20Setup
```swift title="Cache Setup"
import Apollo

let cache = InMemoryNormalizedCache()
Expand All @@ -52,7 +52,7 @@ Once added, you can do the following:
3. Use that SQLite cache to instantiate an `ApolloStore`.
4. Pass that `ApolloStore` into the initializer of `ApolloClient`:

```swift:title=Client%20Setup
```swift title="Client Setup"
import Apollo

// NOTE: You need this import line if you are **NOT** using CocoaPods. In CocoaPods,
Expand Down
35 changes: 35 additions & 0 deletions docs/source/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Client (iOS)",
"version": "0.X",
"algoliaFilters": [
"docset:ios"
],
"sidebar": {
"Introduction": "/",
"Installation": "/installation",
"API Reference": "/api-reference",
"Tutorial": {
"0. Introduction": "/tutorial/tutorial-introduction",
"1. Add the Apollo SDK": "/tutorial/tutorial-add-sdk",
"2. Obtain your GraphQL schema": "/tutorial/tutorial-obtain-schema",
"3. Execute your first query": "/tutorial/tutorial-execute-query",
"4. Connect your queries to your UI": "/tutorial/tutorial-query-ui",
"5. Paginate results": "/tutorial/tutorial-pagination",
"6. Complete the detail view": "/tutorial/tutorial-detail-view",
"7. Enable authentication": "/tutorial/tutorial-authentication",
"8. Define additional mutations": "/tutorial/tutorial-mutations",
"9. Write your first subscription": "/tutorial/tutorial-subscriptions"
},
"Usage": {
"Downloading a schema": "/downloading-schema",
"Creating a client": "/initialization",
"Fetching queries": "/fetching-queries",
"Performing mutations": "/mutations",
"Using fragments": "/fragments",
"Client-side caching": "/caching",
"Subscriptions": "/subscriptions",
"Swift scripting": "/swift-scripting",
"Request pipeline (advanced)": "/request-pipeline"
}
}
}
2 changes: 1 addition & 1 deletion docs/source/downloading-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You can use the [Apollo CLI](https://www.apollographql.com/docs/devtools/cli/) t
apollo schema:download --endpoint=http://localhost:8080/graphql schema.json
```

Note that if you're using the local version set up for codegen, you should use the same method you're using in the [Add a code generation build step](/installation/#5-add-a-code-generation-build-step) instructions to access that specific CLI. For example, if you're using CocoaPods, you can set it up like this to download your schema:
Note that if you're using the local version set up for codegen, you should use the same method you're using in the [Add a code generation build step](./installation/#5-add-a-code-generation-build-step) instructions to access that specific CLI. For example, if you're using CocoaPods, you can set it up like this to download your schema:

```bash
SCRIPT_PATH="${PODS_ROOT}/Apollo/scripts"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/fetching-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Again, make sure to define this in a file that is outside of your generated code

## Specifying a cache policy

[This section has moved to the Caching documentation](/caching/).
[This section has moved to the Caching documentation](./caching/).

## Using `GET` instead of `POST` for queries

Expand Down
16 changes: 8 additions & 8 deletions docs/source/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ sidebar_title: Introduction
description: A strongly-typed, caching GraphQL client for iOS, written in Swift
---

import { Button } from '@apollo/space-kit/Button';
import { Link } from 'gatsby';
import { colors } from 'gatsby-theme-apollo-core';

**Apollo iOS** is an [open-source](https://github.com/apollographql/apollo-ios) GraphQL client for native iOS apps, written in Swift. It enables you to execute queries and mutations against a GraphQL server and returns results as operation-specific Swift types.

<p>
<Button
color={colors.primary}
as={<Link to="/tutorial/tutorial-introduction/" />}
style={{marginRight: 16, marginBottom: 16}}
colorScheme="indigo"
as={Link}
to="./tutorial/tutorial-introduction/"
mr="4"
>
Start the tutorial
</Button>
<Button
as={<Link to="/installation/" />}
as={Link}
to="./installation/"
>
Installation
</Button>
Expand All @@ -43,6 +43,6 @@ Apollo iOS normalizes operation results to build a client-side cache of your dat

## Related libraries

[Apollo Kotlin](https://www.apollographql.com/docs/kotlin/) is a GraphQL client for native Android apps written in Java and Kotlin. It offers Kotlin Multi-Platform integration as well.
[Apollo Kotlin](/kotlin/) is a GraphQL client for native Android apps written in Java and Kotlin. It offers Kotlin Multi-Platform integration as well.

Apollo Client for JavaScript's [React integration](https://apollographql.com/docs/react) works with [React Native](https://facebook.github.io/react-native/) on both iOS and Android.
Apollo Client for JavaScript's [React integration](/react) works with [React Native](https://facebook.github.io/react-native/) on both iOS and Android.
4 changes: 2 additions & 2 deletions docs/source/initialization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ Apollo iOS provides the following classes that conform to the [`NetworkTransport
| `WebSocketTransport` | Transmits _all_ GraphQL operations via WebSocket. Requires the `Apollo/WebSocket` sub-spec. |
| `SplitNetworkTransport` | Transmits subscription operations via WebSocket and other operations via HTTP. Requires the `Apollo/WebSocket` sub-spec. |

> * For more information on `RequestChainNetworkTransport`, see [Request pipeline in Apollo iOS](/request-pipeline/).
> * For more information on `WebSocketTransport` and `SplitNetworkTransport`, see [Subscriptions](/subscriptions/).
> * For more information on `RequestChainNetworkTransport`, see [Request pipeline in Apollo iOS](./request-pipeline/).
> * For more information on `WebSocketTransport` and `SplitNetworkTransport`, see [Subscriptions](./subscriptions/).
4 changes: 2 additions & 2 deletions docs/source/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can install `Apollo.framework` into your project using any of the three majo

## 3. Add a schema file to your target directory

For Apollo iOS to generate models for your GraphQL operations, you need a local copy of your GraphQL server's schema. To acquire this schema, see [Downloading a schema](/downloading-schema/).
For Apollo iOS to generate models for your GraphQL operations, you need a local copy of your GraphQL server's schema. To acquire this schema, see [Downloading a schema](./downloading-schema/).

Make sure to add your `schema.json`/`schema.graphqls` file to the folder where most of your code is, _not_ to the folder where your `.xcodeproj` and/or `.xcworkspace` files are located.

Expand Down Expand Up @@ -115,7 +115,7 @@ Drag the generated `API.swift` file to your target.

Make sure to uncheck the "Copy Files If Needed" checkbox, because it should already be in your project's folder system. Then, make sure you've checked all the Targets the API file needs to be included in.

**Installation complete!** You can now start executing GraphQL operations in your app. To learn how, next check out [Creating a client](/initialization/) and [Fetching queries](/fetching-queries/).
**Installation complete!** You can now start executing GraphQL operations in your app. To learn how, next check out [Creating a client](./initialization/) and [Fetching queries](./fetching-queries/).

You can also continue reading below for some [advanced codegen tips](#advanced-codegen-tips-and-tricks).

Expand Down
Loading