Skip to content

A simple documentation generator made in python (very simple)

License

Notifications You must be signed in to change notification settings

james-d12/Dokky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Dokky creates a website and code documentation by reading a project's source code for comments. Aims to also be a markdown converter as well.

Creates a reference and home page for all source files in the code.

Requirements

The only 3rd party python library required is Jinja2.

Usage

  1. You must comment any functions that you wish to add to be parsed into documentation. Comment denotion can be customised further in the configuration file.
  2. Create a configuration file (can be called anything), that follows the following structure:

Configuration File Structure

{
    "config": {
        "includeDirectory": ,// The directory of the source code to parse.
        "outputDirectory": ,// The output directory of the documentation.
        "commentDenotion": ,// Specify what is considered a comment.
        "filterList": ,// Specify what file extensions are to be scanned.
        "language": ,// Specify the language of the source code.
        "repository": ,// Specify the GitHub repository of the source code.
    }
}

Example Configuration File Based On Atomic (My Project)

{
    "config": {
        "includeDirectory": "C:/Dev/C++/Atomic/include",
        "outputDirectory": "./docs",
        "commentDenotion": "//",
        "filterList": [".hpp" ],
        "language": "cpp",
        "repository": "https://github.com/james-d12/Atomic"
    }
}
  1. Once you've added comments open up a terminal to where 'Dokky.py' is located and run the following command.
    python ./Dokky.py {config_file_path}

Checklist

Browsers

  • Works on Chrome based.
  • Works on Firefox
  • Works on Internet Explorer

Resolutions

  • Works on 1080p Display.
  • Works on Mobile Display
  • Works on 2k Display.
  • Works on 4k Display

Examples

Example Home Page

alt text

Example Source Code Browser (Fixed_Matrix_Engine.hpp from Atomic)

alt text

About

A simple documentation generator made in python (very simple)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published