ashb commented on a change in pull request #4894: [AIRFLOW-3996] Add view source link to included fragments URL: https://github.com/apache/airflow/pull/4894#discussion_r265788830
########## File path: docs/exts/exampleinclude.py ########## @@ -0,0 +1,189 @@ +from os import path + +from docutils import nodes +from docutils.parsers.rst import directives +from six import text_type +from sphinx import addnodes +from sphinx.directives.code import LiteralIncludeReader +from sphinx.locale import _ +from sphinx.pycode import ModuleAnalyzer +from sphinx.util import logging +from sphinx.util import parselinenos +from sphinx.util.docutils import SphinxDirective +from sphinx.util.nodes import set_source_info + +logger = logging.getLogger(__name__) + + +class example_header(nodes.reference, nodes.FixedTextElement): + pass + + +class ExampleInclude(SphinxDirective): Review comment: (I figured there was some auto-formatting going on) A link to that would more helpful than master :) The only change in option_spec is the removal of `caption` right? Basically there is a lot of code here that we haven't really changed, and it's hard to work out what is special and what isn't. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
