Creative Commons AsciiDoc
This project provides Creative Commons licenses in AsciiDoc.
By default, these licenses are available as HTML or plain text. This project aims to provide these licenses written in a markup language which has both the document structure and human-readability. I think Markdown is more popular than AsciiDoc as a lightweight markup language, but I chose AsciiDoc because these licenses written in Markdown already exist, it can get closer to the HTML’s document structure than Markdown, and I personally prefer Markdown to AsciiDoc.
This project is inspired by https://github.com/idleberg/Creative-Commons-Markdown.
Available licenses
This project provides version 4.0 of the Creative Commons license suite and CC0 in English. For details about Creative Commons licenses, see https://creativecommons.org/share-your-work/cclicenses/.
- CC BY 4.0
- CC BY-SA 4.0
- CC BY-NC 4.0
- CC BY-NC-SA 4.0
- CC BY-ND 4.0
- CC BY-NC-ND 4.0
- CC0 1.0
The licenses in PDF are available on the release page. |
The AsciiDoc-formatted Creative Commons licenses are dedicated to the public domain under the CC0 Public Domain Dedication as well as the text of the Creative Commons public licenses.
How to convert
The licenses are compliant with the AsciiDoc Language Documentation. These can be converted to other formats using Asciidoctor.
The licenses can also be handled by AsciiDoc.py, but it is recommended to use Asciidoctor to properly handle them. |
asciidoctor assets/CC-BY-4.0.adoc
asciidoctor-pdf assets/CC0-1.0.adoc
For details about the available converters, see https://docs.asciidoctor.org/asciidoctor/latest/convert/available/.
If you want to convert to a file format which does not have a converter, you may be able to use Pandoc.
asciidoctor -b docbook5 -o - -a leveloffset=+1 assets/CC-BY-SA-4.0.adoc \
| pandoc -f docbook -t gfm \
> CC-BY-SA-4.0.md
It may be desirable to tidy up the output file of Pandoc. |
Source code
The upstream repository is available at https://github.com/sorairolake/creative-commons-asciidoc.git.