Code Monkey home page Code Monkey logo

com.elovirta.dita.html's Introduction

HDITA for DITA-OT

DITA-OT HDITA plug-in contains a custom parser for HDITA to allow using HDITA as a source document format.

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

Requirements

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

Build

  1. Run Gradle distribution task

    ./gradlew dist
    

Distribution ZIP file is generated under build/distributions.

Install

  1. Run plug-in installation command

    dita -install https://github.com/jelovirt/com.elovirta.dita.html/releases/download/0.1.0/com.elovirta.dita.html_0.1.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.html.

Usage

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

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

The format attribute value must be set to html in order to recognize files as HDITA; file extension is not used to recognize format.

Donating

Support this project and others by @jelovirt via Paypal.

License

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

com.elovirta.dita.html's People

Contributors

jelovirt avatar

Watchers

 avatar  avatar  avatar

com.elovirta.dita.html's Issues

External HTML link switches @format to "dita"

I have a link like this in my DITA content:
<xref href="http://example.com" format="html" scope="external">test</xref>

Using out of the box 2.3.1, this works fine. When I install the com.elovirta.dita.html plugin, the format attribute is changed to format="dita" at the start of preprocess (I double checked after debug-filter). My content is all DITA (one map with one topic containing that link).

Other @format values are unaffected.

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.