Commit Graph

6 Commits

Author SHA1 Message Date
str4d
abb969b6cf Updated spectags
* ctags are case-sensitive, and the dataspecs use CamelCase.
* HTML anchor tags are case-sensitive. The old specs used CamelCase to match the
  ctags, and the existing documentation references them extensively.
* reStructuredText links are case-insensitive, and the HTML anchor tags that it
  generates are lower case.

Therefore, the links in the .rst files are given in CamelCase, and the dataspec
formatters convert this to lower case for links. In direct HTML references (in
specs or other areas of documentation), lower case must be used (to be fixed).

Command to generate the file:
cd i2p2www/spec && ctags -f spectags --langdef=rst --langmap=rst:.rst --regex-rst=/_type-\([a-zA-Z0-9]+\)/\\1/t,type/ --regex-rst=/_struct-\([a-zA-Z0-9]+\)/\\1/s,struct/ --regex-rst=/_msg-\([a-zA-Z]+\)/\\1/m,msg/ -R -n *.rst
2015-11-14 22:25:17 +00:00
str4d
8edd5a8df1 Added a formatter for textual dataspecs 2015-11-10 08:09:17 +00:00
str4d
927217c5c2 Handle message types in formatter
Most messages will work with or without the Message tail, e.g. SetDateMessage
vs. SetDate. The exception to this is SetMessageMessage, which must be specified
fully.
2015-06-27 15:32:51 +00:00
str4d
3a527f5535 Add message types to spectags
Command to generate spectags file:
cd i2p2www/pages/site && ctags -f spectags --regex-html=/\"type_\([a-zA-Z0-9]+\)\"/\\1/t,type/ --regex-html=/\"struct_\([a-zA-Z0-9]+\)\"/\\1/s,struct/ --regex-html=/\"msg_\([a-zA-Z]+\)\"/\\1/m,msg/ -R -n docs/spec/*.html
2015-06-27 15:16:33 +00:00
str4d
7eda69e8aa Only link Token.Name.Class 2014-02-14 01:27:40 +00:00
str4d
9e543cbde8 Added support for links to structure specs in dataspec blocks
The HtmlFormatter class from Pygments was duplicated and modified,
instead of patching upstream.
2014-02-14 01:01:47 +00:00