Lines Matching +full:document +full:- +full:file
1 # -*- coding: utf-8; mode: python -*-
2 # coding=utf-8
3 # SPDX-License-Identifier: GPL-2.0
6 kernel-abi
9 Implementation of the ``kernel-abi`` reST-directive.
12 :copyright: Copyright (C) 2016-2020 Mauro Carvalho Chehab
13 :maintained-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
16 The ``kernel-abi`` (:py:class:`KernelCmd`) directive calls the
21 .. code-block:: rst
23 .. kernel-abi:: <ABI directory location>
30 Inserts a code-block with the *raw* reST. Sometimes it is helpful to see
75 app.add_directive("kernel-abi", KernelCmd)
84 """KernelABI (``kernel-abi``) directive"""
94 "no-symbols": directives.flag,
95 "no-files": directives.flag,
101 doc = self.state.document
103 raise self.warning("docutils: file insertion disabled")
105 env = self.state.document.settings.env
111 if "no-symbols" in self.options:
116 if "no-files" in self.options:
121 tab_width = self.options.get('tab-width',
122 self.state.document.settings.tab_width)
135 "", "", ".. code-block:: rst",
145 content.append(line, f, ln - 1)
149 # Add the file to Sphinx build dependencies if the file exists