npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@pipelinedoc/cli

v1.8.0

Published

CLI for generating docs from Azure Pipelines YAML templates

Downloads

6

Readme

@pipelinedoc/cli

The CLI for generating docs for your YAML pipeline template files. Sample generated docs.

Install

Install with NPM:

npm install -g @pipelinedoc/cli

or install with yarn:

yarn global add @pipelinedoc/cli

Commands

Generate

Generate markdown docs from your templates. Currently only supports Azure Pipelines templates.

pipelinedoc generate <files> [options]

Arguments

  • files: specify a space-separated list of glob patterns to match your pipeline templates.

Options

  • --out-dir, -o: specify the directory to output the files to. Defaults to ./docs.
  • --strict: in strict mode, warnings are considered errors and the CLI will exit with a non-zero exit code.
  • --repo-identifier: the repo identifier for importing templates in Azure Pipelines. Defaults to templates.
  • --generate-frontmatter: generate YAML frontmatter on each .md file with machine-readable metadata.
  • --assert-unstaged: exit with a non-zero exit if there are unstaged docs files after generating docs. Useful for pre-commit Git hooks to ensure your docs are up-to-date.

Properties file

In order to fully document templates, pipelinedoc requires a second "properties" file for each template. This is because adding extra meta properties to templates is disallowed by the template parsers.

To document a template with a properties file, create a file next to your template file with the same name but with the .properties.yml extension (you can also use .yaml and .json if you prefer). For example, if I had a my-template.yml template, I would create a my-template.properties.yml properties file.

Supported properties

  • name: the display name of the template.
  • version: the version of the template. Strings and numbers are supported.
  • description: the description of the template. Markdown is supported.
  • category: a category to assign the template to. Used for grouping templates in the index.md doc
  • usageStyle: the style of the usage example, either 'insert' or 'extend'. If 'insert', uses the template insertion syntax, and if 'extend', uses the template extension syntax. Defaults to 'insert'.
  • deprecated: whether or not the template is deprecated. Implicitly true if deprecatedWarning is supplied.
  • deprecatedWarning: a message to include with the deprecated warning. Markdown is supported.
  • parameters.<parameter name>.description: the description of the parameter. Markdown is supported.
  • examples.<index>.title: the title of a usage example. Markdown is supported.
  • examples.<index>.description: the description of a usage example. Markdown is supported.
  • examples.<index>.example: the example YAML object. Examples may include variables in keys or values using the syntax $<variableName>. The following variables are available:
    • templatePath: the template path (including repo identifier) to include the template with.

Example

name: My template
version: 1
description: |
  This is my _fancy_ description with **markdown**!
category: Utils
parameters:
  myParameter:
    description: |
      This is my parameter with the name `myParameter`.
examples:
  - example:
      stages:
        - stage: my_stage
          jobs:
            - template: $<templatePath>
              parameters:
                myParameter: the best way to use me
  - title: Example title
    description: Some more details here.
    example:
      jobs:
        - template: $<templatePath>
          parameters:
            myParameter: another option