Coder Social home page Coder Social logo

bhasselbeck / documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pantheon-systems/documentation

0.0 0.0 0.0 238.84 MB

Pantheon Docs

Home Page: https://pantheon.io/docs

License: Other

Dockerfile 0.42% Ruby 0.18% JavaScript 9.45% PHP 11.97% Shell 4.38% Gherkin 0.04% HTML 41.60% CSS 31.95%

documentation's Introduction

Build Status: Circle CI

Docker Image Version:

Pantheon Documentation

https://pantheon.io/docs/

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

Contributing

Our docs are written in PHP Markdown, and live in source/_docs. Read CONTRIBUTING.md for more details on contributing documentation improvements.

Style Guide

Read style-guide.md for our guidelines on how to write documentation.

Get the Code

Fork and clone this repository. Issue pull requests per document.

Local Setup (Optional)

If you would like to develop documentation locally and see your work, we offer a Docker containerized solution.

Prerequisites

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

Install

  1. Clone the repository to your project directory:

    cd ~/projects
    git clone https://github.com/pantheon-systems/documentation.git
    
    OR
    
    git clone [email protected]:pantheon-systems/documentation.git
  2. Pull the Docker image:

    docker image pull pantheonsystems/documentation

Run

  1. From the project root, execute the runthedocs.sh script:

    cd documentation
    ./runthedocs.sh

    Note:: This will occupy the terminal in which you invoke the script, providing output when files are changed or loaded. Use CTRL + C to exit.

    You should see:

    Creating the Docker container...
    Container built and running. ๐Ÿ‘๐Ÿ‘
    Building the latest docs...
    Detected new or updated files
    Generating: 100% (1035 sources / 0.06 seconds)
    Converting: 100% (1122 sources / 8.04 seconds)
    Formatting: 100% (1122 sources / 2.73 seconds)
    Processing completed in 12.20 seconds
    Running "watch" task
    Waiting...

    Once running, you can view the local dev environment by visiting http://localhost:8000/docs in your browser.

    The Docker image will mount the source directory from the project root on your computer, and rebuild when you save changes:

    /documentation/source/_docs/getting-support.md was changed. Building...
    Detected new or updated files
    Generating: 100% (1035 sources / 0.04 seconds)
    Converting: 100% (1122 sources / 5.73 seconds)
    Formatting: 100% (1122 sources / 2.01 seconds)
    Processing completed in 9.05 seconds
  2. When you're done, run:

    docker container stop pantheon-docs

Update The Docs

The pantheon-docs container mounts the documentation/source directory from your computer, so the image remains evergreen as long as the toolset is unchanged. To update your local project with the latest version of the docs, you need only pull them from git:

git pull origin

Update The App

  1. To update the documentation build locally run:

    ./updater.sh

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 commited into the docs, run the merge_conflicts.sh script:

docker exec pantheon-docs scripts/merge_conflicts.sh
Merge conflict:pass

To make sure all relative links (like /docs/support/) are correct, run

docker exec pantheon-docs htmlproofer --assume-extension  ./output_dev/ --disable-external true

We use grunt to manage accessibility tests:

docker exec pantheon-docs node_modules/.bin/grunt test
Running "a11y:dev" (a11y) task

Done, without errors.

Checks for visual regression:

docker exec pantheon-docs wraith capture wraith.yaml
docker exec pantheon-docs bin/behat

documentation's People

Contributors

alexfornuto avatar allenfear avatar andrewkwilson avatar ari-gold avatar ataylorme avatar bmackinney avatar calevans avatar carl-alberto avatar danielbachhuber avatar davidneedham avatar davidstrauss avatar dustinleblanc avatar eabquina avatar edwardangert avatar greg-1-anderson avatar hengkit avatar lauren-kelly avatar mcdwayne avatar nataliejeremy avatar newtoid avatar peter-pantheon avatar rachelwhitton avatar sarahg avatar stevector avatar sukottokun avatar thomas-thackery avatar timani avatar tinefin avatar ttrowell avatar twooten 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.