Giter Club home page Giter Club logo

tech-docs-monitor's Introduction

Tech Docs Template - page expiry notifier

This repo is part of the tech-docs-template, and is used in conjunction with the page expiry feature that is part of the tech-docs-gem

Travis CI will run the script once a day during weekdays. It will look at the pages API for your site, find all pages that have expired, and post a Slack message to the owner of each page to let them know that it needs reviewing.

Usage

alphagov users

If you are part of the alphagov GitHub organisation you can enable the notifier by raising a PR to add your published documentation to the .travis.yml file:

matrix:
  - SITE_PAGE_API_URL=https://www.docs.verify.service.gov.uk/api/pages.json
  - SITE_PAGE_API_URL=https://gds-way.cloudapps.digital/api/pages.json
  - SITE_PAGE_API_URL=https://<YOUR_PUBLISHED_DOCS>/api/pages.json

Configure Travis CI

If you are not part of the alphagov GitHub organisation, you can still configure Travis CI to automatically deploy the notifier:

  1. Fork the tech-docs-monitor repository
  2. Get an incoming Slack webhook for the notifier
  3. Run travis encrypt to add the encrypted webhook to your .travis.yml file
  4. Add your published documentation page API URL to env.matrix in your .travis.yml file

General configuration

If you want to use something other than Travis CI to deploy the notifier, you must make sure all its environment variables are defined:

  • SITE_PAGE_API_URL: The full URL to your site's /api/pages.json file.
  • SLACK_WEBHOOK_URL: The Slack webhook URL to allow messages to be posted.
  • REALLY_POST_TO_SLACK: Messages will only be posted to Slack if the value of this var is 1.

Licence

The gem is available as open source under the terms of the MIT License.

tech-docs-monitor's People

Contributors

jhjava avatar m-green avatar matmoore avatar sihugh avatar thomasleese avatar tijmenb avatar timblair avatar vixus0 avatar

Watchers

 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.