-
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.
- Loading branch information
Showing
2,750 changed files
with
448,155 additions
and
22,266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
$ cat .gitattributes | ||
* text=auto | ||
* text=auto eol=lf | ||
*.dbml linguist-language=JavaScript | ||
*.dbml linguist-vendored | ||
*.bpmn linguist-language=XML | ||
*.bpmn linguist-vendored |
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
.DS_Store | ||
.asciidoctor | ||
.vscode | ||
.idea | ||
node_modules/ | ||
dbml-error.log |
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
# See https://docs.asciidoctor.org/diagram-extension/latest/ | ||
# Tested on asciidoctor/docker-asciidoctor:1.78 | ||
FROM asciidoctor/docker-asciidoctor:latest | ||
|
||
# Image comes with PlantUML and Grahpviz by default | ||
# Add renderers of additional diagram languages | ||
|
||
# Add dependencies | ||
RUN apk add --update neovim nodejs npm | ||
RUN apk add --no-cache \ | ||
build-base \ | ||
g++ \ | ||
cairo-dev \ | ||
jpeg-dev \ | ||
giflib-dev \ | ||
libpng-dev \ | ||
pango-dev \ | ||
bash \ | ||
imagemagick | ||
|
||
# TODO: Consider installing bibtex for using: asciidoctor -r asciidoctor-bibtex | ||
|
||
# DBML | ||
# Since making ERD with PlantUML is cumbersome | ||
RUN npm install -g @dbml/cli | ||
RUN npm install -g @softwaretechnik/dbml-renderer | ||
|
||
# Note Mermaid and BPMN needs Puppeteer | ||
# So they are ommited for now in the default config | ||
|
||
# BPMN | ||
# Since making BPMN with PlantUML is not supported | ||
# RUN npm install -g bpmn-js-cmd | ||
|
||
# Mermaid for additional diagrams | ||
# RUN npm install -g @mermaid-js/mermaid-cli | ||
|
||
# Vega | ||
# For making charts and graphs | ||
RUN npm install --build-from-source -g vega-cli vega vega-lite vega-embed | ||
|
||
WORKDIR /documents | ||
VOLUME /documents | ||
|
||
CMD ["/bin/bash"] |
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,3 @@ | ||
These documents are licensed with Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International | ||
|
||
Unless explicitly specified source code Licensed with BSD-2. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,45 +1,35 @@ | ||
.PHONY: html docbook pdf epub word build clean update | ||
|
||
# TODO: Consider Docker https://github.com/asciidoctor/docker-asciidoctor | ||
|
||
build b: | ||
@make clean | ||
@make html | ||
@make docbook | ||
@make pdf | ||
@make word | ||
@make epub | ||
.PHONY: html pdf server install bash word docbook docs | ||
|
||
html h: | ||
@rm -rf docs/index.html | ||
@mkdir -p docs/book/assets | ||
@cp -R assets/highlight docs/ | ||
@cp -R book/assets docs/book | ||
|
||
asciidoctor book.adoc -o docs/index.html | ||
|
||
docbook d: | ||
@mkdir -p docs | ||
@rm -rf docs/book.xml | ||
asciidoctor -a media=prepress -b docbook book.adoc -o docs/book.xml | ||
@rm -rf docs/html | ||
@mkdir -p docs/html | ||
@cp -r resources/ docs/html | ||
@docker run -it -u $(id -u):$(id -g) -v .:/documents/ adoc-book asciidoctor -r asciidoctor-diagram book.adoc -o docs/html/index.html --verbose | ||
|
||
pdf p: | ||
@mkdir -p docs | ||
@rm -rf docs/book.pdf | ||
asciidoctor-pdf -a allow-uri-read=true -a source-highlighter=rouge -a rouge-style=monokai_sublime book.adoc -o docs/book.pdf | ||
@make docs | ||
@docker run -it -u $(id -u):$(id -g) -v .:/documents/ adoc-book asciidoctor-pdf -a allow-uri-read=true -a source-highlighter=rouge -a rouge-style=monokai_sublime -r asciidoctor-diagram -r asciidoctor-mathematical -a mathematical-format=svg book.adoc -o docs/book.pdf --verbose | ||
|
||
epub e: | ||
@mkdir -p docs | ||
@rm -rf docs/book.epub | ||
@cd docs && pandoc --from docbook --to epub --output book.epub book.xml | ||
server s: | ||
@cd docs/html && echo "http://localhost:8000" && python3 -m http.server | ||
|
||
clean c: | ||
@rm -rf docs | ||
# Enter the server inside Docker | ||
bash: | ||
@docker run -it -u $(id -u):$(id -g) -v .:/documents/ adoc-book /bin/bash | ||
|
||
update u: | ||
@./update.sh | ||
install i: | ||
@docker build -t adoc-book . | ||
|
||
word w: | ||
docs: | ||
@mkdir -p docs | ||
|
||
docbook d: | ||
@make docs | ||
@rm -rf docs/book.xml | ||
@docker run -it -u $(id -u):$(id -g) -v .:/documents/ adoc-book asciidoctor -b docbook -r asciidoctor-diagram -r asciidoctor-mathematical -a mathematical-format=svg -a media=prepress book.adoc -o docs/book.xml --verbose | ||
|
||
word w: | ||
@make docs | ||
@rm -rf docs/book.docx | ||
@cd docs && pandoc --from docbook --to docx --output book.docx book.xml |
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
Oops, something went wrong.