diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index 2cad277d68..0199efc46e 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -115,9 +115,8 @@ class SupportMatrixTarget(object): class SupportMatrixDirective(rst.Directive): - option_spec = { - 'support-matrix': six.text_type, - } + # The argument is the filename, e.g. support-matrix.ini + required_arguments = 1 def run(self): matrix = self._load_support_matrix() @@ -132,8 +131,7 @@ class SupportMatrixDirective(rst.Directive): cfg = configparser.SafeConfigParser() env = self.state.document.settings.env - fname = self.options.get("support-matrix", - "support-matrix.ini") + fname = self.arguments[0] rel_fpath, fpath = env.relfn2path(fname) with open(fpath) as fp: cfg.readfp(fp) diff --git a/doc/source/support-matrix.rst b/doc/source/support-matrix.rst index fa3d2a482a..ccf9090f47 100644 --- a/doc/source/support-matrix.rst +++ b/doc/source/support-matrix.rst @@ -39,4 +39,4 @@ following general guiding principles were applied optional feature becoming mandatory at a later date, based on other principles above. -.. support_matrix:: +.. support_matrix:: support-matrix.ini