Giter Site home page Giter Site logo

dita-ot-markdown's Introduction

Markdown DITA for DITA-OT

DITA-OT Markdown plug-in contains

  • a custom parser for Markdown to allow using Markdown DITA as a source document format,
  • and a transtype to generate Markdown from DITA source.

The Markdown DITA files need to use a subset of Markdown constructs for compatibility with DITA content models.

Usage

Using Markdown files as input

Markdown DITA topics can only be used by linking to them in map files.

<map>
  <topicref href="test.md" format="markdown"/>
</map>

The format attribute value must be set to markdown in order to recognize files as Markdown DITA; the file extension is not used to recognize format.

See Syntax reference for XML and Markdown DITA correspondence.

Generating Markdown output

The DITA-OT Markdown plug-in extends the DITA Open Toolkit with additional output formats (transformation types) that can be used to publish DITA content as Markdown.

  • To publish Markdown DITA files, use the markdown transtype.

  • To generate GitHub Flavored Markdown files, use the markdown_github transtype.

  • To publish GitHub Flavored Markdown and generate a SUMMARY.md table of contents file for publication via GitBook, use the markdown_gitbook transtype.

Requirements

DITA-OT 2.1 is required. Earlier versions of DITA-OT do not have the required extension points.

Install

  1. Run the plug-in installation command:

    dita -install https://github.com/jelovirt/dita-ot-markdown/releases/download/1.3.0/com.elovirta.dita.markdown_1.3.0.zip
    

The dita command line tool requires no additional configuration; running DITA-OT using Ant requires adding plug-in contributed JAR files to CLASSPATH with e.g. -lib plugins/com.elovirta.dita.markdown.

Build

To build the DITA-OT Markdown plug-in from source:

  1. Install the DITA-OT distribution JAR file dependencies by running gradle install from your clone of the DITA-OT repository. The required dependencies are installed to a local Maven repository in your home directory under .m2/repository/org/dita-ot/dost/.

  2. Run the Gradle distribution task to generate the plug-in distribution package:

    ./gradlew dist
    

    The distribution ZIP file is generated under build/distributions.

Donating

Support this project and others by @jelovirt via Paypal.

License

DITA-OT Markdown is licensed for use under the Apache License 2.0.

dita-ot-markdown's People

Contributors

georgebina avatar infotexture avatar jelovirt avatar

Watchers

 avatar  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.