App default settings

Default settings rstviews needs. You can override them in your project settings file.

rstview.settings.RSTVIEW_ERROR_TEMPLATE = u'Line {lineno} : {message}'

Template string used to format error from rst.viewreporter.SourceReporter.

rstview.settings.RSTVIEW_PARSER_ENABLE_FILE_INSERTION = False

Enable unsafe file insertion directives, enable it at your own risk.

rstview.settings.RSTVIEW_PARSER_ENABLE_RAW_INSERTION = False

Enable unsafe raw insertion directives, enable it at your own risk.

rstview.settings.RSTVIEW_PARSER_FILTER_SETTINGS = {'default': {'initial_header_level': 3, 'doctitle_xform': False, 'footnote_references': 'superscript', 'language_code': 'en', 'file_insertion_enabled': False, 'raw_enabled': False}}

Available parser options sets.

These are options only for docutils parser, see Docutils Configuration.

Default entry default must allways be present.

rstview.settings.RSTVIEW_PARSER_LANGUAGE_CODE = 'en'

Locale code for document. Docutils parser don’t support the common pattern xx_XX, only the first part xx.

rstview.settings.RSTVIEW_PARSER_SECURITY = {'enable_exit': 0, 'halt_level': 6}

Some parse options you should not change. They’re automatically appended to each used parser options set.

rstview.settings.RSTVIEW_PARSER_SILENT = False

Default value for silent mode on parser

Silent means errors and warnings are totally ignored in opposed to un-silent where errors and warnings can be inserted into rendered source and also push to standard output.

rstview.settings.RSTVIEW_PARSER_WRITER = 'html5'

The docutils writer to use, can be html4 (suitable for xhtml too) or html5.

rstview.settings.RSTVIEW_PYGMENTS_CONTAINER_CLASSPREFIX = 'pygments'

CSS class prefix for generated Pygments elements when not using inline styles.

rstview.settings.RSTVIEW_PYGMENTS_INLINESTYLES = False

Enable usage of inline CSS styles in HTML generated by Pygments.

This will fill your HTML with a lot of inline styles. Disabled by default, the recommended way is to style it yourself, because there is not so much to do once.