diff --git a/website/config.js b/website/config.js
index 08cc2728a..374a07399 100644
--- a/website/config.js
+++ b/website/config.js
@@ -6,7 +6,7 @@ const config = {
redirects: [],
header: {
logoLink: 'https://www.nexusjs.org', // replace with nexus site
- title: 'GraphQL Nexus',
+ title: 'Nexus',
// check all links
// links: [
// { name: 'Docs', link: 'https://www.nexusjs.org/docs' },
@@ -28,20 +28,20 @@ const config = {
},
},
siteMetadata: {
- title: 'GraphQL Nexus - title',
- description: 'GraphQL Nexus - desc',
+ title: 'Nexus - title',
+ description: 'Nexus - desc',
keywords: 'Docs, nexus, 1.0',
docsLocation: 'https://github.com/graphql-nexus/nexus/tree/master/website/content',
twitter: {
- site: '@nexus',
- creator: '@nexus',
+ site: '@nexusgql',
+ creator: '@nexusgql',
image: '/social/docs-social.png',
},
og: {
- site_name: 'GraphQL Nexus',
+ site_name: 'Nexus',
type: 'website',
image: {
- alt: 'GraphQL Nexus',
+ alt: 'Nexus',
height: '630',
type: 'image/png',
url: '/social/docs-social.png', //replace social image
@@ -57,7 +57,7 @@ const config = {
},
footer: {
logoLink: '/',
- title: 'Prisma',
+ title: 'Nexus',
products: [
{
name: 'Prisma Client',
@@ -69,12 +69,9 @@ const config = {
// { name: 'Prisma Enterprise', link: '/' },
],
community: [
- { name: 'Meet the community', link: 'https://www.prisma.io/community' },
- { name: 'Slack', link: 'https://slack.prisma.io/' },
- { name: 'Github', link: 'https://github.com/prisma' },
- { name: 'Discussions', link: 'https://github.com/prisma/prisma/discussions' },
+ { name: 'GitHub', link: 'https://github.com/graphql-nexus' },
+ { name: 'GitHub Discussions', link: 'https://github.com/graphql-nexus/nexus/discussions' },
{ name: 'GraphQL Meetup', link: 'https://www.meetup.com/graphql-berlin/' },
- { name: 'TypeScript Meetup', link: 'https://www.meetup.com/TypeScript-Berlin/' },
],
resources: [
{ name: 'Docs', link: '/' },
@@ -90,6 +87,7 @@ const config = {
{ name: 'How to GraphQL', link: 'https://www.howtographql.com/' },
{ name: 'PostgreSQL Tutorial', link: 'https://www.prisma.io/tutorials/?tag=postgresql' },
],
+ /* start NOT USED */
company: [
{ name: 'About', link: 'https://www.prisma.io/about' },
{ name: 'Jobs', link: 'https://www.prisma.io/jobs' },
@@ -99,15 +97,16 @@ const config = {
link: 'https://gist.github.com/nikolasburk/c0f34b0cc50d3403e2e0d40c0e6510aa',
},
],
- newsletter: {
- text: 'Stay up to date with the latest features and changes to Prisma',
- },
+ /* end NOT USED */
findus: {
- twitterLink: 'https://twitter.com/prisma',
- youtubeLink: 'https://www.youtube.com/channel/UCptAHlN1gdwD89tFM3ENb6w',
- fbLink: 'https://www.facebook.com/prisma.io',
- slackLink: 'https://slack.prisma.io/',
- gitLink: 'https://github.com/prisma',
+ twitterLink: 'https://twitter.com/nexusgql',
+ gitLink: 'https://github.com/graphql-nexus/',
+ slackLink: '',
+ fbLink: '',
+ youtubeLink: '',
+ },
+ newsletter: {
+ text: '',
},
},
}
diff --git a/website/content/00-example.mdx b/website/content/00-example.mdx
deleted file mode 100644
index b38fa634e..000000000
--- a/website/content/00-example.mdx
+++ /dev/null
@@ -1,50 +0,0 @@
----
-title: 'Example'
-metaTitle: 'Example metaTitle'
-metaDescription: 'Example meta desc'
-staticLink: false
-experimental: false
-duration: '2 min'
-hidePage: true
-toc: false
----
-
-## Overview
-
-This page won't be shown in sidebar.
[NonNullConfig](#i-nonnullconfig)
-
- `rootTyping` [NexusGenBackingTypes](#s-nexusgenbackingtypes)
#### Example
@@ -972,7 +968,7 @@ schema.middleware((config: CreateFieldResolverInfo) => MiddlewareFn | undefined)
If the current middleware function does not end the request-response cycle, it must call `next` to pass control to the next middleware function, until the actual GraphQL resolver gets called.
-> Note: You can skip the creation of a middleware by returning `undefined` instead of a middleware.
+> **Note**: You can skip the creation of a middleware by returning `undefined` instead of a middleware.
#### Example: Simple middlewares
diff --git a/website/content/04-api/01-nexus/02-log.mdx b/website/content/04-api/01-nexus/02-log.mdx
index 654ea3bc1..cedf40802 100644
--- a/website/content/04-api/01-nexus/02-log.mdx
+++ b/website/content/04-api/01-nexus/02-log.mdx
@@ -1,5 +1,5 @@
---
-title: '`log`'
+title: 'log'
---
## `import { log }`
diff --git a/website/content/04-api/01-nexus/03-server.mdx b/website/content/04-api/01-nexus/03-server.mdx
index a3fa4bbab..bfe9f1730 100644
--- a/website/content/04-api/01-nexus/03-server.mdx
+++ b/website/content/04-api/01-nexus/03-server.mdx
@@ -1,5 +1,5 @@
---
-title: '`server`'
+title: 'server'
---
## `import { server }`
diff --git a/website/content/04-api/01-nexus/04-settings.mdx b/website/content/04-api/01-nexus/04-settings.mdx
index 01afcf603..0219e11f8 100644
--- a/website/content/04-api/01-nexus/04-settings.mdx
+++ b/website/content/04-api/01-nexus/04-settings.mdx
@@ -1,5 +1,5 @@
---
-title: '`settings`'
+title: 'settings'
---
## `import { settings }`
diff --git a/website/content/04-api/01-nexus/05-use.mdx b/website/content/04-api/01-nexus/05-use.mdx
index 7281e50da..9f5546cc1 100644
--- a/website/content/04-api/01-nexus/05-use.mdx
+++ b/website/content/04-api/01-nexus/05-use.mdx
@@ -1,5 +1,5 @@
---
-title: '`use`'
+title: 'use'
---
## `import { use }`
diff --git a/website/content/04-api/01-nexus/06-fixme.mdx b/website/content/04-api/01-nexus/06-fixme.mdx
deleted file mode 100644
index 0d471a1ab..000000000
--- a/website/content/04-api/01-nexus/06-fixme.mdx
+++ /dev/null
@@ -1,49 +0,0 @@
----
-title: fixme
----
-
-FIX ME: This page should be at the parent level
-
-## `nexus`
-
-The main module exports an application singleton. It is available as the default export. For convenience you can import the app components as named exports too.
-
-**Example of importing default export**
-
-```ts
-import app from 'nexus'
-
-app.log.info('hello world')
-
-app.settings.change({
- server: {
- port: 5689,
- },
-})
-
-app.schema.queryType({
- definition(t) {
- t.field('foo', { type: 'String' })
- },
-})
-```
-
-**Example of importing named exports**
-
-```ts
-import { schema, settings, log } from 'nexus'
-
-log.info('hello world')
-
-settings.change({
- server: {
- port: 5689,
- },
-})
-
-schema.queryType({
- definition(t) {
- t.field('foo', { type: 'String' })
- },
-})
-```
diff --git a/website/content/04-api/01-nexus/index.mdx b/website/content/04-api/01-nexus/index.mdx
index 75a16e3f6..01f84c62b 100644
--- a/website/content/04-api/01-nexus/index.mdx
+++ b/website/content/04-api/01-nexus/index.mdx
@@ -1,3 +1,47 @@
---
-title: '`nexus`'
+title: 'nexus'
---
+
+## Overview
+
+The main `nexus` module exports an application singleton. It is available as the default export. For convenience you can import the app components as named exports too.
+
+### Example of importing default export
+
+```ts
+import app from 'nexus'
+
+app.log.info('hello world')
+
+app.settings.change({
+ server: {
+ port: 5689,
+ },
+})
+
+app.schema.queryType({
+ definition(t) {
+ t.field('foo', { type: 'String' })
+ },
+})
+```
+
+### Example of importing named exports
+
+```ts
+import { schema, settings, log } from 'nexus'
+
+log.info('hello world')
+
+settings.change({
+ server: {
+ port: 5689,
+ },
+})
+
+schema.queryType({
+ definition(t) {
+ t.field('foo', { type: 'String' })
+ },
+})
+```
diff --git a/website/content/04-api/02-nexus-testing.mdx b/website/content/04-api/02-nexus-testing.mdx
index b09cde262..7759233d3 100644
--- a/website/content/04-api/02-nexus-testing.mdx
+++ b/website/content/04-api/02-nexus-testing.mdx
@@ -1,5 +1,5 @@
---
-title: '`nexus/testing`'
+title: 'nexus/testing'
metaTitle: 'nexus/testing'
---
diff --git a/website/content/04-api/03-nexus-plugin.mdx b/website/content/04-api/03-nexus-plugin.mdx
index d5c06728c..f4e8cdd41 100644
--- a/website/content/04-api/03-nexus-plugin.mdx
+++ b/website/content/04-api/03-nexus-plugin.mdx
@@ -1,5 +1,5 @@
---
-title: '`nexus/plugin`'
+title: 'nexus/plugin'
---
## `nexus/plugin`
diff --git a/website/content/05-meta/01-roadmap.mdx b/website/content/05-meta/01-roadmap.mdx
index e489ca533..a1ff32718 100644
--- a/website/content/05-meta/01-roadmap.mdx
+++ b/website/content/05-meta/01-roadmap.mdx
@@ -1,7 +1,7 @@
---
-title: Roadmap β₯
+title: Roadmap
---
-## Roadmap
+## Overview
[Please refer to the Nexus Roadmap kanban](https://github.com/orgs/graphql-nexus/projects/1)
diff --git a/website/content/05-meta/02-changelog.mdx b/website/content/05-meta/02-changelog.mdx
index 2b6222714..562d41377 100644
--- a/website/content/05-meta/02-changelog.mdx
+++ b/website/content/05-meta/02-changelog.mdx
@@ -2,7 +2,7 @@
title: Changelog
---
-## Changelog
+## Overview
You can find notes for all releases at the [Nexus GitHub repo releases](https://github.com/graphql-nexus/nexus/releases) page.
diff --git a/website/content/05-meta/03-spec-sheet.mdx b/website/content/05-meta/03-spec-sheet.mdx
index b4004f182..81ad18d46 100644
--- a/website/content/05-meta/03-spec-sheet.mdx
+++ b/website/content/05-meta/03-spec-sheet.mdx
@@ -2,7 +2,7 @@
title: Spec Sheet
---
-## Lay of the Land
+## Lay of the land
- **Website** https://nexusjs.org
- **Twitter** https://twitter.com/nexusgql
@@ -10,7 +10,7 @@ title: Spec Sheet
- **Discussions** https://github.com/graphql-nexus/nexus/discussions
- **Changelog** https://github.com/graphql-nexus/nexus/releases ([canary](https://github.com/graphql-nexus/nexus/releases/tag/next))
-## Repos & Packages
+## Repositories and packages

@@ -60,7 +60,7 @@ title: Spec Sheet
- Enhanced IDE Experience via TypeScript Language Service Plugin
- Refined nexus lib autocomplete
-## Future Features
+## Future features
- Integrated query complexity analysis
- Integrated Bundler
@@ -87,7 +87,7 @@ We plan to lift these limitations one day.
- Subscriptions [#447](https://github.com/graphql-nexus/nexus/issues/447)
- Interface Extensions [#713](https://github.com/graphql-nexus/nexus/issues/713)
-## Non-Goals
+## Non-goals
We do not plan to lift these limitations.
diff --git a/website/content/05-meta/04-architecture.mdx b/website/content/05-meta/04-architecture.mdx
index 50c45c521..0c9a1dbf6 100644
--- a/website/content/05-meta/04-architecture.mdx
+++ b/website/content/05-meta/04-architecture.mdx
@@ -3,7 +3,7 @@ title: 'Architecture'
metaTitle: 'Architecture'
---
-## Repos & Packages
+## Repositories and packages

diff --git a/website/content/06-components-standalone/01-schema/01-api/99-fixme.mdx b/website/content/06-components-standalone/01-schema/01-api/99-fixme.mdx
deleted file mode 100644
index eb666664f..000000000
--- a/website/content/06-components-standalone/01-schema/01-api/99-fixme.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: __fixme__
----
-
-FIXME this content should be at parent level
-
-## API
-
-The API has been carefully designed with the following goals in mind:
-
-1. Type-Safety [by default](type-generation.md)
-1. Readability
-1. Developer ergonomics
-1. Playing nicely with Prettier formatting
-
-The API has evolved over the last few months of early development and internal use, and outside of implementing [additional features](future-features.md) is unlikely to undergo major structural changes.
-
-That is, before you open a GitHub issue or pull-request with a suggested change to the API, ensure that it meets all four of those criteria listed above and be able to explain why a change is necessary.
-
-Each public API is documented. Find them in the sidebar.
diff --git a/website/content/06-components-standalone/01-schema/01-api/index.mdx b/website/content/06-components-standalone/01-schema/01-api/index.mdx
index 9af5745d9..3e26e46c9 100644
--- a/website/content/06-components-standalone/01-schema/01-api/index.mdx
+++ b/website/content/06-components-standalone/01-schema/01-api/index.mdx
@@ -1,3 +1,18 @@
---
title: API
---
+
+## Overview
+
+The API has been carefully designed with the following goals in mind:
+
+1. Type-Safety [by default](type-generation.md)
+1. Readability
+1. Developer ergonomics
+1. Playing nicely with Prettier formatting
+
+The API has evolved over the last few months of early development and internal use, and outside of implementing [additional features](future-features.md) is unlikely to undergo major structural changes.
+
+That is, before you open a GitHub issue or pull-request with a suggested change to the API, ensure that it meets all four of those criteria listed above and be able to explain why a change is necessary.
+
+Each public API is documented. Find them in the sidebar.
diff --git a/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx b/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx
index 13e54591a..63d06f6c7 100644
--- a/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx
+++ b/website/content/06-components-standalone/01-schema/03-plugins/05-prisma.mdx
@@ -8,7 +8,7 @@ Refer to the [framework Prisma plugin docs](/plugins/prisma#runtime-integration)
## Installation {docsify-ignore}
-```cli
+```bash-symbol
npm add nexus-prisma
```
@@ -33,7 +33,7 @@ const schema = makeSchema({
You can find runnable examples in the [repo examples folder](https://github.com/graphql-nexus/nexus-schema-plugin-prisma/tree/master/examples).
-> Note: If you're looking for CRUD capabilities, you must enable the `experimentalCRUD` option.
+> **Note**: If you're looking for CRUD capabilities, you must enable the `experimentalCRUD` option.
## Configuration {docsify-ignore}
diff --git a/website/content/06-components-standalone/01-schema/99-fixme.mdx b/website/content/06-components-standalone/01-schema/99-fixme.mdx
deleted file mode 100644
index 5a996fc10..000000000
--- a/website/content/06-components-standalone/01-schema/99-fixme.mdx
+++ /dev/null
@@ -1,55 +0,0 @@
----
-title: __fixme__
----
-
-FIXME this content should be at the parent level
-
-## `@nexus/schema`
-
-```cli
-npm add @nexus/schema
-```
-
-#### Why Nexus?
-
-Words from the original author, Tim Griesser;
-
-Nexus Schema was born out of my experience building several production GraphQL APIs, in different languages and frameworks. The first with vanilla [graphql-js](https://github.com/graphql/graphql-js), another schema-first with [graph.ql](https://github.com/matthewmueller/graph.ql) and later [graphql-tools](https://github.com/apollographql/graphql-tools). Following that with [graphene-python](https://docs.graphene-python.org/en/latest/) and most recently with a bit of [graphql-ruby](http://graphql-ruby.org/).
-
-After working with the toolkits in other scripting languages, it felt like there was a gap in the JavaScript approaches. Schema-first development starts out great, by simply expressing your schema in the GraphQL Schema Definition Language (SDL) and providing resolvers matching to the types as needed you are up and running fast! No need for tons of requires or "overhead" to get a GraphQL server running.
-
-As your schema then grows to hundreds or thousands of types, manually curating these SDL fragments becomes tedious. Documentation changes can be tough. Modifying fields on interfaces can require manual changes to many implementing types, a process that can be quite error prone.
-
-_If only there were a way to combine the simplicity of schema-first development, with the long-term maintainability of a definition-first approach._
-
-GraphQL Nexus aims to fill that void, making the process as simple as possible while also making good use of the runtime to introduce powerful ways of composing types, introducing type or schema wide changes, and much more.
-
-The core idea of GraphQL Nexus draws from basing the schema off the SDL - keeping things declarative and simple to understand. It allows you to reference the type names as string literals rather than always need to import to reference types (you can do that too if you prefer).
-
-By combining automatic type generation with some of the more powerful features of TypeScript - type merging, conditional types, and type inference, we can know exactly which type names we are referring to and able to use throughout our code. We can know both the parameters and the return type of resolvers without providing any type annotation. It takes a little getting used to, but it ends up leading to a great feedback loop of the types annotating themselves.
-
-## Type Generation Details
-
-This is the most important piece to understand to get the most out of Nexus. It is relevant to JavaScript as well as TypeScript users, as tools like VSCode and `// @ts-check` can utilize these types to aid in autocomplete or type-checking. A core goal of Nexus is to have the best possible type coverage with the least possible manual type annotation.
-
-### Overview
-
-Nexus was designed with TypeScript in mind. In order to fully typecheck our GraphQL objects, we need to generate a number of types that combine the schema, any type or field configuration provided, and the GraphQL resolution algorithm to create as much type-safety as possible without any additional work importing and assigning types throughout the codebase.
-
-### Root Types
-
-A **root type** is a type representation of the value used to resolve the fields of an object type. It is the object that will be passed as the first argument of `resolve`. It can be a plain JS object, a database model, a mongoose document, a JS class, anything that fulfills the contract defined by the GraphQL object type, based on the field definitions.
-
-Scalars can also have backing types, representing the value they are parsed into.
-
-Sometimes GraphQL types are passthrough, and don't have a dedicated type backing them. One such case would be in the `Edge` of a Relay style pagination. In this case, Nexus will generate a type-definition which makes assumptions of the necessary value to fulfill the contract. If this is incorrect, you can always provide a concrete type for the object.
-
-### Field Type
-
-A **field type** is the valid return value used to a field on an object type. In GraphQL, promises can be returned at every level of the type resolution, so we wrap the types in a `MaybePromiseDeepPrisma Β© 2018-2020
diff --git a/website/src/components/topSection.tsx b/website/src/components/topSection.tsx index 4e3de8cbf..db4b6cb2e 100644 --- a/website/src/components/topSection.tsx +++ b/website/src/components/topSection.tsx @@ -33,6 +33,9 @@ const TopSection = ({ title, slug, toc }: any) => {