kerneldoc.py (c95baf12f5077419db01313ab61c2aac007d40cd) kerneldoc.py (93351d4196802b3ee01074d96df47b73716984ba)
1# coding=utf-8
2#
3# Copyright © 2016 Intel Corporation
4#
5# Permission is hereby granted, free of charge, to any person obtaining a
6# copy of this software and associated documentation files (the "Software"),
7# to deal in the Software without restriction, including without limitation
8# the rights to use, copy, modify, merge, publish, distribute, sublicense,

--- 56 unchanged lines hidden (view full) ---

65 'functions': directives.unchanged,
66 }
67 has_content = False
68
69 def run(self):
70 env = self.state.document.settings.env
71 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
72
1# coding=utf-8
2#
3# Copyright © 2016 Intel Corporation
4#
5# Permission is hereby granted, free of charge, to any person obtaining a
6# copy of this software and associated documentation files (the "Software"),
7# to deal in the Software without restriction, including without limitation
8# the rights to use, copy, modify, merge, publish, distribute, sublicense,

--- 56 unchanged lines hidden (view full) ---

65 'functions': directives.unchanged,
66 }
67 has_content = False
68
69 def run(self):
70 env = self.state.document.settings.env
71 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
72
73 # Pass the version string to kernel-doc, as it needs to use a different
74 # dialect, depending what the C domain supports for each specific
75 # Sphinx versions
76 cmd += ['-sphinx-version', sphinx.__version__]
77
73 filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
74 export_file_patterns = []
75
76 # Tell sphinx of the dependency
77 env.note_dependency(os.path.abspath(filename))
78
79 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
80

--- 97 unchanged lines hidden ---
78 filename = env.config.kerneldoc_srctree + '/' + self.arguments[0]
79 export_file_patterns = []
80
81 # Tell sphinx of the dependency
82 env.note_dependency(os.path.abspath(filename))
83
84 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
85

--- 97 unchanged lines hidden ---