@jtanguy/gatsby-transformer-asciidoctor

0.1.1 • Public • Published

gatsby-transformer-asciidoctor

Julien Tanguy v0.1.0, 2019-01-07: Initial version

Parses asciidoc files using asciidoctor.js

Install

npm install --save @jtanguy/gatsby-transformer-asciidoctor

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `@jtanguy/gatsby-transformer-asciidoctor`,
  },
],

Parsing algorithm

It recognizes only files with the adoc extensions as asciidoc.

Each asciidoc file is parsed into a node of type Asciidoctor.

The following standard attributes are stored in the document’s frontmatter:

  • title

  • date

  • version

  • remark

  • author

  • authors: a list of authors, with the following fields:

    • name

    • firstname

    • lastname

    • email

    • initials

The following non-standard attributes are stored in the document’s frontmatter

description
The description attribute

tags
The tags attribute. The value is split into a list using ; as a delimiter

Readme

Keywords

none

Package Sidebar

Install

npm i @jtanguy/gatsby-transformer-asciidoctor

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

6.85 kB

Total Files

6

Last publish

Collaborators

  • jtanguy