Code Monkey home page Code Monkey logo

documentation-1's Introduction

Build Status: Circle CI

Pantheon Documentation

https://pantheon.io/docs/

This repository contains the Pantheon documentation, as well as the tools to build local test environments.

Changelog

  • 8/5/19: We've relaunched the project using Gatsby for faster development, and much faster page speed.

Contributing

Our docs are written in Markdown, extended with MDX components. The pages live in source/content. Read CONTRIBUTING for more details on contributing documentation improvements.

Style Guide

Read our Style Guide for our guidelines on how to write documentation.

Local Installation

Prerequisites

  • MacOS or Linux system (untested with Bash on Windows)

  • Node.js

  • Gatsby CLI:

    npm install -g gatsby-cli
  • Alternatively, you can use Lando. Use Lando to bypass installing Node.js and the Gatsby CLI on your local machine. Lando requires a Docker version in the 2.1.0.0 - 3.1.99 range.

Get the Code

Fork and clone this repository.

git clone https://github.com/pantheon-systems/documentation.git

Or

git clone [email protected]:pantheon-systems/documentation.git
cd documentation

Install

Using the Gatsby CLI directly

npm ci

GitHub Token

You can install directly on your host computer or via Lando. Both ways require the docs app to use a GITHUB_API token to operate. We use the gatsby-remark-embed-snippet to use files from GitHub in our docs. Before you can build a local development site, you need to provide a GitHub token to the environment:

  1. Log in to GitHub and go to https://github.com/settings/tokens

  2. Click Generate new token

  3. Give the token a name and click the public_repo checkbox, then the Generate Token button at the bottom

  4. Copy the token to your clipboard.

  5. Create or edit .env.development, and add (replacing $TOKENHASH ):

    GITHUB_API=$TOKENHASH

Run

cd documentation/
gatsby develop

You can view the local environment at localhost:8000/. Updates to docs are automatically refreshed in the browser.

Using Lando

Alternatively, you can use Lando. The lando start command initiates the app, installs node dependencies, and starts the gatsby develop server for you:

lando start

You can view the local environment at localhost:8000/. Updates to docs are automatically refreshed in the browser.

Testing

We include several tools to test that new content doesn't break the documentation. Most of these tests are performed automatically by our continuous integration service, but pull requests created from external contributors aren't included in CI tests. If you want to manually test your branch, you can execute the following tests within the Docker container.

Merge Conflicts

To check for merge conflict messages accidentally committed into the docs, run merge_conflicts.sh from scripts.

documentation-1's People

Contributors

alexfornuto avatar rachelwhitton avatar nataliejeremy avatar edwardangert avatar bmackinney avatar carolyn-shannon avatar allenfear avatar ari-gold avatar sarahg avatar joan-ing avatar michellecolon-pantheon avatar ttrowell avatar carl-alberto avatar jmolivas avatar timani avatar greg-1-anderson avatar stevector avatar thomas-thackery avatar ataylorme avatar andrewkwilson avatar newtoid avatar eabquina avatar lauren-kelly avatar dustinleblanc avatar calevans avatar twooten avatar davidstrauss avatar mcdwayne avatar sukottokun avatar luisduenas avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.