├── .gitignore ├── .travis.yml ├── README.md ├── components ├── Breakpoint.js └── breakpoints.css ├── config.toml ├── css ├── github.css └── main.css ├── html.js ├── package.json ├── pages ├── 404.md ├── _template.js ├── docs │ ├── _template.js │ ├── conclusion │ │ └── index.md │ ├── getting-started │ │ └── index.md │ ├── how-to-run │ │ └── index.md │ ├── index.md │ ├── some-react-code │ │ ├── 0.jpg │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ ├── 4.jpg │ │ ├── 5.jpg │ │ ├── _Demo.js │ │ └── index.js │ └── the-next-step │ │ └── index.md ├── examples │ └── index.md └── index.md ├── utils ├── colors.js └── typography.js ├── wrappers └── md.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | public/ 3 | .gatsby-context.js 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # back to language cpp to try to bypass osx node failure 2 | language: cpp 3 | sudo: false 4 | env: 5 | - export NODE_VERSION="0.10" 6 | - export NODE_VERSION="0.12" 7 | - export NODE_VERSION="4" 8 | - export NODE_VERSION="5" 9 | os: 10 | - linux 11 | - osx 12 | # pre-install to bring in the correct version of node via nvm 13 | before_install: 14 | - git submodule update --init --recursive 15 | - git clone https://github.com/creationix/nvm.git ./.nvm 16 | - source ./.nvm/nvm.sh 17 | - nvm install $NODE_VERSION 18 | - nvm use $NODE_VERSION 19 | - npm config set python `which python` 20 | - if [ $TRAVIS_OS_NAME == "linux" ]; then 21 | export CC="gcc-4.8"; 22 | export CXX="g++-4.8"; 23 | export LINK="gcc-4.8"; 24 | export LINKXX="g++-4.8"; 25 | fi 26 | - gcc --version 27 | - g++ --version 28 | # node 4 depends on gcc 4.8 29 | addons: 30 | apt: 31 | sources: 32 | - ubuntu-toolchain-r-test 33 | packages: 34 | - g++-4.8 35 | - gcc-4.8 36 | # script needed to test, because defaults don't work on osx 37 | script: 38 | - npm install 39 | - npm run lint 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This is a v0 starter and won't be ported to v1. Check out other starters @ https://www.gatsbyjs.org/docs/gatsby-starters/ 2 | -------------------------------------------------------------------------------- /components/Breakpoint.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | import PropTypes from 'prop-types' 3 | import './breakpoints.css' 4 | 5 | class Breakpoint extends Component { 6 | render () { 7 | const { mobile, children } = this.props 8 | 9 | if (mobile) { 10 | return ( 11 |
20 | It's easy to intermix different file types. The other documentation pages 21 | are all written in Markdown but this page is a normal React.js component. 22 | Gatsby has built-in support for Markdown, HTML, JSX, 23 | CJSX (Coffeescript flavored JSX), JSON, YAML, and TOML 24 | and it's easy to add support for additional file formats. 25 |
26 |27 | React.js component pages makes it easy to add interactivity or ajax enhancements 28 | to what is otherwise a static site. In the case of a documentation site, 29 | it let's you embed sample/runnable code to illustrate your documentation. 30 | (This demo is from React Motion). 31 |
32 |