This library is called @forastro/asciidoc
. It's tool that allows developers to render asciidoc pages in Astro. It's main use is to use the Asciidoc Loader. This library also support's Syntax Highlighting and the Best CSS Generators for styling.
To install this library you must use one of these methods:
After installing this library make sure you create a content.config.ts
file. When you do you should import the loader from @forastro/asciidoc
. Then write the config like this.
This library also comes with two schemas that are recommended to use. The first one is called the asciidocBaseSchema
. The second one is called the asciidocDraftSchema
.
To use the asciidocBaseSchema
you configure the app like this.
This Schema makes it so that you write the title author, and description in each page. In return you get these props from each file:
- title
- authorInitials
- firstName
- middleName
- lastName
- createdAt
- updatedAt