From 8acc0615f14f6b57c3d6bd9e17a5b3a69a7a0fbd Mon Sep 17 00:00:00 2001 From: Viktor Villainov Date: Sat, 29 Dec 2018 08:07:12 -0500 Subject: [PATCH] Make code highlighting work --- README.rst | 11 +++++++---- docs/api.rst | 2 +- docs/quickstart.rst | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index cffaf8b..d11f4e9 100644 --- a/README.rst +++ b/README.rst @@ -2,6 +2,9 @@ i2plib ====== .. image:: https://travis-ci.com/l-n-s/i2plib.svg?branch=master :target: https://travis-ci.com/l-n-s/i2plib +.. image:: https://readthedocs.org/projects/i2plib/badge/?version=latest + :target: https://i2plib.readthedocs.io/en/latest/ + :alt: Latest Read The Docs i2plib is a modern asynchronous library for building I2P applications. @@ -20,7 +23,7 @@ Requirements: Connecting to a remote I2P destination -------------------------------------- -:: +.. code-block:: python import asyncio import i2plib @@ -49,7 +52,7 @@ Connecting to a remote I2P destination Accept connections in I2P ------------------------- -:: +.. code-block:: python import asyncio import i2plib @@ -89,7 +92,7 @@ Server tunnel Expose a local service to I2P like that: -:: +.. code-block:: python import asyncio import i2plib @@ -111,7 +114,7 @@ Client tunnel Bind a remote I2P destination to a port on your local host: -:: +.. code-block:: python import asyncio import i2plib diff --git a/docs/api.rst b/docs/api.rst index 1ad067f..17046c1 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -30,7 +30,7 @@ The following are asynchronous context managers for making I2P connections. You can use them like that: -:: +.. code-block:: python import asyncio import i2plib diff --git a/docs/quickstart.rst b/docs/quickstart.rst index a153290..a7f98c3 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -16,7 +16,7 @@ Requirements: Connecting to a remote I2P destination -------------------------------------- -:: +.. code-block:: python import asyncio import i2plib @@ -45,7 +45,7 @@ Connecting to a remote I2P destination Accept connections in I2P ------------------------- -:: +.. code-block:: python import asyncio import i2plib @@ -85,7 +85,7 @@ Server tunnel Expose a local service to I2P like that: -:: +.. code-block:: python import asyncio import i2plib @@ -107,7 +107,7 @@ Client tunnel Bind a remote I2P destination to a port on your local host: -:: +.. code-block:: python import asyncio import i2plib