diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-04-13 00:12:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-04-13 01:21:49 +0200 |
commit | da9deba13d551e316f5a99a614834efa27ddc7d1 (patch) | |
tree | 07e787ff4efdcf4edd1ed5e28d67dbb0f624dd6a /.gitignore | |
parent | b36217c54dd92bdfa0984b9eded0765a3b388426 (diff) | |
download | patches-da9deba13d551e316f5a99a614834efa27ddc7d1.tar patches-da9deba13d551e316f5a99a614834efa27ddc7d1.tar.gz |
doc: Emit hyperlinks in HTML output for @lisp snippets.
This makes it easier to jump to the definition of a procedure or
variable when looking at a code snippet. There can be false-positive
because scoping rules are ignored, for example, but it should be a good
approximation.
* doc/build.scm (syntax-highlighted-html)[build](highlights->sxml*): Add
'anchors' parameter. Add clause for ('symbol text).
(syntax-highlight): Add 'anchors' parameter. Wrap body in named let and
use it in recursive calls. Pass ANCHORS to 'highlights->sxml*'.
(underscore-decode, anchor-id->key, collect-anchors, html?): New procedures.
(process-file): Add 'anchors' parameter. and honor it.
Rewrite mono-node and multi-node HTML files separately.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions