Liking cljdoc? Tell your friends :D

fnhouse.docs

Proof-of-concept, ultra-primitive HTML doc generation from a fnhouse API spec, including schemas and per-namespace handler doc pages.

Proof-of-concept, ultra-primitive HTML doc generation from a fnhouse API spec,
including schemas and per-namespace handler doc pages.
raw docstring

$:page$GETclj

Generate HTML for docs, given the output of all-docs as :api-docs resource

Generate HTML for docs, given the output of all-docs as :api-docs resource
sourceraw docstring

all-docsclj

(all-docs handler-infos)

Inputs: [handler-infos :- [schemas/HandlerInfo]]

Generate HTML for handlers and schemas from a sequence of HandlerInfo descriptions.

Inputs: [handler-infos :- [schemas/HandlerInfo]]

Generate HTML for handlers and schemas from a sequence of HandlerInfo descriptions.
sourceraw docstring

dirty-hackclj

(dirty-hack s)

Replace linked schemas in the HTML output with links to the corresponding schemas.

Replace linked schemas in the HTML output with links to the corresponding schemas.
sourceraw docstring

emit-attributeclj

(emit-attribute k v)
source

emit-attributesclj

(emit-attributes attr)
source

emit-close-tagclj

(emit-close-tag t)
source

emit-open-tagclj

(emit-open-tag tag)
(emit-open-tag tag attr)
source

extract-schemasclj

(extract-schemas schemas-atom form)

Extract schemas, replacing defschemas with references to name to be replace with links using dirty-hack below.

Extract schemas, replacing defschemas with references to name to be replace with links
using dirty-hack below.
sourceraw docstring

generate-docsclj

(generate-docs schemas-atom handler-infos)
source

pprint-strclj

(pprint-str x)
source

renderclj

(render & forms)
source

render-helperclj

(render-helper form)
source

styleclj

(style m)
source

walkclj

(walk inner outer form)

A version of clojure.walk/walk, extended to work on records.

A version of clojure.walk/walk, extended to work on records.
sourceraw docstring

write-docs!clj

(write-docs! handler-infos output-dir)

Inputs: [handler-infos :- [schemas/HandlerInfo] output-dir :- String]

Write handlers.html and schemas.html to output-dir from sequence of HanderInfo descriptions.

Inputs: [handler-infos :- [schemas/HandlerInfo] output-dir :- String]

Write handlers.html and schemas.html to output-dir from sequence of HanderInfo descriptions.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close