lib.roles.file

File role for Docutils.

django_docutils.lib.roles.file.file_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]

Role for files.

Return type:

Tuple[List[emphasis], List[Any]]

Examples

📄 ./path/to/moo:

:file:`./path/to/moo`

📁 ./path/to/moo/:

:file:`./path/to/moo/`
django_docutils.lib.roles.file.manifest_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]

Role for manifests (package.json, file outputs).

Return type:

Tuple[List[emphasis], List[Any]]

Examples

📄 package.json:

:manifest:`package.json`
django_docutils.lib.roles.file.exe_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]

Role for executables.

Return type:

Tuple[List[emphasis], List[Any]]

Examples

📄 ./path/to/webpack:

:exe:`./path/to/webpack`