-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add Asciidoctor and remove Markdown support
BREAKING CHANGE: this update brings major refactoring related to support of Asciidoctor toolchain: - updated converter functions to support Asciidoctor - removed Markdown from parsers, functions and unit tests - updated payloads of the directory traversal and file content functions - updated validation schemas - updated build and serve scripts - refactored unit tests for Asciidoctor - updated css styles - updated Dockerfile - removed action to push repo README to Docker hub - updated package.json description - removed unused dependencies Closes (#42) (#46)
- Loading branch information
1 parent
70b1065
commit bf38496
Showing
35 changed files
with
1,174 additions
and
1,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
== Antmarky | ||
|
||
Antmarky is a static-site generator for https://docs.asciidoctor.org/asciidoc/latest[`Asciidoctor`^] based on Node.js and EJS. | ||
|
||
https://github.com/bandantonio/antmarky/actions/workflows/antmarky.yml[image:https://github.com/bandantonio/antmarky/actions/workflows/antmarky.yml/badge.svg?branch=main[antmarky]^] | ||
https://coveralls.io/github/bandantonio/antmarky?branch=main[image:https://coveralls.io/repos/github/bandantonio/antmarky/badge.svg?branch=main[Coverage | ||
Status]^] | ||
image:https://img.shields.io/docker/pulls/bandantonio/antmarky[Docker | ||
Pulls] | ||
https://github.com/standard/semistandard[image:https://img.shields.io/badge/code%20style-semistandard-f7df1e.svg[js-semistandard-style]^] | ||
|
||
The main idea behind creating Antmarky was to have a generator with _zero configuration_ that can serve your Asciidoctor files | ||
in the documentation directory. | ||
|
||
Consider Antmarky as a lightweight alternative to https://docs.antora.org/antora/latest/[Antora^]. | ||
|
||
Currently, Antmarky flattens out the directory structure and displays all the files at the root level under the | ||
corresponding directory. | ||
|
||
=== Features | ||
|
||
* Zero configuration | ||
* Fully responsive layout | ||
* Fully static (doesn't require a web server to work) | ||
* No language frameworks included | ||
* Support of major Asciidoctor features: | ||
** https://docs.asciidoctor.org/asciidoc/latest/directives/include/[Includes^] | ||
** https://docs.asciidoctor.org/asciidoc/latest/directives/conditionals/[Conditionals^] | ||
** https://docs.asciidoctor.org/asciidoc/latest/tables/build-a-basic-table/[Tables^] | ||
** https://docs.asciidoctor.org/asciidoc/latest/blocks/admonitions/[Admonitions^] | ||
* xref:features.adoc#fontawesome[FontAwesome] | ||
* Copy code block | ||
|
||
=== Quickstart | ||
|
||
==== Prerequisites | ||
|
||
* https://docs.docker.com/get-docker/[Docker^] | ||
|
||
==== Serve content | ||
|
||
[source,sh] | ||
---- | ||
docker run --rm \ | ||
--name antmarky-ssg \ | ||
-v ${PWD}/docs:/antmarky/docs \ | ||
-p 8000:8000 \ | ||
bandantonio/antmarky | ||
---- | ||
|
||
Local server will be launched at http://localhost:8000[^] | ||
|
||
==== Build content | ||
|
||
[source,sh] | ||
---- | ||
docker run --rm \ | ||
--name antmarky-ssg \ | ||
-v ${PWD}/docs:/antmarky/docs \ | ||
-v ${PWD}/public:/antmarky/public \ | ||
bandantonio/antmarky build | ||
---- | ||
|
||
Website static files will be generated in the `public` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
== Features | ||
|
||
=== Admonitions | ||
|
||
Supported admonitions: `NOTE`, `TIP`, `IMPORTANT`, `CAUTION`, `WARNING`. | ||
|
||
[NOTE] | ||
==== | ||
[source, md] | ||
---- | ||
NOTE: Note admonition body | ||
---- | ||
==== | ||
|
||
[TIP] | ||
==== | ||
[source, md] | ||
---- | ||
TIP: Tip admonition body | ||
---- | ||
==== | ||
|
||
[IMPORTANT] | ||
==== | ||
[source, md] | ||
---- | ||
IMPORTANT: Important admonition body | ||
---- | ||
==== | ||
|
||
[CAUTION] | ||
==== | ||
[source, md] | ||
---- | ||
CAUTION: Caution admonition body | ||
---- | ||
==== | ||
|
||
[WARNING] | ||
==== | ||
[source, md] | ||
---- | ||
WARNING: Warning admonition body | ||
---- | ||
==== | ||
|
||
=== FontAwesome | ||
|
||
Antmarky supports https://fontawesome.com/v4/cheatsheet/[FontAwesome v4.7^] for compatibility reasons. | ||
|
||
To use icons in the document, use the following syntax: | ||
|
||
[source, plaintext] | ||
---- | ||
icon:bicycle[] is good for your icon:heart[] | ||
---- | ||
|
||
This will be rendered as: icon:bicycle[] is good for your icon:heart[] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.