File: source_parser.py

package info (click to toggle)
sphinx 5.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,912 kB
  • sloc: python: 75,824; javascript: 14,164; perl: 420; makefile: 180; sh: 57; xml: 19; ansic: 1
file content (10 lines) | stat: -rw-r--r-- 201 bytes parent folder | download | duplicates (74)
1
2
3
4
5
6
7
8
9
10
from docutils.parsers import Parser


class TestSourceParser(Parser):
    supported = ('test',)


def setup(app):
    app.add_source_suffix('.test', 'test')
    app.add_source_parser(TestSourceParser)