NeoDoc - blog - docs - tests - todo
@neodoc.style

Documentation

Work-In-Progress

This is the start of the initial draft of NeoDoc's documentation. It's based off the existing parser and generally stable. While it's mostly stubs for additional documentation be be added later, it represents the full feature set and reference templates that come built into the library.

Section Types

NeoDocs are a collection of sections. Each section has a "type" that defines how it is parsed. These are those types:

Pre-Defined Sections

NeoDoc ships with a set of references templates to render HTML. They are used as fallbacks if an app doesn't provide a template for the given section.

Most of these are direct mappings the HTML elements. The default type for each section that's used to parse it is identified after it in square brackets.

(NOTE: All section will have a set of default attributes with specific default rendering. Some have additional built in attributes as well. Those details will be available in a future version of the docs)

The sections are:

Excluded Tags

The following are HTML tags that represent sections that don't have default NeoDoc sections that correspond to them:

Under Consideration

These section types are under consideration but not currently included.

Default Spans

As with the sections, NeoDoc ships with a reference set of templates for rendering spans of text. (i.e. those defined like <<strong|some text>>). They are mostly direct mappings to their HTML element counterparts.

They are:

Shorthands

NeoDoc provides this set of shorthands for text content that are processed natively in the parser. Each one includes a reference template for HTML output.

``code``

;;emphasis aka italics;;

^^footnote^^

@@footnote target@@

%%image%%

++keyboard++

>>link text|url>>

!!mark aka highlight!!

~~strike through~~

**strong aka bold**

__underline__

Custom Spans

<<custom|make your own thing here>>

Inline HTML

((raw html goes here))

Template Structure

The default templates are organized in a top down structure with the order:

/ Container / Category / Subcategory / Template 

Each item in the AST contains keys for all four to identify the target template to use for rendering.

The Containers

There are four top level containers.

Each has specific categories and corresponding sub categories.

Details: TKTKTK