Skip to content

Commit

Permalink
Skip copyright headers in literalincludes (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Aug 12, 2021
1 parent e2fd8b7 commit 34a9049
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/guide/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ calculation may fail randomly, with an increased chance of failure for larger
inputs.

.. literalinclude:: examples/slow_squares.py
:start-after: Thanks for using Enthought
:lines: 2-


Prime counting
--------------
Expand All @@ -41,6 +44,9 @@ This :download:`example script <examples/prime_counting.py>` demonstrates the
GUI as the background computation progresses.

.. literalinclude:: examples/prime_counting.py
:start-after: Thanks for using Enthought
:lines: 2-


Approximating Pi
----------------
Expand All @@ -54,3 +60,5 @@ Successive approximations to π are computed and plotted, with the plot
updated live with each new value reported by the background task.

.. literalinclude:: examples/pi_iterations.py
:start-after: Thanks for using Enthought
:lines: 2-
2 changes: 2 additions & 0 deletions docs/source/guide/toolkits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Here's an :download:`example script <examples/headless.py>` that uses the
of an asyncio event loop.

.. literalinclude:: examples/headless.py
:start-after: Thanks for using Enthought
:lines: 2-

..
substitutions
Expand Down

0 comments on commit 34a9049

Please sign in to comment.