Skip to content

Commit

Permalink
import react docs to core
Browse files Browse the repository at this point in the history
  • Loading branch information
James Baxley committed Oct 18, 2017
2 parents ee8bdfa + 49ef527 commit 79f3aae
Show file tree
Hide file tree
Showing 41 changed files with 5,539 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "themes/meteor"]
path = themes/meteor
url = https://github.com/meteor/hexo-theme-meteor.git
[submodule "code"]
path = code
url = https://github.com/apollographql/apollo-client.git
[submodule "docs/themes/meteor"]
path = docs/themes/meteor
url = https://github.com/meteor/hexo-theme-meteor.git
12 changes: 12 additions & 0 deletions docs/react-docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# docs

[![Greenkeeper badge](https://badges.greenkeeper.io/apollographql/react-docs.svg)](https://greenkeeper.io/)

To run:

```
git clone --recursive https://github.com/apollographql/react-docs.git
cd react-docs
npm install
npm start
```
124 changes: 124 additions & 0 deletions docs/react-docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Apollo React Docs
propertytitle: Using GraphQL with React
subtitle: React Guide
description: A guide to using the Apollo GraphQL Client with React.
author:
language:
timezone:
versions:
- '1'
sidebar_categories:
null:
- index
- initialization
- simple-example
- example-schema
- migration
Usage:
- queries
- mutations
- subscriptions
- receiving-updates
- cache-updates
- using-with-types
API Reference:
- api
- api-graphql
- api-queries
- api-mutations
- api-server
Recipes:
- auth
- pagination
- optimistic-ui
- fragments
- prefetching
- query-splitting
- react-native
- redux
- webpack
- babel
- server-side-rendering
github_repo: apollographql/react-docs
content_root: source

typescript_api_box:
data_file: docs.json

social_links:
github: 'https://github.com/apollographql'
twitter: '@apollographql'
slackInvitePage: 'https://www.apollodata.com/#slack'

# API keys
apis:
segment: wgrIo8Bul0Ujl8USETG3DB6hONdy4kTg
docsearch:
apiKey: 768e823959d35bbd51e4b2439be13fb7
indexName: apollodata
gtm: GTM-PNFDVBB

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://dev.apollodata.com/react
root: /react/
permalink: :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: true
tab_replace:

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: meteor

# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type:
1 change: 1 addition & 0 deletions docs/react-docs/assets/theme-colors.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@color-primary: #22A699;
26 changes: 26 additions & 0 deletions docs/react-docs/circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
machine:
node:
version: 8.1.2

checkout:
post:
- git submodule update --init

dependencies:
cache_directories:
- "site/node_modules"
override:
- npm install -g hexo-cli
- npm install
- cd code; npm install

test:
override:
# maybe we will need tests in the future
- echo 'ok!'

deployment:
s3:
branch: /^(master|version-.*)/
commands:
- npm run deploy
32 changes: 32 additions & 0 deletions docs/react-docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.3.5"
},
"dependencies": {
"handlebars": "^4.0.5",
"hexo": "3.3.5",
"hexo-generator-archive": "^0.1.2",
"hexo-generator-category": "^0.1.2",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.2.0",
"hexo-renderer-less": "^0.2.0",
"hexo-renderer-marked": "^0.2.4",
"hexo-server": "^0.2.0",
"lodash": "^4.13.1",
"showdown": "^1.4.2"
},
"devDependencies": {
"hexo-s3-deploy": "^1.2.1"
},
"scripts": {
"start": "hexo serve",
"deploy": "hexo-s3-deploy",
"develop-theme":
"nodemon -x 'rm db.json; hexo serve' -w assets/ -w code/ -w source/ -w themes/ -w scripts/",
"generate": "hexo generate"
}
}
Loading

0 comments on commit 79f3aae

Please sign in to comment.