taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 21ce8eed11713c59fe542d23ef266a36010e5c96
parent dd6d4b01c287edce31af854cc8f88cceef21ca1c
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 18 Jan 2016 01:56:54 +0100

GPL header / description.

Diffstat:
Mexts/tsref.py | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/exts/tsref.py b/exts/tsref.py @@ -1,3 +1,32 @@ +# Copyright (C) 2016 Florian Dold +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +""" +This extension adds a new lexer "tsref", which +allows reST-style links inside comments (`LinkName`_), +and semi-automatically adds links to references to types. + +For type TYPE, a reference to tsref-type-TYPE is added. + +Known bugs and limitations: + - The way the extension works right now interferes wiht + Sphinx's caching, the build directory should be cleared + before every build. +""" + + from pygments.util import get_bool_opt from pygments.token import Name, Comment, Token, _TokenType from pygments.filter import Filter