GithubHelp home page GithubHelp logo

michaelchiche / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pulumi/docs

0.0 2.0 0.0 18.16 MB

Documentation for all things Pulumi!

Home Page: https://pulumi.io

HTML 13.16% Dockerfile 0.16% Ruby 1.24% Makefile 1.44% CSS 50.43% TypeScript 5.12% JavaScript 7.84% Shell 5.45% Go 15.16%

docs's Introduction

Pulumi Documentation Site

"Because knowing is half the battle."

Staging Production
Build Status Build Status

Contributing

Before adding new content, read CONTRIBUTING.md.

Toolchain

The website is statically built using Jekyll. So we have basic templating for generating HTML and the ability to write most files in Markdown.

TypeScript documentation is generated directly from source using TYPEDOC. We just check the resulting files directly into the repo under ./packages/.

Development

Prerequisites

  • Install a recent version of Ruby
  • Install the necessary Ruby Gems: gem install jekyll bundler
  • Install a recent version of Go
  • Install mustache: go get -u github.com/cbroglie/mustache
  • Ensure jq is installed, e.g. on macOS: brew install jq

Run make configure to get the required Gem dependencies. (Assuming you have a recent Ruby installation on your system.

make build will generate the website (published to _site).

make serve will build the website and serve it to http://localhost:4000.

make docker will run build and serve in a docker container with all prerequisites installed.

make test runs a broken link checker tool against http://localhost:4000.

make generate will regenerate the TypeScript documentation if needed, as well as the CLI documentation in references/cli. The generated API documentation is placed in the packages folder. This is extremely hacky.

The following repos must be peers of docs, should be checked out to an appropriate branch, and should be built before running make generate:

  • pulumi
  • pulumi-aws
  • pulumi-azure
  • pulumi-cloud
  • pulumi-gcp
  • pulumi-kubernetes

Generating a change log

To generate a change log from closed pull requests, run the script /scripts/generate_changelog.sh. It generates a file using the rules documented here: Planning, Work Items, and Changelog.

  1. Run ./scripts/update_repos.sh to pull down the latest tags for the repos pulumi, pulumi-cloud, pulumi-aws, pulumi-terraform, and pulumi-azure

  2. Set the environment variable GITHUB_TOKEN to a token that has "repo" scope.

  3. [Will be improved] Clone the repo at https://github.com/pulumi/github-pr-changelog and run npm i -g to globally install the command gh-changelog.

  4. Generate a change log with the following command:

    ./scripts/generate_changelog.sh <from-git-tag> <to-git-tag> > output.file
    

    You can also use the optional flags --all-prs to print out all PRs (not just ones with the relevant labels) and --tab-output to print in a format that can be pasted to a Google Sheet.

Deploying updates

When changes are merged into master our staging website (https://staging.pulumi.io/) is automatically deployed. You can use the Travis UI to check on the status of the deployment. Once it has been deployed, browse around the staging website and ensure the changes you expected were made and render correctly. Then, open a Pull Request to merge master into production.

Design Reference

Web design is hard. Documentation is hard. Good web design for documentation is harder.

Examples of other sites and their docs as inspiration:

docs's People

Contributors

chrsmith avatar ctrom avatar cyrusnajmabadi avatar efleming18 avatar ellismg avatar ericrudder avatar frassle avatar hausdorff avatar jen20 avatar joeduffy avatar justinvp avatar lindydonna avatar lukehoban avatar mehzer avatar octocruise avatar pbzdyl avatar pgavlin avatar robertbullen avatar scty-tpaoletti avatar shanemcd avatar swgillespie avatar tirke avatar twpol avatar

Stargazers

 avatar

Watchers

 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.