Integrate literalinclude directive for tutorial snippets #2396
Closed
Description
This issue is a follow-up for #2390 (comment).
Action items:
- Integrate
literalincludeto keep example/demos and docs in sync (PR #2396 - Replace copy-pasted code by literalinclude references in docs #2400)
Here's the result of changes: https://aiohttp.readthedocs.io/en/stable/tutorial.html - Extend CI to have a separate job for testing specifically those demos and be sure that snippets in docs are working and refer exactly to the source we have in repo, not outdated version of it.
/cc: @asvetlov
P.S. IDK whether I'd have time for this myself either, but at least it's properly documented now.