GithubHelp home page GithubHelp logo

bluekeyes / sphinx-javalink Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 56 KB

Link to Javadoc APIs from Sphinx documentation

License: MIT License

Python 100.00%
javadoc python sphinx sphinx-doc sphinx-extension

sphinx-javalink's People

Contributors

bluekeyes avatar rlepinski avatar thasso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sphinx-javalink's Issues

Paths are not relative to conf.py

Paths in javalink_classpath and javalink_docroots claim to be relative to the source directory. Instead, they are relative to the working directory of sphinx-build. Fix the docs or the code, but probably the code.

Generates URLs with "(" while Javadoc has anchors with "-"

Hey,

I've been using sphinx-javalink plugin for my project (http://dev.flitch.io). Good job, it's very neat and rather easy to setup ;)

I run into a problem that has to see with a difference of behaviour between what Javadoc expects, and what your tool generates. Example here: http://dev.flitch.io/sdkandroid.html#bind-to-flitchio

In that paragraph, the hyperlink over onCreate() is:
http://dev.flitch.io/javadoc/com/supenta/flitchio/sdk/FlitchioController.html#onCreate()

Yet when we follow the link, it doesn't go to the right anchor. Indeed, when we look for the anchor, it is actually:
http://dev.flitch.io/javadoc/com/supenta/flitchio/sdk/FlitchioController.html#onCreate--

The difference is with the last 2 characters, the brackets, that Javadoc has encoded as dashes. I couldn't see any configuration to influence this behaviour, in either Javadoc or sphinx-javalink. I use very standard settings in both.

What can I do?
Thank you very much.

find_rt_jar() is broken on OS X with default environment

Because Apple dropped support for Java after Java 6 and left things to Oracle for Java 7 and Java 8, the way Java works on OS X is... non-standard. The program linked to /usr/bin/java is a wrapper that finds the latest Oracle binaries or uses the value given in JAVA_HOME and as a result, the assumption that find_rt_jar makes about the location of rt.jar relative to java is incorrect. If you set JAVA_HOME to point to the Oracle install (using /usr/libexec/java_home), then everything works as expected.

If running on OS X and no other options are set, we should probably execute /usr/libexec/java_home to find JAVA_HOME instead of guessing it based on the location of java.

Link generation for varargs methods is broken

To link to a varargs method, you have to use array syntax, but anchor tags for these methods use the ... syntax.

Check with javadoc to see what it allows for links and then fix this to do the same thing. I suspect we need to support both options for references, but only use varargs syntax in generated URLs.

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.