Skip to content

joehallissey/documentation

This branch is 6888 commits behind pantheon-systems/documentation:main.

Folders and files

NameName
Last commit message
Last commit date
Mar 2, 2021
Feb 12, 2021
Mar 12, 2021
Feb 23, 2021
Apr 8, 2020
Jun 8, 2020
Jul 5, 2018
Apr 8, 2020
Apr 8, 2020
Apr 8, 2020
Oct 9, 2020
Jun 13, 2016
Apr 8, 2020
Feb 11, 2021
Apr 8, 2020
Apr 8, 2020
Apr 8, 2020
Feb 11, 2021
Feb 11, 2021
Sep 8, 2020
Dec 4, 2020
Dec 4, 2020
Jun 8, 2020

Repository files navigation

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.md 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

Get the Code

Fork and clone this repository.

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

Or

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

Install

cd documentation/
npm ci

GitHub Token

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 it 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.

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.

Packages

No packages published

Languages

  • JavaScript 50.0%
  • CSS 40.8%
  • Shell 5.2%
  • SCSS 1.9%
  • HTML 1.3%
  • PHP 0.8%