diff --git a/python/MooseDocs/extensions/content.py b/python/MooseDocs/extensions/content.py index fcb779a1c0f6..ef91cd7bd28b 100644 --- a/python/MooseDocs/extensions/content.py +++ b/python/MooseDocs/extensions/content.py @@ -111,7 +111,7 @@ def binContent(self, page, location=None, method=None): return headings class ContentCommand(command.CommandComponent): - COMMAND = ('content', 'contents') #TODO: Change this to content after format is working + COMMAND = ('content') SUBCOMMAND = (None, 'list') @staticmethod @@ -122,14 +122,11 @@ def defaultSettings(): return settings def createToken(self, parent, info, page, settings): - if info['command'] == 'contents': - msg = 'The command "!contents" is deprecated, please use "!content list".' - LOG.warning(common.report_error(msg, page.source, info.line, info[0], prefix='WARNING')) ContentToken(parent, location=settings['location'], level=settings['level']) return parent class AtoZCommand(command.CommandComponent): - COMMAND = ('content', 'contents') + COMMAND = ('content') SUBCOMMAND = 'a-to-z' @staticmethod @@ -141,15 +138,12 @@ def defaultSettings(): return settings def createToken(self, parent, info, page, settings): - if info['command'] == 'contents': - msg = 'The command "!contents a-to-z" is deprecated, please use "!content a-to-z".' - LOG.warning(common.report_error(msg, page.source, info.line, info[0], prefix='WARNING')) AtoZToken(parent, location=settings['location'], level=settings['level'], buttons=settings['buttons']) return parent class TableOfContentsCommand(command.CommandComponent): - COMMAND = ('content', 'contents') + COMMAND = ('content') SUBCOMMAND = 'toc' @staticmethod @@ -161,10 +155,6 @@ def defaultSettings(): return settings def createToken(self, parent, info, page, settings): - if info['command'] == 'contents': - msg = 'The command "!contents toc" is deprecated, please use "!content toc".' - LOG.warning(common.report_error(msg, page.source, info.line, info[0], prefix='WARNING')) - levels = settings['levels'] if isinstance(levels, (str, str)): levels = [int(l) for l in levels.split()] @@ -483,5 +473,5 @@ def createHTMLHelper(self, parent, token, page, direction): string=string) def createLatex(self, parent, token, page): - msg = "Warning: The Content Extension\'s 'pagination' command is not supported for LaTex documents." + msg = "Warning: The Content Extension\'s 'pagination' command is not supported for LaTeX documents." latex.String(parent, content=msg)