All Projects → jelovirt → org.lwdita

jelovirt / org.lwdita

Licence: Apache-2.0 license
LwDITA parser for DITA-OT

Programming Languages

XSLT
1337 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to org.lwdita

dita-ot-markdown
Markdown parser and output for DITA-OT
Stars: ✭ 39 (+85.71%)
Mutual labels:  dita, dita-ot
com.elovirta.ooxml
DITA to Word plug-in
Stars: ✭ 19 (-9.52%)
Mutual labels:  dita, dita-ot
dita-ot-css-pdf
Plugin that converts DITA Maps to PDF using CSS 3 stylesheets.
Stars: ✭ 17 (-19.05%)
Mutual labels:  dita-ot-plugin
R2D2BC
https://d-i-t-a.github.io/R2D2BC/
Stars: ✭ 27 (+28.57%)
Mutual labels:  dita

Lightweight DITA for DITA-OT Test

The DITA-OT LwDITA plug-in supersedes the previously released Markdown plug-in for DITA-OT and adds additional features to support Lightweight DITA.

Note: The LwDITA plug-in is included in DITA Open Toolkit 3.0 and newer.

It contains:

  • a custom parser for Markdown and HTML to allow using MDITA and HDITA 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 LwDITA files as input

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

<map>
  <topicref href="test.md" format="mdita"/>
  <topicref href="test.html" format="hdita"/>
</map>

The format attribute value must be set to mdita or hdita in order to recognize files as Markdown DITA or HTML DITA, respectively; the file extension is not used to recognize format.

See the syntax reference for XML and Markdown DITA correspondence.

Generating Markdown output

The DITA-OT LwDITA 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.4 is required. Earlier versions of DITA-OT do not have the required extension points.

Install

  1. Run the plug-in installation command:

    $ dita --install org.lwdita
    

    On DITA-OT version 3.0 and older:

    $ dita --install https://github.com/jelovirt/org.lwdita/releases/download/2.3.2/org.lwdita-2.3.2.zip
    

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

Build

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

  1. 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 LwDITA is licensed for use under the Apache License 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].