Skip to content

Commit

Permalink
Add netlify config for deploy previews (apollographql#2208)
Browse files Browse the repository at this point in the history
* Add netlify config for deploy previews

* Trigger deploy

* Remove circle config

* Update docs repo branch

* Use buttonlink component
  • Loading branch information
trevorblades authored and Maxim Globak committed Jun 1, 2022
1 parent d52bb4c commit 51c5e75
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 36 deletions.
26 changes: 0 additions & 26 deletions docs/circle.yml

This file was deleted.

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

import { Link } from 'gatsby';

**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
<ButtonLink
colorScheme="indigo"
as={Link}
to="./tutorial/tutorial-introduction/"
href="./tutorial/tutorial-introduction/"
mr="4"
>
Start the tutorial
</Button>
<Button
as={Link}
to="./installation/"
</ButtonLink>
<ButtonLink
href="./installation/"
>
Installation
</Button>
</ButtonLink>
</p>

## Benefits
Expand Down
19 changes: 19 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[build]
ignore = "exit 0"

[build.environment]
NODE_VERSION = "16"

[context.deploy-preview.build]
base = "docs"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
command = """\
cd ../
rm -rf monodocs
git clone https://github.com/apollographql/docs --branch main --single-branch monodocs
cd monodocs
npm i
cp -r ../docs local
DOCS_LOCAL=true npm run build \
"""
publish = "../monodocs/public"

0 comments on commit 51c5e75

Please sign in to comment.