Skip to content

Commit c4285a0

Browse files
committed
Add new example to docs
1 parent 18eaf38 commit c4285a0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/examples/import_client.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. py:currentmodule:: coc
2+
3+
Import client everywhere
4+
========================
5+
This is an example of how to write one file to import a signed in client in every other file.
6+
7+
.. literalinclude:: ../../examples/import_client.py
8+
:language: py
9+
:linenos:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ coc.py: A Clash of Clans API Wrapper
5656
examples/discord_bot
5757
examples/events_example
5858
examples/war_logs
59+
examples/import_client
5960

6061
.. _miscellaneous:
6162
.. toctree::

0 commit comments

Comments
 (0)