Giter Site home page Giter Site logo

asciidoctor-gradle-html-doctoolchain-example's Introduction

docToolchain example with AsciiDoctor, Gradle, HTML5 and Confluence

An example project that demonstrates how to use docToolchain with the Asciidoctor Gradle plugin. Converts AsciiDoc to HTML5 using the Asciidoctor Gradle plugin and uploads the content to Confluence using docToolchain.

The AsciiDoc and AsciiDoctor content is based on the asciiDoctor-to-html-example project.

docToolchain documentation and sources can be found on GitHub.

Convert AsciiDoc to HTML5

Convert the AsciiDoc to HTML5 by invoking the 'asciidoctor' goal:

$ ./gradlew asciidoctor

Open the file build/asciidoc/html/example-manual.html in your browser to see the generated HTML file.

Publish to Confluence with DocToolchain

Publish the generated HTML5 content to Confluence using docToolchain.

Prerequisite

  • docToolchain v1.1.0 is available on the system path.

  • Update Confluence configuration in PublishToConfluenceConfig.groovy, set:

    • confluence.api

    • confluence.spaceKey

    • ancestorId of the confluence.input map, can be found by:

      • Confluence API: https://[server]/[context]/rest/api/search3/1.0/search?queryString=MyParentPage

      • Confluence UI: by editing the parent page, the page id is part of the edit URL

  • Provided Confluence API credentials by either setting:

Publish

$ doctoolchain . publishToConfluence -PmainConfigFile=PublishToConfluenceConfig.groovy --no-daemon

Caveats

See known caveats for this setup.

asciidoctor-gradle-html-doctoolchain-example's People

Contributors

madegroot avatar

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.