Socket
Socket
Sign inDemoInstall

@neo4j-antora/antora-add-notes

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @neo4j-antora/antora-add-notes

Add asciidoc blocks into the top of pages based on page attributes


Version published
Weekly downloads
186
decreased by-11%
Maintainers
1
Install size
2.88 kB
Created
Weekly downloads
 

Readme

Source

antora-add-notes

Use the antora-add-notes extension to add asciidoc into the top of pages.

The extension uses Page Attributes to define content to be added to the top of a page, immediately below the title.

Usage

Define attributes in an Antora playbook, antora.yml, or asciidoc page header.

page-add-notes-module

Use the page-add-notes-module attribute to specify the name of the module that contains the asciidoc you want to add. If page-add-notes-module is not specified, the ROOT module is used.

page-add-notes-module: my-notes@

page-add-notes-tags

page-add-notes-tags: tag-1;tag-2@

Tagged sections are read from {page-add-notes-module}:partial$/notes.adoc.

To include multiple tags, add the tags as a list, for example page-add-notes-tags: review;preview.

page-add-notes-versions

By default the note is displayed in all versions of all pages. Use the page-add-notes-versions attribute to specify which versions of the HTML pages you want the note to be displayed on. If you do not include this attribute, notes will be added to pages in all versions.

page-add-notes-versions: ['5', '4.4']

Example

  1. Create modules/my-notes/partials/notes.adoc with the following content:

    # tag::preview[]
    [NOTE]
    ====
    This is preview content
    ====
    # end::preview[]
    
  2. In your Antora playbook file, add an asciidoc attribute - page-add-notes-module: my-notes

  3. In your Antora playbook file, add an asciidoc attribute - page-add-notes-tags: preview

  4. Use Antora to generate HTML.

Keywords

FAQs

Last updated on 31 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc