Skip to content

Laidwin/JavadocToMarkdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaDoc to Markdown Converter

A Python tool that converts Javadoc comments into Markdown documentation.

Features

  • Converts Javadoc comments to Markdown
  • Processes single files or entire directories
  • Maintains original code structure in documentation
  • Generates documentation index
  • Supports common doc tags (@param, @return, @throws, etc.)
  • Handles multiple documentation styles

Installation

  1. Clone the repository
  2. Ensure Python 3.9+ is installed
  3. No additional dependencies required

Usage

Command Line

python JavaDocsProcessor.py /path/to/your/java/files
# Optional: specify output directory
python JavaDocsProcessor.py /path/to/your/java/files -o /path/to/output

Python Code

from JavaDocsProcessor import JavaDocsProcessor

# Initialize processor
processor = JavaDocsProcessor("/path/to/your/java/files")

# Generate documentation
processor.process_directory()

Output

  • Creates a docs directory containing:
    • Markdown files for each processed Java file
    • index.md linking to all documentation
    • Maintains source directory structure

Supported Tags

  • @param - Method parameters
  • @return - Return values
  • @throws - Exceptions
  • @author - Authors
  • @version - Version information
  • @see - References
  • And more...

License

MIT License

About

A Python tool that converts Javadoc comments into Markdown documentation.

Resources

License

Stars

Watchers

Forks

Languages