Skip to content

Helper plugin to beautify the HTML output of the actual dokka tool

Notifications You must be signed in to change notification settings

emcegp/styled-android-dokka

Repository files navigation

styled-android-dokka

Gradle plugin to add more reasonable styling to the plain HTML output of Kotlin's Dokka documentation tool.

Tailored for multi-module Android library packages written in Kotlin already using Dokka Gradle plugin for API documentation.

Features

  1. Supports special images and other static files if they are located in a static folder of the respective module.

  2. Supports image inclusion in the documentation via a special format of a tags:

     [256x456](static/open_close.gif)
    

    ,where text part is a set of widthXheight pixel dimensions and url is the image's src.

  3. Generates index page for the whole project with a set of high level descriptions and installation instructions obtained from module level build.gradle.

  4. Supports cross module references without merging documentation into a single instance

Install

Assuming that you have managed to generate plain HTML documentation in accordance with Dokka's README modify your project level build.gradle this way:

buildscript {
    ...
    ext.mavenRepoUrl = 'https://path/to/your/maven/repo'
    ...
}

repositories {
    ...
    maven {url 'https://jitpack.io' }
    ...
}

dependencies {
    ...
    classpath 'com.github.gurunars:styled-android-dokka:VERSION'
    ...
}

apply plugin: "styled-android-dokka"

, where VERSION can be obtained here

About

Helper plugin to beautify the HTML output of the actual dokka tool

Resources

Stars

Watchers

Forks

Packages

No packages published