Giter Site home page Giter Site logo

javadoc-frames-generator's Introduction


Javadoc Frames Generator

The Java Standard Edition API since version 11 has been published without the traditional HTML frames layout that many developers have become accustomed to. If you want to view the Java edition 11 (or later) API with HTML frames, as you could with earlier Java editions, then you may want to give this a try. The Javadoc Frames Generator is pure JavaScript. It uses Phantomjs to parse the javadoc files in a local directory and produce the files needed for an HTML frames layout. The generated layout is similar to that of the Java SE 10 API.

Usage

First you must have Phantomjs installed. Then you can copy the script and template files to a directory of your choice, and from that directory, execute:

 $ phantomjs jf-generator.js <path-to-javadoc-home> 

Alternatively, the path-to-javadoc-home parameter can be supplied by editing the configuration file js-config.js. For example:

exports.javadocPath = '/path/to/jdk11/docs/api';
...

After the script executes, open the newly created file: <path-to-javadoc-home>/main.html

Screenshots

The generated frames layout is similar to the Java SE 10 API, with a few notable differences:

API frames layout

View packages in the package list frame (upper left), grouped by module, in the All Modules list, which has expandable tabs.

package list frame   package list frame

Or select the All Packages list, as was available in previous editions.

package list frame

Note that a FRAMES/NO FRAMES button is placed in the upper right corner (just to the left of the API version header) to toggle the view mode from frames to no-frames.

The Javadoc Frames Generator only creates new files under the specified directory. None of the original API files are modified.

Dependencies

Phantomjs is the only dependency. You can download it from the Phantomjs website, or from Github, https://github.com/ariya/phantomjs.


Copyright © 2021 James P Hunter

javadoc-frames-generator's People

Contributors

climber09 avatar

Stargazers

Emmanuel Bourg avatar Liam Seamus Coughlin avatar  avatar Kyrill Alyoshin avatar Steve Cox avatar Gerold 'Geri' Broser avatar Stefan Richthofer avatar  avatar

Watchers

James Cloos avatar  avatar Gerold 'Geri' Broser avatar

Forkers

johnthad

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.