Utilities for converting parse results into html.
Utilities for converting parse results into html.
(codes-to-html code-block)
(css & rules)
Quick and dirty dsl for inline css rules, similar to hiccup.
ex. (css [:h1 {:color "blue"}] [:div.content p {:text-indent "1em"}])
-> h1 {color: blue;} div.content p {text-indent: 1em;}
Quick and dirty dsl for inline css rules, similar to hiccup. ex. `(css [:h1 {:color "blue"}] [:div.content p {:text-indent "1em"}])` -> `h1 {color: blue;} div.content p {text-indent: 1em;}`
(css-rule rule)
(dependencies-html deps & header-name)
(docs-to-html docs)
Converts a docs section to html by threading each doc line through the forms outlined above.
ex. (docs-to-html [{:doc-text "# hello world!"} {:docstring-text "I'm a docstring!}])
-> "<h1>hello world!</h1><br />"
Converts a docs section to html by threading each doc line through the forms outlined above. ex. (docs-to-html [{:doc-text "# hello world!"} {:docstring-text "I'm a docstring!}]) -> `"<h1>hello world!</h1><br />"`
(floating-toc-html docs)
(groups-html props doc)
(header-html project-info)
(index-html project-metadata docs)
(inline-css resource)
(inline-js resource)
(link-to-namespace namespace-name anchor? & attrs)
Creates an 'a' tag pointing to the namespace-name
, either as an anchor (if
anchor?
is true) or as a link to a separate $namespace-name.html
file.
If attrs
aren't empty, they are added to the resulting tag.
Creates an 'a' tag pointing to the `namespace-name`, either as an anchor (if `anchor?` is true) or as a link to a separate `$namespace-name.html` file. If `attrs` aren't empty, they are added to the resulting tag.
(link-to-toc anchor?)
This is a hack, as in the case when anchor?
is false, the link will contain
a reference to toc.html
which might not even exist.
This is a hack, as in the case when `anchor?` is false, the link will contain a reference to `toc.html` which might not even exist.
(md s)
Markdown string to html converter. Translates strings like:
"# header!" -> "<h1>header!</h1>"
"## header!" -> "<h2>header!</h2>"
...
Markdown string to html converter. Translates strings like: "# header!" -> `"<h1>header!</h1>"` "## header!" -> `"<h2>header!</h2>"` ...
(opt-resources-html project-info)
Generate script and link tags for optional external javascript and css.
Generate script and link tags for optional external javascript and css.
(page-template project-metadata opt-resources header toc content floating-toc)
Notice that we're inlining the css & javascript for SyntaxHighlighter (inline-js
& inline-css
) to be able to package the output as a single file (uberdoc if you will). It goes without
saying that all this is WIP and will probably change in the future.
Notice that we're inlining the css & javascript for [SyntaxHighlighter](http://alexgorbatchev.com/SyntaxHighlighter/) (`inline-js` & `inline-css`) to be able to package the output as a single file (uberdoc if you will). It goes without saying that all this is WIP and will probably change in the future.
(section-to-html section)
(single-page-html project-metadata doc all-docs)
(slurp-resource resource-name)
Stolen from leiningen
Stolen from leiningen
(toc-html props docs)
(uberdoc-html project-metadata docs)
This generates a stand alone html file (think lein uberjar
).
It's probably the only var consumers will use.
This generates a stand alone html file (think `lein uberjar`). It's probably the only var consumers will use.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close