Coder Social home page Coder Social logo

faylixe / marklet Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 13.0 106 KB

Marklet is a custom Java Doclet which aims to generate a Javadoc in a markdown format which is ready to use in GitHub.

License: Apache License 2.0

Java 100.00%
custom-java-doclet java javadoc markdown

marklet's Introduction

Marcelo Trylesinski's github stats

marklet's People

Contributors

faylixe avatar trieloff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

marklet's Issues

Constructor link

Constructor link faces some issues :

  • Parameterless constructor does not render well (anchor conflict with page header).
  • Constructor name is rendered as an anchor link.

Make LINK_EXTENSION and FILE_EXTENSION configurable

I think there are scenarios (like for Slate) where you'd want to have .html.md, but for GitHub pages, .md all the way is the right way.

I introduced this mess, and I will send a patch fixing it ๐Ÿ˜‰

Marklet + Android Studio (IntelliJ)

I'm wondering if there's an easy way of integrating this to Android Studio, or any IntelliJ IDE for that matter.

As it stands, I'm generating my POM file through Gradle, and wouldn't necessarily know how to add the required settings into the POM file after the fact. Here's some code:

pomXml = {
        final dependenciesNode = asNode().appendNode('dependencies')
        ext.addDependency = { Dependency dep, String scope ->
            if (dep.group == null || dep.version == null || dep.name == null || dep.name == "unspecified")
                return // ignore invalid dependencies
            final dependencyNode = dependenciesNode.appendNode('dependency')
            dependencyNode.appendNode('groupId', dep.group)
            dependencyNode.appendNode('artifactId', dep.name)
            dependencyNode.appendNode('version', dep.version)
            dependencyNode.appendNode('scope', scope)
            if (!dep.transitive) {
                // If this dependency is not transitive, we should force exclude all its dependencies from the POM
                final exclusionNode = dependencyNode.appendNode('exclusions').appendNode('exclusion')
                exclusionNode.appendNode('groupId', '*')
                exclusionNode.appendNode('artifactId', '*')
            } else if (!dep.properties.excludeRules.empty) {
                // Otherwise add specified exclude rules
                final exclusionNode = dependencyNode.appendNode('exclusions').appendNode('exclusion')
                dep.properties.excludeRules.each { ExcludeRule rule ->
                    exclusionNode.appendNode('groupId', rule.group ?: '*')
                    exclusionNode.appendNode('artifactId', rule.module ?: '*')
                }
            }
        }
        configurations.api.getDependencies().each { dep -> addDependency(dep, "compile") }
        configurations.implementation.getDependencies().each { dep -> addDependency(dep, "runtime") }
    }

Thanks!

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.