Commit Graph

10 Commits

Author SHA1 Message Date
c77994a585 re-attempt migration using 2to3 2023-11-22 14:46:53 -05:00
ac27ae60e2 propagate from branch 'i2p.www' (head 58b6b0589b4b5e4a45b1be2ac97bba8d253e9368)
to branch 'i2p.www.str4d' (head 2ab3bce2634e8d1dcbf7f2bf89c310c5ae3a7eb6)
2016-03-05 17:38:12 +00: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
67b51774e3 propagate from branch 'i2p.www' (head bffd2812f9c516072d67f9e255c5a6404da88202)
to branch 'i2p.www.revamp' (head a6fb5601cc1d2b4567e099fda4ee15c3b5915465)
2015-06-27 15:49:12 +00:00
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
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
e208d0b83e Make {% highlight %} always be ltr 2015-05-31 03:02:31 +00:00
7eda69e8aa Only link Token.Name.Class 2014-02-14 01:27:40 +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