Giter Site home page Giter Site logo

docker-asciidoctor-jp's Introduction

docker-asciidoctor-jp

Asciidoctor docker container で日本語が使えるようカスタマイズしたdocker-asciidoctor-jpをベースにしたDockerコンテナです。

何ができるか

  • AsciidocテキストをHTML/PDF/EPUB3/mobiへ変換する

    • 図形の描画

      • Graphviz

      • PlantUML

      • ditaa

      • mermaid 7.0.9

      • blockdiag(seqdiag/actdiag/nwdiag)

    • シンタックスハイライト(CodeRay/Pygments/highlightjs/prettify)

  • Reveal.jsのプレゼンテーションを作成する

  • その他(docker-asciidoctor参照)

環境

  • Asciidoctor 1.5.6.1

  • asciidoctor-pdf (alpha)

  • Asciidoctor-epub3 (alpha)

  • asciidoctor-fopub

  • asciidoctor-confluence

  • asciidoctor-revealjs

  • asciidoctor-pdf-cjk-kai_gen_gothic]

  • asciidoctor-stylesheet-factory

  • VL Gothic

使い方

コンテナを起動
docker run --rm -it -v $(pwd):/documents htakeuchi/docker-asciidoctor-jp
PDFの生成
asciidoctor-pdf -r asciidoctor-pdf-cjk-kai_gen_gothic -a pdf-style=KaiGenGothicJP foo.adoc
HTMLの生成
asciidoctor foo.adoc
Note

必要に応じてオプションを追加してください。(-aのオプションは文書の属性として書くこともできます)

図形を含む

-r asciidoctor-diagram

数式を含む

-r asciidoctor-mathematical

シンタックスハイライト

-a source-highlighter=highlightjs

スタイルシートの指定

-a stylesheet=/path/to/css/file.css

図形を含むPDFの生成
asciidoctor-pdf -r asciidoctor-diagram -r asciidoctor-pdf-cjk-kai_gen_gothic -a pdf-style=KaiGenGothicJP foo.adoc
HTMLの生成(シンタックスハイライト+スタイルシート指定)
asciidoctor -a source-highlighter=highlightjs -a stylesheet=/stylesheets/github.css foo.adoc
EPUB3の生成
asciidoctor-epub3 foo.adoc
Note

EUB3を生成する場合、いくつかのルールがあります。asciidoctor/asciidoctor-epub3 のサンプルなどを参照してください。

mobi(Kindleフォーマット)の生成
kindlegen foo.epub
プレゼンテーション用HTMLの生成(asciidocotr-revealjs)
asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0 foo.adoc

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.