diff --git a/Framework/Algorithms/inc/MantidAlgorithms/RebinByTimeAtSample.h b/Framework/Algorithms/inc/MantidAlgorithms/RebinByTimeAtSample.h index 39231a446033aac7e6123a78465399e24d6cf16b..65e82930cfce960d7ad61005544c18a31dfc3133 100644 --- a/Framework/Algorithms/inc/MantidAlgorithms/RebinByTimeAtSample.h +++ b/Framework/Algorithms/inc/MantidAlgorithms/RebinByTimeAtSample.h @@ -40,7 +40,7 @@ public: const std::string summary() const override; /// Algorithm's seeAlso const std::vector<std::string> seeAlso() const override { - return{ "Rebin", "RebinByPulseTime" }; + return{ "Rebin", "RebinByPulseTimes" }; } private: diff --git a/docs/sphinxext/mantiddoc/directives/base.py b/docs/sphinxext/mantiddoc/directives/base.py index 725165cee630a6135ae359ce936af7e87ebe3ae4..7d1884f27f21c33284b2b5059c1c61061a770c17 100644 --- a/docs/sphinxext/mantiddoc/directives/base.py +++ b/docs/sphinxext/mantiddoc/directives/base.py @@ -99,7 +99,8 @@ class BaseDirective(Directive): if pagetitle: level = 1 if level not in level_dict: - print('base.make_header: did not understand level ' +str(level)) + env = self.state.document.settings.env + env.app.warn('base.make_header - Did not understand level ' +str(level)) level = 2 line = "\n" + level_dict[level] * (len(name)) + "\n" diff --git a/docs/sphinxext/mantiddoc/directives/seeAlso.py b/docs/sphinxext/mantiddoc/directives/seeAlso.py index 13196c97b800c9522e80554bc78a545812509770..4db1001ec4aa02fadc28d298775adefe9ee667a6 100644 --- a/docs/sphinxext/mantiddoc/directives/seeAlso.py +++ b/docs/sphinxext/mantiddoc/directives/seeAlso.py @@ -21,20 +21,21 @@ class SeeAlsoDirective(AlgorithmBaseDirective): for seeAlsoEntry in seeAlsoList: #test the algorithm exists try: - alg = self.create_mantid_algorithm_by_name(seeAlsoEntry) - link_rst += ":ref:`%s <algm-%s>`, " % (alg.name(), alg.name()) + alg = self.create_mantid_algorithm_by_name(seeAlsoEntry) + link_rst += ":ref:`%s <algm-%s>`, " % (alg.name(), alg.name()) except RuntimeError: - print('SeeAlso: Could not find algorithm "{0}" listed in the seeAlso for {1}.v{2}'.format( - seeAlsoEntry,self.algorithm_name(), self.algorithm_version())) + env = self.state.document.settings.env + env.app.warn('SeeAlso - Could not find algorithm "{0}" listed in the seeAlso for {1}.v{2}'.format( + seeAlsoEntry,self.algorithm_name(), self.algorithm_version())) if link_rst or alias: - self.add_rst(self.make_header("See Also",level=3)) - if link_rst: - link_rst = link_rst.rstrip(", ") # remove final separator - self.add_rst(link_rst + "\n\n") - if alias: - format_str = "This algorithm is also known as: **%s**" - self.add_rst(format_str % alias) + self.add_rst(self.make_header("See Also",level=3)) + if link_rst: + link_rst = link_rst.rstrip(", ") # remove final separator + self.add_rst(link_rst + "\n\n") + if alias: + format_str = "This algorithm is also known as: **%s**" + self.add_rst(format_str % alias) return [] def setup(app):