diff --git a/Makefile b/Makefile index 1f2166c..0f38458 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ man: markdown: @asciidoctor docs/readme.adoc -b docbook -a leveloffset=+1 -o - | pandoc --atx-headers --wrap=preserve -t gfm -f docbook - > README.md + @asciidoctor docs/generated/examples.adoc -b docbook -a leveloffset=+1 -o - | pandoc --atx-headers --wrap=preserve -t gfm -f docbook - > docs/generated/examples.md proto: @./protoc/bin/protoc -I=examples/ \ diff --git a/README.md b/README.md index db82850..920c549 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,11 @@ Do not set a document header and ToC ## Output -You can view the output of the example below under -[Examples Documentation](https://github.com/productsupcom/code2asciidoc/blob/master/docs/generated/examples.adoc) +You can view the output of the example below in Asciidoc here: +[Examples Documentation in AsciiDoc](https://github.com/productsupcom/code2asciidoc/blob/master/docs/generated/examples.adoc) + +Or as a Markdown version (generated from Asciidoc through Pandoc output) here: +[Examples Documentation in Markdown](https://github.com/productsupcom/code2asciidoc/blob/master/docs/generated/examples.md) ## Example diff --git a/docs/generated/examples.md b/docs/generated/examples.md new file mode 100644 index 0000000..e529185 --- /dev/null +++ b/docs/generated/examples.md @@ -0,0 +1,48 @@ +# examples + +## Example Hello World + +A simple demonstration to show the syntax of code2asciidoc. +You can use any form of asciidoc inside the comments, as it will be +properly parsed by AsciiDoc later. + +What is important is that the function of the test method is the same +as the Tags set below. +Also the name for the CreateJsonSample must match (the name of the current) +package\! + +Be sure to place it inside a filename you can later ingest into your +API docs. Recommended is to keep it per gRPC Service. + +