Code Monkey home page Code Monkey logo

asyncapi.io's Introduction

AsyncAPI website

This repo contains the asyncapi.io website. It's powered by Hugo.

Installation

Follow Hugo installation instructions to install the website.

Running in development

Start a development server:

hugo server -D

Authoring

Adding a new documentation page

hugo new docs/page_name.md

This will create a draft version of your page. Make sure you remove draft: true from the front-matter of the document once it's ready to get published.

Removing a page

Just remove the page file. E.g., rm content/docs/page_name.md.

Shortcodes

Code

This shortcode allows you to add a block of code. It has the following features:

  • Language selector
  • Line highlighter
Usage Example
{{<code lang="yaml" lines="2-4,6">}}
This line should not be highlighted.
This line should be highlighted.
This line should be highlighted.
This line should be highlighted.
This line should not be highlighted.
This line should be highlighted.
{{</code>}}

Link

This shortcode allows you to add a link that will open in a new tab.

Usage Example
{{% link anotherwebsite.com %}}Text of the link (Markdown){{% /link %}}
{{<link anotherwebsite.com>}}Text of the link (HTML){{</link>}}

Notice

This shortcode allows you to add a notice message to your document.

Usage Example
{{% notice %}}
A Markdown text for the notice.
{{% /notice %}}
{{<notice>}}
An HTML text for the notice.
{{</notice>}}

Icon and header title are customizable using icon and title properties respectively. For instance:

{{% notice icon="map-pin" title="Another title" %}}
A Markdown text for the notice.
{{% /notice %}}

Find icons here: https://fontawesome.com/icons?d=gallery&m=free

Remember

This shortcode allows you to add a message the user must remember or something you want to remark.

Usage Example
{{% remember %}}
A Markdown text.
{{% /remember %}}
{{<remember>}}
An HTML text.
{{</remember>}}

Icon and header title are customizable using icon and title properties respectively. For instance:

{{% remember icon="map-pin" title="Another title" %}}
A Markdown text.
{{% /remember %}}

Find icons here: https://fontawesome.com/icons?d=gallery&m=free

Specification chooser

This shortcode shows a menu bar with all the specification versions and highlights the current one.

Usage Example
{{% spec-chooser current="1.1.0" %}}

asyncapi.io's People

Contributors

fmvilas avatar

Watchers

 avatar

Forkers

apeschel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.