Skip to content

manuel-fischer/XMD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMD

Extended markdown for source code documentation.

XMD allows to write documentation for source code, in a markdown like syntax. The documentation is not written in the source itself, to keep it unpolluted. To keep the documentation and the source in sync, the script searches through the sources and checks if any documentation was written for a functions or class (entities). The output is markdown that can be browsed on the github repository page.

Documentation

For the documentation click here. It is generated by this script for which the documentation is written 🤯.

Usage

python xmd.py [<repository-path>] [--check-only]

If repository-path is not provided, the current working directory . is used.

TODO

--check-only disables the generation of the output markdown files in the doc directory.

How it works

It goes through the source directories recursively and collects all the files and all entities in these files. The entities are identified by their signature/declarative part.

TODO

These signatures need to appear in the documentation. The signature does not need to be complete but the tokens of the signature must appear in the same order as in the source.

detection of a signature

An entity is detected by a signature, a signature either contains one of the signature keywords

TODO

Source Directories: src source include
These are the directories in which the source files are expected, there is no distinction between those directories by themselves.

Source Fileextensions: .c .cpp

Signature Keywords: struct class typedef using #define

About

Extended markdown for source code documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages