Fix Version/s: None
Component/s: Stack Documentation and UX
Create a remote-code-block Sphinx directive that mirrors how literal-include works, but permits a URL so that the content is downloaded from an external https URL.
Caching should be included so that docs can be built offline. The intersphinx extension might be a good guide for how to implement caching.
This directive is needed to feature content from https://github.com/lsst/templates in documentation projects like the Developer Guide.
- has to be done before
DM-14782 Switch to sphinx-automodapi package
Implementation of intersphinx: https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/intersphinx.py
Implementation of literalinclude: https://github.com/sphinx-doc/sphinx/blob/72e60ce1653c7f03c1d4519424dbb8391c2ecbd1/sphinx/directives/code.py
Docs for literalinclude http://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-literalinclude