Skip to content

Commit e8bbf04

Browse files
committed
added antora
1 parent 0742cb9 commit e8bbf04

File tree

1,554 files changed

+15207
-53996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,554 files changed

+15207
-53996
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ indent_style = space
55
charset = utf-8
66
insert_final_newline = true
77
trim_trailing_whitespace = true
8+
end_of_line = lf
89

910
[{*.adoc, *.md}]
1011
trim_trailing_whitespace = false

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
$ cat .gitattributes
22
* text=auto eol=lf
3+
*.dbml linguist-language=JavaScript
4+
*.dbml linguist-vendored
5+
*.png binary
6+
*.jpg binary
7+
*.jpeg binary
8+
*.gif binary
9+
*.webp binary
10+
*.avif binary

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
2-
Thumbs.db
2+
.vscode
3+
.idea
34
node_modules/
4-
docs/book.pdf
5-
update.sh
5+
dbml-error.log
6+

.tool-versions

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

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM docker.io/antora/antora
2+
3+
RUN yarn global add asciidoctor-kroki
4+
RUN yarn global add asciidoctor-emoji
5+
RUN yarn global add @antora/lunr-extension

LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
These documents are licensed with Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
2+
3+
Unless explicitly specified source code Licensed with BSD-2.

Makefile

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,16 @@
1-
.PHONY: html docbook pdf epub build clean server
1+
.PHONY: install build server
2+
BUILD=podman
3+
CONTAINER_LABEL=local/antora:elixir-fullstack
24

3-
# Consider Docker https://github.com/asciidoctor/docker-asciidoctor
5+
install i:
6+
${BUILD} build -t ${CONTAINER_LABEL} .
47

58
build b:
6-
@make clean
7-
@make html
8-
@make docbook
9-
@make pdf
9+
@rm -rf docs/
10+
${BUILD} run -u $(id -u):$(id -g) -v .:/antora:z --rm -t ${CONTAINER_LABEL} antora-playbook.yml
11+
@touch docs/.nojekyll
1012

1113
server s:
12-
@make html
13-
@echo "http://localhost:8000"
14+
@make build
1415
@cd docs && python3 -m http.server
15-
16-
html h:
17-
@mkdir -p docs/book/
18-
@rm -rf docs/index.html
19-
@cp -R assets/highlight docs/
20-
@cp -R book/images docs/book/images
21-
asciidoctor book.adoc -o docs/index.html
22-
23-
docbook d:
24-
@mkdir -p docs
25-
@rm -rf docs/book.xml
26-
asciidoctor -b docbook book.adoc -o docs/book.xml
27-
28-
pdf p:
29-
@mkdir -p docs
30-
@rm -rf docs/book.pdf
31-
asciidoctor-pdf -a allow-uri-read=true -a source-highlighter=rouge -a rouge-style=monokai_sublime book.adoc -o docs/book.pdf
32-
33-
# Epub is in beta. Maybe try using docbook for best resuts.
34-
epub e:
35-
@mkdir -p docs
36-
@rm -rf docs/book.epub
37-
asciidoctor-epub3 -D docs/book.epub -a allow-uri-read -a ebook-validate -a source-highlighter=rouge -a rouge-style=monokai_sublime book.adoc
38-
39-
clean c:
40-
@rm -rf docs
16+

antora-playbook.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
site:
2+
title: Elixir Full-Stack
3+
url: https://elixircl.github.io/elixir-fullstack
4+
start_page: "ROOT::index.adoc"
5+
6+
content:
7+
sources:
8+
- url: .
9+
branches: HEAD
10+
start_path: .
11+
12+
antora:
13+
extensions:
14+
- require: '@antora/lunr-extension'
15+
16+
asciidoc:
17+
extensions:
18+
- asciidoctor-emoji
19+
- asciidoctor-kroki
20+
attributes:
21+
kroki-fetch-diagram: true
22+
experimental: ''
23+
idprefix: ''
24+
idseparator: '-'
25+
page-pagination: ''
26+
highlightjs-theme: monokai
27+
highlightjs-languages: js, elixir, sql, yaml, html, css
28+
29+
ui:
30+
bundle:
31+
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
32+
snapshot: true
33+
# https://gitlab.com/antora/antora-ui-default/-/tree/master/src/partials
34+
supplemental_files: supplemental-ui/
35+
36+
output:
37+
dir: docs/

antora.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: ROOT
2+
version: ~
3+
title: Elixir Full-Stack
4+
display_version: Spanish
5+
asciidoc:
6+
attributes:
7+
page-home: Inicio
8+
nav:
9+
- modules/ROOT/nav.adoc
10+
- modules/history/nav.adoc
11+
- modules/jobs/nav.adoc
12+
- modules/patterns/nav.adoc
13+
- modules/systemd/nav.adoc
14+
- modules/github/nav.adoc
15+
- modules/hosting/nav.adoc
16+
- modules/networking/nav.adoc
17+
- modules/http/nav.adoc
18+
- modules/security/nav.adoc
19+
- modules/html/nav.adoc
20+
- modules/javascript/nav.adoc
21+
- modules/elixir/nav.adoc
22+
- modules/mobile/nav.adoc

0 commit comments

Comments
 (0)