Skip to content

Commit bf38496

Browse files
committed
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)
1 parent 70b1065 commit bf38496

35 files changed

+1174
-1287
lines changed

.github/workflows/antmarky.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,3 @@ jobs:
121121
push: ${{ github.event_name != 'pull_request' }}
122122
tags: ${{ steps.docker_meta.outputs.tags }}
123123
labels: ${{ steps.docker_meta.outputs.labels }}
124-
125-
- name: 🐋 📝 DockerHub description
126-
uses: peter-evans/dockerhub-description@v3
127-
with:
128-
username: ${{ secrets.DOCKER_HUB_USER }}
129-
password: ${{ secrets.DOCKER_HUB_ALT_TOKEN }}
130-
repository: bandantonio/antmarky
131-
short-description: ${{ github.event.repository.description }}

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM node:17.4.0-alpine3.14 as build
2-
LABEL VERSION="1.0.0"
2+
LABEL VERSION="1.1.0"
33
LABEL MAINTAINER="Anton Zolotukhin"
4-
LABEL NAME="Antmarky is a static-site generator for Markdown"
4+
LABEL NAME="Antmarky is a static-site generator for Asciidoctor"
55

66
WORKDIR /antmarky
7-
COPY package.json server.js README.md ./
7+
COPY package.json server.js README.adoc ./
88
RUN npm i
99
COPY . .
1010

README.adoc

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
== Antmarky
2+
3+
Antmarky is a static-site generator for https://docs.asciidoctor.org/asciidoc/latest[`Asciidoctor`^] based on Node.js and EJS.
4+
5+
https://github.com/bandantonio/antmarky/actions/workflows/antmarky.yml[image:https://github.com/bandantonio/antmarky/actions/workflows/antmarky.yml/badge.svg?branch=main[antmarky]^]
6+
https://coveralls.io/github/bandantonio/antmarky?branch=main[image:https://coveralls.io/repos/github/bandantonio/antmarky/badge.svg?branch=main[Coverage
7+
Status]^]
8+
image:https://img.shields.io/docker/pulls/bandantonio/antmarky[Docker
9+
Pulls]
10+
https://github.com/standard/semistandard[image:https://img.shields.io/badge/code%20style-semistandard-f7df1e.svg[js-semistandard-style]^]
11+
12+
The main idea behind creating Antmarky was to have a generator with _zero configuration_ that can serve your Asciidoctor files
13+
in the documentation directory.
14+
15+
Consider Antmarky as a lightweight alternative to https://docs.antora.org/antora/latest/[Antora^].
16+
17+
Currently, Antmarky flattens out the directory structure and displays all the files at the root level under the
18+
corresponding directory.
19+
20+
=== Features
21+
22+
* Zero configuration
23+
* Fully responsive layout
24+
* Fully static (doesn't require a web server to work)
25+
* No language frameworks included
26+
* Support of major Asciidoctor features:
27+
** https://docs.asciidoctor.org/asciidoc/latest/directives/include/[Includes^]
28+
** https://docs.asciidoctor.org/asciidoc/latest/directives/conditionals/[Conditionals^]
29+
** https://docs.asciidoctor.org/asciidoc/latest/tables/build-a-basic-table/[Tables^]
30+
** https://docs.asciidoctor.org/asciidoc/latest/blocks/admonitions/[Admonitions^]
31+
* xref:features.adoc#fontawesome[FontAwesome]
32+
* Copy code block
33+
34+
=== Quickstart
35+
36+
==== Prerequisites
37+
38+
* https://docs.docker.com/get-docker/[Docker^]
39+
40+
==== Serve content
41+
42+
[source,sh]
43+
----
44+
docker run --rm \
45+
--name antmarky-ssg \
46+
-v ${PWD}/docs:/antmarky/docs \
47+
-p 8000:8000 \
48+
bandantonio/antmarky
49+
----
50+
51+
Local server will be launched at http://localhost:8000[^]
52+
53+
==== Build content
54+
55+
[source,sh]
56+
----
57+
docker run --rm \
58+
--name antmarky-ssg \
59+
-v ${PWD}/docs:/antmarky/docs \
60+
-v ${PWD}/public:/antmarky/public \
61+
bandantonio/antmarky build
62+
----
63+
64+
Website static files will be generated in the `public` directory.

README.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/features.adoc

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
== Features
2+
3+
=== Admonitions
4+
5+
Supported admonitions: `NOTE`, `TIP`, `IMPORTANT`, `CAUTION`, `WARNING`.
6+
7+
[NOTE]
8+
====
9+
[source, md]
10+
----
11+
NOTE: Note admonition body
12+
----
13+
====
14+
15+
[TIP]
16+
====
17+
[source, md]
18+
----
19+
TIP: Tip admonition body
20+
----
21+
====
22+
23+
[IMPORTANT]
24+
====
25+
[source, md]
26+
----
27+
IMPORTANT: Important admonition body
28+
----
29+
====
30+
31+
[CAUTION]
32+
====
33+
[source, md]
34+
----
35+
CAUTION: Caution admonition body
36+
----
37+
====
38+
39+
[WARNING]
40+
====
41+
[source, md]
42+
----
43+
WARNING: Warning admonition body
44+
----
45+
====
46+
47+
=== FontAwesome
48+
49+
Antmarky supports https://fontawesome.com/v4/cheatsheet/[FontAwesome v4.7^] for compatibility reasons.
50+
51+
To use icons in the document, use the following syntax:
52+
53+
[source, plaintext]
54+
----
55+
icon:bicycle[] is good for your icon:heart[]
56+
----
57+
58+
This will be rendered as: icon:bicycle[] is good for your icon:heart[]

docs/features.md

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)