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

hubot-asciidoc

v0.2.0

Published

A hubot script that helps you to discover the Asciidoc(tor) markup

Downloads

10

Readme

= hubot-asciidoc :toc: macro :sectnums: :setanchors: // settings: ifdef::env-github,env-browser[:outfilesuffix: .adoc] // URIs: :uri-repo: https://github.com/anthonny/hubot-asciidoc :uri-help-base: https://help.github.com/articles :uri-issues: {uri-repo}/issues :uri-fork-help: {uri-help-base}/fork-a-repo :uri-branch-help: {uri-fork-help}#create-branches :uri-pr-help: {uri-help-base}/using-pull-requests :uri-gist: https://gist.github.com :uri-slack: https://slack.com :uri-gitter: https://gitter.im // GitHub Admonitions ifndef::env-github[:icons: font] ifdef::env-github,env-browser[] :toc: preamble :toclevels: 1 endif::[] ifdef::env-github[] :status: :outfilesuffix: .adoc :!toc-title: :caution-caption: :fire: :important-caption: :exclamation: :note-caption: :paperclip: :tip-caption: :bulb: :warning-caption: :warning: endif::[]

A hubot script for {uri-slack}[Slack] and {uri-gitter}[Gitter] that give you instant access to http://asciidoctor.org[Asciidoctor] syntax with a few keystrokes.

toc::[]

== Installation

=== Pre-requisites hubot-asciidoc works with {uri-slack}[Slack] and {uri-gitter}[Gitter].

You need to install one of the following adapters:

  • https://github.com/slackhq/hubot-slack[The Hubot adapter to use with Slack.]
  • https://github.com/huafu/hubot-gitter2[The Hubot adapter to use with Gitter.]

=== Install the hubot-asciidoc script

. Run npm install hubot-asciidoc --save. . Declare hubot-asciidoc in the Hubot external-scripts.json file: + [source,json]

[ "hubot-asciidoc" ]

== Execution The command to start your bot is different if you use {uri-slack}[Slack] or {uri-gitter}[Gitter]

If you use {uri-slack}[Slack]:

HUBOT_SLACK_TOKEN=<yout token> ./bin/hubot --adapter slack

If you use {uri-gitter}[Gitter]:

HUBOT_GITTER2_TOKEN=<your token> ./bin/hubot -adapter gitter2 --name <your bot name>

== Sample Interactions

=== See All Commands

To see all available commands, type @<botname> help asciidoc.

.The Slack version image::./assets/asciidoc-help.gif[]

.The Gitter version image::./assets/asciidoc-help-gitter.gif[]

=== Retrieve AsciiDoc Table Syntax

In Slack, type @<botname> asciidoc table block to display the table syntax.

.The Slack version image::./assets/asciidoc-table.gif[]

.The Gitter version image::./assets/asciidoc-table-gitter.gif[]

== Contributing

=== License Agreement

By contributing changes to this repository, you agree to license your contributions under the <<LICENSE#,MIT license>>. This ensures your contributions have the same license as the project and that the community is free to use your contributions. You also assert that you are the original author of the work that you are contributing unless otherwise stated.

=== Submitting an Issue

We use the {uri-issues}[issue tracker on GitHub] associated with this project to track bugs and features.

Before submitting a bug report or feature request, check to make sure it hasn't already been submitted.

When submitting a bug report, please include any details that may help reproduce the bug, including the asciidoc content or logs.

=== Contributing a Snippet

. Clone https://github.com/anthonny/hubot-asciidoc . Open /hubot-asciidoc/src/asciidoc.coffee. . See <> for the block syntax required. . Create the new block. . Add a comment to the top of the file, in alphabetical order. The comments are displayed when you run @<botname> help asciidoc. . Push your changes to GitHub and create your PR.

[[Snippet]] .Anatomy of a Snippet [source,json]

'comment': <1> title: "comment" <2> descriptionMoreURL: "http://asciidoctor.org/docs/user-manual/#comments" <3> description: """ <4> <5> // A single-line comment. """

<1> The lower-case (must be lower-case) name of the snippet you want other users to specify in the command. <2> The title of the snippet block when returned in Slack. Can be upper-case or lower-case. <3> The direct link to the Asciidoctor User Guide page describing more about the block. This is linked in the title. <4> The snippet block, delimited by three quotation marks. <5> The syntax you want to display in Slack is enclosed inside three back-ticks.

You'll notice that the snippet is hand-crafted. It's up to you what you put into the snippets, so here are some tips when creating them:

  • Be as detailed as you can within the scope of the snippet.
  • Keep the snippet as atomic as possible.

TIP: If you have five different table examples you want to propose, create five snippets.

==== Writing and Executing Tests

TODO