@auto-canary/gh-pages
TypeScript icon, indicating that this package has built-in type declarations

9.17.0-canary.3d532a8a.0 • Public • Published

GitHub Pages Plugin

Automate publishing to your gh-pages documentation website

auto will push a directory to your gh-pages branch:

  1. on every release
  2. if the documentation label is on the pull request

Installation

This plugin is not included with the auto CLI installed via NPM. To install:

npm i --save-dev @auto-it/gh-pages
# or
yarn add -D @auto-it/gh-pages

Usage

All you need to do a provide that path to your build documentation website.

{
  "plugins": [
    ["gh-pages", { "dir": "./path/to/built/docs/website" }]
    // other plugins
  ]
}

Build Your Docs

If you also want auto to run the build for you docs site provide the buildCommand option.

{
  "plugins": [
    [
      "gh-pages",
      {
        "buildCommand": "npm run build:docs",
        "dir": "./path/to/built/docs/website"
      }
    ]
    // other plugins
  ]
}

Pages Branch

You can configure the branch auto pushes to with the branch option.

{
  "plugins": [
    [
      "gh-pages",
      {
        "branch": "docs",
        "dir": "./path/to/built/docs/website"
      }
    ]
    // other plugins
  ]
}

Documentation Label

You can configure the label auto looks for with the label option.

{
  "plugins": [
    [
      "gh-pages",
      {
        "label": "website",
        "dir": "./path/to/built/docs/website"
      }
    ]
    // other plugins
  ]
}

Package Sidebar

Install

npm i @auto-canary/gh-pages

Weekly Downloads

1

Version

9.17.0-canary.3d532a8a.0

License

MIT

Unpacked Size

11 kB

Total Files

7

Last publish

Collaborators

  • alisowski
  • hipstersmoothie-canary