Giter Club home page Giter Club logo

versc's Introduction

versc

Versc is a diagnostic tool written in Go for documentation projects that rely on reStructuredText as source code. Its purpose is to scan the source repository for version descriptors that are EOL. Once it finds the offending version descriptors, it prints them to stdout in a grep-like format. This allows the writer to quickly identify the files that need attention when a version of the product goes EOL.

Installation

  1. Clone repository:

    $ cd ~/go/src/github.com/kennethdyer 
    $ git clone [email protected]/kennethdyer/versc
    $ cd versc
    
  2. Install external dependencies:

    $ go get github.com/spf13/viper
    $ go get github.com/spf13/cobra
    
  3. Install versc:

    $ make
    

Configuration

To configure versc, create a configuration file at ~/.config/avocet/versc.yml. The configuration file should feature a products map, which provides specification for each product.

products:
  myProductKey:
    name: MyProduct
    versions:
       - "2.1"
       - "2.2"
exclude_pattern:
   - release-notes

The product specification requires a name field, which indicates the likely string to occur for the product name.

It also requires a versions field, which is an array of version numbers for the currently supported releases. Any version that is not found in the array is logged as a match and printed to stdout.

It is best practice to exclude the directory containing release notes, as this is a legitimate place to mention older versions of a product.

Usage

To print unsupported version descriptors, call versc with the directory you want to search:

$ versc source
2.0  -  source/reference/feature   Starting in MyProduct 2.0, xyz occurs

If you have multiple products specified, provide the product key to the search:

$ versc source myProductKey
2.0  -  source/reference/feature   Starting in MyProduct 2.0, xyz occurs

Explanation of the Name

The name versc derives from a syncopation of the boring descriptor "version scanner," which has here been given an much more interesting Old English pronunciation of /vərʃ/, (for all those folks who told me I'd never get to use my philology degrees at work).

versc's People

Contributors

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