-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of documentation website (#164)
- Loading branch information
1 parent
ebac462
commit e1958fc
Showing
21 changed files
with
515 additions
and
73 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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.
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
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,28 @@ | ||
--- | ||
id: getting-started | ||
title: Prerequisites & Installation | ||
sidebar_label: Prerequisites & Installation | ||
--- | ||
|
||
## Prerequisites | ||
|
||
The plugin and this documentation site assumes you are already familiar with the GraphQL language. If you're not, please | ||
visit the official [graphql.org](https://graphql.org/) website first. | ||
|
||
The plugin works out of the box with popular GraphQL clients such as [Apollo GraphQL](https://www.apollographql.com/) and | ||
[Relay](https://facebook.github.io/relay/), but you're free to choose your client and server frameworks. | ||
|
||
## Installation | ||
|
||
The plugin is hosted in the JetBrains Plugin Repository at https://plugins.jetbrains.com/plugin/8097-js-graphql | ||
|
||
You can install it directly from your IDE via the "Settings > Plugins" screen. | ||
|
||
On the "Marketplace" tab simply search for "graphql" and select the "JS GraphQL" suggestion: | ||
|
||
![installation](assets/installation.png) | ||
|
||
## Compatible IDEs and Versions | ||
|
||
The plugin works with all IDEs in the IntelliJ Platform, including but not limited to WebStorm, PhpStorm, IntelliJ IDEA, | ||
and Android Studio. The minimum version is 2018.2 (182.711 or later). |
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,12 @@ | ||
--- | ||
id: graphql-config-examples | ||
title: Example Projects | ||
sidebar_label: Example Projects | ||
--- | ||
|
||
Below you'll find examples that demonstrate how to set up your projects to get the most out of the plugin. | ||
|
||
## Project Structure and Schema Discovery | ||
|
||
See the [graphql-config-examples](https://github.com/jimkyndemeyer/graphql-config-examples/) repository which demonstrate | ||
how to setup schema discovery and endpoints using `.graphqlconfig` files. |
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,11 @@ | ||
--- | ||
title: New Documentation Website | ||
author: Jim Kynde Meyer | ||
authorURL: https://twitter.com/jimmeyer | ||
--- | ||
|
||
This site will provide documentation for working with JS GraphQL IntelliJ Plugin. | ||
|
||
<!--truncate--> | ||
|
||
More documentation updates to follow once the 2.0 release is published. |
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,92 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
const React = require('react'); | ||
|
||
class Footer extends React.Component { | ||
docUrl(doc, language) { | ||
const baseUrl = this.props.config.baseUrl; | ||
const docsUrl = this.props.config.docsUrl; | ||
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`; | ||
return `${baseUrl}${docsPart}${doc}`; | ||
} | ||
|
||
pageUrl(doc, language) { | ||
const baseUrl = this.props.config.baseUrl; | ||
return baseUrl + (language ? `${language}/` : '') + doc; | ||
} | ||
|
||
render() { | ||
return ( | ||
<footer className="nav-footer" id="footer"> | ||
<section className="sitemap"> | ||
<a href={this.props.config.baseUrl} className="nav-home"> | ||
{this.props.config.footerIcon && ( | ||
<img | ||
src={this.props.config.baseUrl + this.props.config.footerIcon} | ||
alt={this.props.config.title} | ||
width="66" | ||
height="58" | ||
/> | ||
)} | ||
</a> | ||
<div> | ||
<h5>Docs</h5> | ||
<a href={this.docUrl('getting-started.html', this.props.language)}> | ||
Getting Started | ||
</a> | ||
<a href={this.docUrl('developer-guide.html', this.props.language)}> | ||
Developer guide | ||
</a> | ||
<a href={this.docUrl('graphql-config-examples.html', this.props.language)}> | ||
Example projects | ||
</a> | ||
</div> | ||
<div> | ||
<h5>Community</h5> | ||
<a href="https://graphql.org/" target="_blank"> | ||
graphql.org | ||
</a> | ||
<a href="https://github.com/graphql-java/graphql-java" target="_blank"> | ||
graphql-java | ||
</a> | ||
<a href="https://github.com/prisma/graphql-config" target="_blank"> | ||
graphql-config | ||
</a> | ||
<a href="https://github.com/chentsulin/awesome-graphql" target="_blank"> | ||
awesome-graphql | ||
</a> | ||
<a href="https://twitter.com/search?q=graphql" target="_blank" rel="noreferrer noopener"> | ||
</a> | ||
<a href="https://stackoverflow.com/questions/tagged/graphql" target="_blank" rel="noreferrer noopener"> | ||
Stack Overflow | ||
</a> | ||
</div> | ||
<div> | ||
<h5>More</h5> | ||
<a href={`${this.props.config.baseUrl}blog`}>Blog</a> | ||
<a href="https://github.com/jimkyndemeyer/js-graphql-intellij-plugin">GitHub</a> | ||
<a | ||
className="github-button" | ||
href={this.props.config.repoUrl} | ||
data-icon="octicon-star" | ||
data-count-href="/jimkyndemeyer/js-graphql-intellij-plugin/stargazers" | ||
data-show-count="true" | ||
data-count-aria-label="# stargazers on GitHub" | ||
aria-label="Star this project on GitHub"> | ||
Star | ||
</a> | ||
</div> | ||
</section> | ||
<section className="copyright">{this.props.config.copyright}</section> | ||
</footer> | ||
); | ||
} | ||
} | ||
|
||
module.exports = Footer; |
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 @@ | ||
{ | ||
"scripts": { | ||
"examples": "docusaurus-examples", | ||
"start": "docusaurus-start", | ||
"build": "docusaurus-build", | ||
"publish-gh-pages": "docusaurus-publish", | ||
"write-translations": "docusaurus-write-translations", | ||
"version": "docusaurus-version", | ||
"rename-version": "docusaurus-rename-version" | ||
}, | ||
"devDependencies": { | ||
"docusaurus": "1.7.2" | ||
} | ||
} |
Oops, something went wrong.