The cl-html-readme Reference Manual

This is the cl-html-readme Reference Manual, version 2.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:01:30 2024 GMT+0.

Table of Contents


1 Systems

The main system appears first, followed by any subsystem dependency.


1.1 cl-html-readme

A HTML Documentation Generator for Common Lisp projects.

Maintainer

Oliver <>

Author

Oliver <>

Home Page

https://github.com/Frechmatz/cl-html-readme

License

MIT

Long Description

A HTML Documentation Generator for Common Lisp projects.

Version

2.0.0

Source

cl-html-readme.asd.

Child Component

src (module).


2 Modules

Modules are listed depth-first from the system components tree.


2.1 cl-html-readme/src

Source

cl-html-readme.asd.

Parent Component

cl-html-readme (system).

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 cl-html-readme/cl-html-readme.asd

Source

cl-html-readme.asd.

Parent Component

cl-html-readme (system).

ASDF Systems

cl-html-readme.


3.1.2 cl-html-readme/src/packages.lisp

Source

cl-html-readme.asd.

Parent Component

src (module).

Packages

3.1.3 cl-html-readme/src/dsl.lisp

Dependency

packages.lisp (file).

Source

cl-html-readme.asd.

Parent Component

src (module).

Public Interface

initialize-instance (method).

Internals

3.1.4 cl-html-readme/src/readme-util.lisp

Dependency

dsl.lisp (file).

Source

cl-html-readme.asd.

Parent Component

src (module).

Public Interface
Internals

format-string (function).


3.1.5 cl-html-readme/src/html-writer.lisp

Dependency

readme-util.lisp (file).

Source

cl-html-readme.asd.

Parent Component

src (module).

Public Interface

doc-to-html (function).

Internals

4 Packages

Packages are listed by definition order.


4.1 cl-html-readme

Source

packages.lisp.

Use List

common-lisp.

Public Interface
Internals

4.2 cl-html-readme-dsl

Source

packages.lisp.

Use List

common-lisp.

Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *home-directory*

Home directory of the project for which documentation is to be generated.

Package

cl-html-readme.

Source

readme-util.lisp.

Special Variable: *tab-width*

The width of a tab.

Package

cl-html-readme.

Source

readme-util.lisp.


5.1.2 Ordinary functions

Function: doc-to-html (output-stream documentation)

Renders a documentation object to HTML. The function has the following parameters: <ul>
<li>output-stream nil or a stream into which the resulting HTML is written.</li> <li>documentation A documentation object following the syntax of the DSL.</li> </ul>

Package

cl-html-readme.

Source

html-writer.lisp.

Function: make-path (path)

Creates an absolute path. The function has the following parameters:
<ul>
<li>path A path relative to *home-directory*, e.g. <code>"examples/example-1.lisp"</code>. A path can be represented as String or as Pathname.</li> </ul>

Package

cl-html-readme.

Source

readme-util.lisp.

Function: read-file (path &key replace-tabs escape)

Reads a text file and returns it as a string. The function has the following parameters:
<ul>
<li>path Path of the file relative to *home-directory*.</li>
<li>:replace-tabs If t then tabs are replaced with spaces according to the *tab-width* variable.</li> <li>:escape If t then special characters are replaced with HTML character entities.</li>
</ul>

Package

cl-html-readme.

Source

readme-util.lisp.

Function: read-stream (stream &key replace-tabs escape)

Reads a text stream and returns it as a string. The function has the following parameters:
<ul>
<li>stream An input stream.</li>
<li>:replace-tabs If t then tabs are replaced with spaces according to the *tab-width* variable.</li> <li>:escape If t then special characters are replaced with HTML character entities.</li>
</ul>

Package

cl-html-readme.

Source

readme-util.lisp.

Function: read-string (string &key replace-tabs escape)

Parses a multiline string and returns it as a string. The function has the following parameters: <ul>
<li>string A string.</li>
<li>:replace-tabs If t then tabs are replaced with spaces according to the *tab-width* variable.</li> <li>:escape If t then special characters are replaced with HTML character entities.</li>
</ul>

Package

cl-html-readme.

Source

readme-util.lisp.


5.1.3 Standalone methods

Method: initialize-instance :after ((instance tree-builder-v1) &rest init-args)
Source

dsl.lisp.


5.2 Internals


5.2.1 Special variables

Special Variable: *dsl-elements*
Package

cl-html-readme-dsl.

Source

dsl.lisp.


5.2.2 Ordinary functions

Function: expand-toc (doc)

Replace toc element with toc-root. Returns a new documentation object.

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: filter-property-list-entries (plist &key key-blacklist)

Filter entries of a property list

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: format-string (str &key replace-tabs escape)
Package

cl-html-readme.

Source

readme-util.lisp.

Function: get-dsl-element (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: get-property-list-keys (plist)

Get the keys of a property list

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: get-toc-headings (doc)

Returns a documentation object representing the toc heading tree

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: heading-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: make-tree-builder ()
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: pop-stack (tree-builder-v1)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: push-content (dsl-element-node item)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: push-stack (tree-builder-v1 item)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: semantic-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: serialize (output-stream doc)
Package

cl-html-readme.

Source

html-writer.lisp.

Function: set-heading-ids (doc)

Assign ids to toc-headings. Returns a new documentation object.

Package

cl-html-readme.

Source

html-writer.lisp.

Function: set-heading-indentation-levels (doc)

Set indentation levels of heading elements. Returns a new documentation object.

Package

cl-html-readme.

Source

html-writer.lisp.

Function: toc-container-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: toc-heading-p (properties)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: toc-item-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: toc-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: toc-root-p (element)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: validate (doc)

Validate a documentation object

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: validate-element (element properties)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: validate-text (text)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: walk-tree (documentation &key open-element close-element text)

DSL tree traversal. The function assumes that the documentation object conforms to
the syntax of the DSL. No validation is applied. The function has the following arguments: <ul>
<li>documentation An instance of <documentation>./li>
<li>:open-element A function that is called when a DSL element is opened. <p>(lambda(element-symbol element-properties content))</p>
Returns a context that is passed to :close-element.</li>
<li>:close-element A function that is called when a previously opened DSL element closes. <p>(lambda(context)) Context value as returned by open-element.</p></li>
<li>:text A function that is called for each text node. <p>(lambda(str))</p></li>
</ul>

Package

cl-html-readme-dsl.

Source

dsl.lisp.

Function: write-toc (doc toc-properties tree-builder)

Extracts toc and writes toc-root, toc-container, toc-item elements into the builder. - toc-properties: The properties of the corresponding toc-form

Package

cl-html-readme-dsl.

Source

dsl.lisp.


5.2.3 Generic functions

Generic Function: add-text (tree-builder text)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Methods
Method: add-text ((instance tree-builder-v1) text)
Generic Function: close-element (tree-builder)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Methods
Method: close-element ((instance tree-builder-v1))
Generic Function: get-tree (tree-builder)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Methods
Method: get-tree ((instance tree-builder-v1))

Generate resulting tree

Generic Function: open-element (tree-builder element-symbol element-properties)
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Methods
Method: open-element ((instance tree-builder-v1) element-symbol element-properties)

5.2.4 Conditions

Condition: dsl-syntax-error
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct superclasses

simple-error.

Condition: dsl-tree-builder-error
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct superclasses

simple-error.


5.2.5 Classes

Class: dsl-element-node
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct slots
Slot: element-symbol
Initargs

:element-symbol

Slot: element-properties
Initargs

:element-properties

Slot: content
Initform

(list)

Class: dsl-text-node
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct slots
Slot: text
Initargs

:text

Class: tree-builder
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct subclasses

tree-builder-v1.

Class: tree-builder-v1
Package

cl-html-readme-dsl.

Source

dsl.lisp.

Direct superclasses

tree-builder.

Direct methods
Direct slots
Slot: node-stack
Slot: root-node

Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   A   C   D   E   F   G   H   I   M   O   P   R   S   T   V   W  
Index Entry  Section

A
add-text: Private generic functions
add-text: Private generic functions

C
close-element: Private generic functions
close-element: Private generic functions

D
doc-to-html: Public ordinary functions

E
expand-toc: Private ordinary functions

F
filter-property-list-entries: Private ordinary functions
format-string: Private ordinary functions
Function, doc-to-html: Public ordinary functions
Function, expand-toc: Private ordinary functions
Function, filter-property-list-entries: Private ordinary functions
Function, format-string: Private ordinary functions
Function, get-dsl-element: Private ordinary functions
Function, get-property-list-keys: Private ordinary functions
Function, get-toc-headings: Private ordinary functions
Function, heading-p: Private ordinary functions
Function, make-path: Public ordinary functions
Function, make-tree-builder: Private ordinary functions
Function, pop-stack: Private ordinary functions
Function, push-content: Private ordinary functions
Function, push-stack: Private ordinary functions
Function, read-file: Public ordinary functions
Function, read-stream: Public ordinary functions
Function, read-string: Public ordinary functions
Function, semantic-p: Private ordinary functions
Function, serialize: Private ordinary functions
Function, set-heading-ids: Private ordinary functions
Function, set-heading-indentation-levels: Private ordinary functions
Function, toc-container-p: Private ordinary functions
Function, toc-heading-p: Private ordinary functions
Function, toc-item-p: Private ordinary functions
Function, toc-p: Private ordinary functions
Function, toc-root-p: Private ordinary functions
Function, validate: Private ordinary functions
Function, validate-element: Private ordinary functions
Function, validate-text: Private ordinary functions
Function, walk-tree: Private ordinary functions
Function, write-toc: Private ordinary functions

G
Generic Function, add-text: Private generic functions
Generic Function, close-element: Private generic functions
Generic Function, get-tree: Private generic functions
Generic Function, open-element: Private generic functions
get-dsl-element: Private ordinary functions
get-property-list-keys: Private ordinary functions
get-toc-headings: Private ordinary functions
get-tree: Private generic functions
get-tree: Private generic functions

H
heading-p: Private ordinary functions

I
initialize-instance: Public standalone methods

M
make-path: Public ordinary functions
make-tree-builder: Private ordinary functions
Method, add-text: Private generic functions
Method, close-element: Private generic functions
Method, get-tree: Private generic functions
Method, initialize-instance: Public standalone methods
Method, open-element: Private generic functions

O
open-element: Private generic functions
open-element: Private generic functions

P
pop-stack: Private ordinary functions
push-content: Private ordinary functions
push-stack: Private ordinary functions

R
read-file: Public ordinary functions
read-stream: Public ordinary functions
read-string: Public ordinary functions

S
semantic-p: Private ordinary functions
serialize: Private ordinary functions
set-heading-ids: Private ordinary functions
set-heading-indentation-levels: Private ordinary functions

T
toc-container-p: Private ordinary functions
toc-heading-p: Private ordinary functions
toc-item-p: Private ordinary functions
toc-p: Private ordinary functions
toc-root-p: Private ordinary functions

V
validate: Private ordinary functions
validate-element: Private ordinary functions
validate-text: Private ordinary functions

W
walk-tree: Private ordinary functions
write-toc: Private ordinary functions


A.4 Data types

Jump to:   C   D   F   H   M   P   R   S   T  
Index Entry  Section

C
cl-html-readme: The cl-html-readme system
cl-html-readme: The cl-html-readme package
cl-html-readme-dsl: The cl-html-readme-dsl package
cl-html-readme.asd: The cl-html-readme/cl-html-readme․asd file
Class, dsl-element-node: Private classes
Class, dsl-text-node: Private classes
Class, tree-builder: Private classes
Class, tree-builder-v1: Private classes
Condition, dsl-syntax-error: Private conditions
Condition, dsl-tree-builder-error: Private conditions

D
dsl-element-node: Private classes
dsl-syntax-error: Private conditions
dsl-text-node: Private classes
dsl-tree-builder-error: Private conditions
dsl.lisp: The cl-html-readme/src/dsl․lisp file

F
File, cl-html-readme.asd: The cl-html-readme/cl-html-readme․asd file
File, dsl.lisp: The cl-html-readme/src/dsl․lisp file
File, html-writer.lisp: The cl-html-readme/src/html-writer․lisp file
File, packages.lisp: The cl-html-readme/src/packages․lisp file
File, readme-util.lisp: The cl-html-readme/src/readme-util․lisp file

H
html-writer.lisp: The cl-html-readme/src/html-writer․lisp file

M
Module, src: The cl-html-readme/src module

P
Package, cl-html-readme: The cl-html-readme package
Package, cl-html-readme-dsl: The cl-html-readme-dsl package
packages.lisp: The cl-html-readme/src/packages․lisp file

R
readme-util.lisp: The cl-html-readme/src/readme-util․lisp file

S
src: The cl-html-readme/src module
System, cl-html-readme: The cl-html-readme system

T
tree-builder: Private classes
tree-builder-v1: Private classes