Skip to content

Commit

Permalink
Merge pull request #250 from andralex/ddoc-newfiles
Browse files Browse the repository at this point in the history
Support for consistent CSS-based HTML generation
  • Loading branch information
alexrp committed Feb 10, 2013
2 parents 0fc3aeb + fac156f commit 2811c3c
Show file tree
Hide file tree
Showing 5 changed files with 633 additions and 15 deletions.
2 changes: 1 addition & 1 deletion abi.dd
Expand Up @@ -25,7 +25,7 @@ $(SECTION3 Endianness,
will conform to the endianness of the target machine.
The Intel x86 CPUs are $(I little endian) meaning that
the value 0x0A0B0C0D is stored in memory as:
$(CODE 0D 0C 0B 0A).
$(D 0D 0C 0B 0A).
)
)

Expand Down
232 changes: 232 additions & 0 deletions css/html-skeleton.css
@@ -0,0 +1,232 @@
/*
This file contains one entry for each element defined by html.ddoc. It
is otherwise content-free. Use it as a starting point in defining
display styles based upon html.ddoc.
*/

/* DIV: Formats the "Authors" section */
.Authors
{
}

/* DIV: Formats the "Bugs" section */
.Bugs
{
}

/* DIV: class members (classes, funs, enums etc) */
.class_members
{
}

/* DIV: Formats the "Copyright" section */
.Copyright
{
}

/* DIV: code section introduced with --- and --- */
.d_code
{
font-family: "Courier New", monospace;
white-space: pre;
}

/* SPAN: D comment in code */
.d_comment
{
}

/* SPAN: Declaration, i.e. name introduced with return and parameters
*/
.d_decl
{
}

/* DIV: Description of a declaration */
.d_decl_dd
{
}

/* DIV DIV: Description of an entity defined in the doc */
.d_decl_dd .sections
{
}

/* DIV DIV DIV: Summary of an entity defined in the doc */
.d_decl_dd .sections .summary
{
}

/* SPAN: D keyword in code */
.d_keyword
{
}

/* SPAN: D keyword in code */
.d_keyword
{
}

/* SPAN: parameter style inside function description. Warning,
parameters will be rendered in this style everywhere.*/
.d_param
{
}

/* SPAN: Symbol being introduced */
.d_psymbol
{
}

/* SPAN: D string in code */
.d_string
{
}

/* DIV: Formats the "Date" section */
.Date
{
}

/* SPAN: Highlight of D keywords? */
.ddoc_keyword
{
}

/* DIV: Formats the "Deprecated" section */
.Deprecated
{
}

/* DIV: Formats the description of an item */
.description
{
}

/* DIV: Formats the description of enum members */
.enum_members
{
}

/* DIV: Formats the "Examples" section */
.Examples
{
}

/* SPAN: This is one of those "Authors:" thingies */
.explanation_item
{
}

/* DIV: This is one of those "Authors: xyz" thingies */
.explanatory
{
}

/* DIV: Formats the "History:" section */
.History
{
}

/* DIV: Formats the "License:" section */
.License
{
}

/* DIV: default style of members (inside classes, structs, enums,
templates) */
.members
{
}

/* DIV: Top-level module members (classes, funs, enums etc) */
.module_members
{
}

/* SPAN: Formats a parameter name all over the description. */
.param
{
}

/* SPAN: Formats a parameter description */
.param_desc
{
}

/* SPAN: Formats a parameter name */
.param_id
{
}

/* TABLE: Formats the parameters table */
.parameters
{
}

/* DIV: Formats the "Params:" section */
.Params
{
}

/* SPAN: Name introduced by a declaration */
.psymbol
{
}

/* DIV: Formats the "Returns:" section */
.Returns
{
}

/* DIV: Formats the "See_Also:" section */
.See_Also
{
}

/* SPAN: Formats a section with an undefined name */
.section
{
}

/* SPAN: Formats the header of a section with an undefined name */
.section_h
{
}

/* DIV: Sections of the document, pretty much the entire doc */
.sections
{
}

/* DIV: Members of a struct */
.struct_members
{
}

/* DIV: Formats the "Standards:" section */
.Standards
{
}

/* DIV: Summary of the module or of a documented entity */
.summary
{
}

/* DIV: Formats the description of a template's members */
.template_members
{
}

/* DIV: Formats the "Throws:" section */
.Throws
{
}

/* DIV: Formats the "Version:" section */
.Version
{
}
7 changes: 5 additions & 2 deletions doc.ddoc
@@ -1,3 +1,6 @@
TRANSLATIONS=
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>

DDOC=
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-US">
Expand Down Expand Up @@ -489,8 +492,8 @@ TABLE_2COLS=$(TABLE2 $1, $+)
TABLE_3COLS=$(TABLE2 $1, $+)
TROW_EXPLANATORY=<td colspan=10>$0</td>
FOOTNOTE=$(I &nbsp;($0))
SUPERSCRIPT=<sup>$0</sup>
SUBSCRIPT=<sub>$0</sub>
SUPERSCRIPT=$(SUP $0)
SUBSCRIPT=$(SUB $0)
CPPLISTING=$(CPPCODE $0)
NBSP=&nbsp;
TAIL=$+
Expand Down

0 comments on commit 2811c3c

Please sign in to comment.