An open API service indexing awesome lists of open source software.

https://github.com/presidentbeef/brat-doc

Simple documentation generation for Brat
https://github.com/presidentbeef/brat-doc

Last synced: about 1 month ago
JSON representation

Simple documentation generation for Brat

Awesome Lists containing this project

README

        

## brat-doc

*Work in Progress*

Scans special comments in Brat and Lua code to generate some documentation.

Doesn't do anything fancy.

## Format

### Lua

-- Object: [instance]
-- Call: . []
-- Returns:
--
--
--
-- Example:
--
--

Only the `Object:` line is required.

Example:

-- Object: string instance
-- Call: string.reverse!
-- Returns: string
--
-- Reverses a string.
--
-- Example:
--
-- "parts".reverse!

### Brat

# Object: [instance]
# Call: . []
# Returns:
#
#
#
# Example:
#
#

Example:

# Object: file
# Call: file.read file_name
# Returns: string
#
# Reads in contents of file into a string.