Commit Graph

9 Commits

Author SHA1 Message Date
8ebc4de1a7 Re-attempt migration with modernize 2023-11-22 14:48:24 -05:00
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
8edd5a8df1 Added a formatter for textual dataspecs 2015-11-10 08:09:17 +00:00
40fc46508b Re-enabled ctags with path discovery 2014-02-14 22:37:56 +00:00
91252e107f Temporarily disable ctags until working directory issue solved 2014-02-14 12:15:31 +00:00
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
2bb4def009 Initial version of DataSpecLexer 2013-06-12 01:29:36 +00:00
cc7973462b HighlightExtension: pass additional parameters to HtmlFormatter 2013-04-25 04:42:54 +00:00
ba5d1df89f Added HighlightExtension from https://pypi.python.org/pypi/jinja2-highlight/0.4.0 (GPLv3) 2013-04-25 03:49:55 +00:00