Skip to content

hypercore-cxx/hyper-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SYNOPSIS

A minimal documentation system.

MOTIVATION

Optimized for being learned, read and maintained. Generate a machine readable AST first, docs second.

SYNTAX

Any file can be used as documentation. Place tripple forward slashes in front of lines that are to be used as documentation. See this example.

/// <keyword> ...args

KEYWORDS

namespace name

Each header defines only one namespace.

function name(...args)

Each function is associated with the last namespace.

class name

Each class is associated with the last namespace.

struct name

Each struct is associated with the last namespace.

method name(...args)

Each method is associated with the last class.

overload name(...args)

An overload is a type of method.

return type

Each return is associated with the last function, method or overload.

param name text...

Each param is associaated with the last function or method.

comment text...

Each comment is associated with the last keyword.

CLI

Hyper-docs cli will output an AST. No args produces an HTML document.

hyper-docs /path/to/projects | ./bin/docs > path/to/api.html

PARSER

Outputs an AST. See this example.

COMPILER

Outputs markdown or html.

About

A minimal documentation system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published