New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@btodell/asyncapi-html-template

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@btodell/asyncapi-html-template

HTML template for the AsyncAPI generator.

latest
Source
npmnpm
Version
0.24.10
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

AsyncAPI HTML Template

HTML template for the AsyncAPI Generator using an AsyncAPI React Component under the hood.

All Contributors

npm

Usage

ag asyncapi.yaml @asyncapi/html-template -o output

If you don't have the AsyncAPI Generator installed, you can install it like this:

npm install -g @asyncapi/generator

Supported parameters

NameDescriptionRequiredDefaultAllowed valuesExample
sidebarOrganizationDefines how the sidebar should be organized. Set its value to byTagsNoRoot to categorize operations by operations tags. Set its value to byTags when you have tags on a root level. These tags are used to model tags navigation and need to have the same tags in operations.NoundefinedbyTags, byTagsNoRootbyTagsNoRoot
baseHrefSets the base URL for links and forms.No/Any/docs
versionOverride the version of your application provided under info.version location in the specification file.NoVersion is taken from the spec file.Any (See Semver versioning)1.0.0
singleFileSet output into one html-file with styles and scripts insideNofalsetrue,falsetrue
outFilenameThe filename of the output file.Noindex.htmlAnyasyncapi.html
pdfGenerates output HTML as PDFNofalsetrue,falsefalse
configInline stringified JSON or a path to a JSON file to override default React component config. The config override is merged with the default config using the JSON Merge Patch algorithm.No{ "show": { "sidebar": true }, "sidebar": { "showOperations": "byDefault" } }JSON config for the React component{"show":{"sidebar":false}}

NOTE: If you only generate an HTML website, set the environment variable PUPPETEER_SKIP_CHROMIUM_DOWNLOAD to true and the generator will skip downloading chromium.

Development

The HTML-Template is built with an AsyncAPI React Component. For any changes regarding the styling of the page, rendering of the missing/existing elements, please contribute to the AsyncAPI React Component repository.

If you want make changes in template itself, please follow:

  • Make sure you have the latest generator installed: npm install -g @asyncapi/generator.

  • Modify the template or its helper functions.

    NOTE: If you have to modify the dummy.yml file to develop your features, open a PR with the changes in the asyncapi/generator repository.

  • Generate output with watcher enabled: npm run develop.

    NOTE: If your changes are not visible, this is maybe because the ag use the already installed html-template so you should use the --install option

    • run npm run develop:install
    • if command failed, delete the cached html-template module in your system and re-rerun the command
  • Open HTML in your browser: open ./test/output/index.html.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


James Crowley

💻 🐛

Waleed Ashraf

💻 🐛

Julian Rabe

💻

Sebastián

⚠️ 💻

Gordeev Artem

💻

Mitchell Sawatzky

💻

Talmiz Ahmed

💻

Jürgen B.

🚇

Gabriel Claudino

💻

Barbara Szwarc

📖

Julian S.

💻

Ludovic Dussart

💻

David Weber

💻

Maciej Urbańczyk

💻 ⚠️ 🐛 🚧 👀

Lukasz Gornicki

🚧 💻 🐛 👀 ⚠️

Fran Méndez

🚧 💻 🐛 👀 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

asyncapi

FAQs

Package last updated on 06 Sep 2022

Did you know?

Socket

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