All Projects → andreburgaud → jd2chm

andreburgaud / jd2chm

Licence: MIT license
Create HTML Help project files from existing Javadoc and triggers the HHC compiler to generate a CHM file.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to jd2chm

javadoc-coverage
A Doclet to generate JavaDoc coverage reports ☕️🧪📗
Stars: ✭ 23 (+35.29%)
Mutual labels:  javadoc
project-tracking-system-backend-app
Enterprise project tracker, tracks commits done by employees after getting assigned to a couple of projects by their managers
Stars: ✭ 62 (+264.71%)
Mutual labels:  javadoc
chm-documentation
chm documentation PostgreSQL pgadmin3 SQLAlchemy Django Flask jinja2 webpy doc chm compiled html help Postgres Postgre документация russian
Stars: ✭ 17 (+0%)
Mutual labels:  chm
CompactNPCLib
Library to create NPCs
Stars: ✭ 22 (+29.41%)
Mutual labels:  javadoc
marklet
Marklet is a custom Java Doclet which aims to generate a Javadoc in a markdown format which is ready to use in GitHub.
Stars: ✭ 24 (+41.18%)
Mutual labels:  javadoc
RestDoc
在运行时,使用Javadoc文档注释生成Swagger/OpenAPI规范
Stars: ✭ 63 (+270.59%)
Mutual labels:  javadoc
Jda
Java wrapper for the popular chat & VOIP service: Discord https://discord.com
Stars: ✭ 2,598 (+15182.35%)
Mutual labels:  javadoc
Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+23264.71%)
Mutual labels:  javadoc
therapi-runtime-javadoc
Read Javadoc comments at run time.
Stars: ✭ 50 (+194.12%)
Mutual labels:  javadoc
Mock.java
This is a framework for generating fake data, similar to Mock.js. 你可以通过这个框架简便的构建一个JavaBean假数据模板并生成假数据,就像Mock.js一样的语法~
Stars: ✭ 32 (+88.24%)
Mutual labels:  javadoc
DocDex
JSON API & Discord Bot for Javadocs
Stars: ✭ 31 (+82.35%)
Mutual labels:  javadoc
CodeDex
CodeDex Android source code, javadoc and github viewer
Stars: ✭ 32 (+88.24%)
Mutual labels:  javadoc
ForgeJavaDocs-NG
Minecraft Forge Javadocs for 1.12.2 - 1.18.2.
Stars: ✭ 17 (+0%)
Mutual labels:  javadoc
apidoc
通过JavaDoc生成OpenAPI文档
Stars: ✭ 25 (+47.06%)
Mutual labels:  javadoc
mdjavadoc
A script that generates markdown javadocs for use in Jekyll and GitHub Pages.
Stars: ✭ 16 (-5.88%)
Mutual labels:  javadoc
Spiget-Update
Spigot & Bungeecord updater API
Stars: ✭ 25 (+47.06%)
Mutual labels:  javadoc
Common.utility
Various helper class
Stars: ✭ 4,101 (+24023.53%)
Mutual labels:  chm
Wedge
可配置的小说下载及电子书生成工具
Stars: ✭ 62 (+264.71%)
Mutual labels:  chm
yii2-manual-chm
Yii 2 Guide/API/Docs compiled in various formats
Stars: ✭ 63 (+270.59%)
Mutual labels:  chm

jd2chm (Javadoc to CHM)

jd2chm is a Python application that creates a set of Microsoft Compiled HTML (CHM) project files from an existing Javadoc API documentation.

After generating the project files, it invokes the HTML Help compiler. The HTML Help Compiler is a prerequisite to generate the final CHM file.

j2dchm was tested with Python 3.5.2.

Note: jd2chm was initially created in 2001 and ended up targeting Python 2.2 and 2.3 in 2004. I decided to "brush" it again in order to make it compatible with Python 3 and to generate CHM files from recent Javadocs (i.e. Java 8 API).

HTML Help Compiler

The HTML Help Compiler might already be installed on your Windows System. The presence of the HTML Help compiler can be tested with jd2chm with option -c.

The HTML Help Compiler is available at: https://msdn.microsoft.com/en-us/library/windows/desktop/ms669985(v=vs.85).aspx

CHM Project Files

jd2chm creates the following HTML Help project files:

  • HHP: HTML Help Project file
  • HHC: HTML Help Contents file
  • HHK: HTML Help Keywords file

CHM File

A CHM generated with jd2chm will look similar to the following one (Groovy 2.5.0):

jd2chm

Usage of jd2chm

  • Clone jd2chm:
> git clone https://github.com/andreburgaud/jd2chm.git
  • In the newly created jd2chm directory, create a Python virtual environment:
> py -m venv ENV
  • Activate the virtual environment:
> ENV\Scripts\activate
(ENV) >
  • Install 3rd party libraries
(ENV) > pip install -r requirements.txt
  • Execute jd2chm with -h option to ensure it works:
(ENV) > python jd2chm.py -h

                         jd2chm version 1.0.0b1
                 Copyright (c) 2001-2016 Andre Burgaud
                        http://www.burgaud.com/

Usage:

  jd2chm.py [ -h | -c | -l | [-p path] [-o output] [-t title] [-v] ]

  -h: Displays usage.
  -c: Checks if the HHC compiler is installed.
  -l: Displays license.
  -v: Verbose (displays debug information)
  -p path:   'path' is the directory containing a Javadoc
             documentation (default: current directory).
  -o output: base name of the CHM output file
             Ex.: -o 'product' will result in a CHM file named 'product.chm'.
  -t title:  Assign 'title' as the title of the project.

Notes:
- The user is prompted if the project name and document title are not
  provided at the command line. The default values are extracted from
  the Javadoc index.html (see examples below).
- The Javadoc directory is the directory containing the file index.html.

Examples:
jd2chm.py -p C:\beanshell\javadoc
  The user is prompted to possibly modify the default values for the
  project name and document title.

jd2chm.py -p C:\beanshell\javadoc -o bsh20b4 -t "Beanshell 2.0b4" -v

jd2chm.py -p C:\j2se\docs\api -o j2se142_02 -t "Java(TM) 2 SDK 1.4.2"

jd2chm.py -o jython21 -t "Jython 2.1"
  The Javadoc is assumed to be in the current directory.

jd2chm.py -o SWT30M7 -t "Standard Widget toolkit 3.0M7"
  The Javadoc is assumed to be in the current directory.

Operating Systems

jd2chm is intended to run on Windows, nevertheless, the generated CHM files can be viewed on other OS (i.e. Linux and Mac OSX).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].