sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.63k stars 2.13k forks source link

Is it possible to add external online code? #7525

Open jiapei100 opened 4 years ago

jiapei100 commented 4 years ago

.. literalinclude:: seems to be able to include a source file directly, for instance: example.py.

What if this example.py is at http://www.test.com/example.py ? Can we insert the online code directly?

tk0miya commented 4 years ago

At present, that is not supported. But it sounds good.

jdillard commented 4 weeks ago

This functionality exists via an extension now: https://github.com/wpilibsuite/sphinxext-remoteliteralinclude