Skip to content

Commit

Permalink
init antora doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeEscande committed Nov 9, 2023
1 parent f38eef2 commit 3360cec
Show file tree
Hide file tree
Showing 56 changed files with 3,809 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@ coverage/
*.iws
*.iml
*.ipr


# Doc
doc/**/build
42 changes: 42 additions & 0 deletions doc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
FROM alpine:latest AS BUILD

RUN apk add npm

WORKDIR /usr/app

COPY doc-ui /usr/app

RUN npm install
RUN ./node_modules/gulp/bin/gulp.js bundle

FROM alpine:latest AS UI

COPY --from=BUILD /usr/app/build/ui-bundle.zip /usr/app/ui-bundle.zip


FROM alpine:latest

RUN apk add git
RUN apk add npm
RUN apk add ruby

RUN mkdir /home/antora

WORKDIR /home/antora

COPY docs-site/package.json .
COPY docs-site/package-lock.json .

RUN npm install
RUN gem install asciidoctor
RUN gem install asciidoctor-pdf
RUN gem install rouge
RUN gem install kramdown-asciidoc

ENV PATH="$PATH:/home/antora/node_modules/@antora/cli/bin/"

COPY --from=UI /usr/app/ui-bundle.zip .

WORKDIR /usr/app

CMD ["antora", "--clean", "--stacktrace", "/usr/app/doc/docs-site/antora-playbook.yml"]
1 change: 1 addition & 0 deletions doc/doc-ui
Submodule doc-ui added at 4651e2
25 changes: 25 additions & 0 deletions doc/docs-site/antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
site:
title: SysOn documentation
start_page: syson::index.adoc

output:
clean: true

content:
sources:
- url: /usr/app
start_paths: doc/public
branches: HEAD

ui:
bundle:
url: /home/antora/ui-bundle.zip

asciidoc:
attributes:
icons: font
icon-set: fas
sectanchors:
sectlinks:
sectnums: all
page-toclevels: 3
Loading

0 comments on commit 3360cec

Please sign in to comment.