diff --git a/docs/blobs.rst b/docs/blobs.rst index 365865eb..48c6cf06 100644 --- a/docs/blobs.rst +++ b/docs/blobs.rst @@ -8,11 +8,6 @@ The CrateDB Python client library provides full access to the powerful :ref:`blob storage capabilities ` of your CrateDB cluster. -.. rubric:: Table of contents - -.. contents:: - :local: - Get a blob container ==================== diff --git a/docs/by-example/client.rst b/docs/by-example/client.rst index 6e8f08df..a06e1036 100644 --- a/docs/by-example/client.rst +++ b/docs/by-example/client.rst @@ -7,12 +7,6 @@ Python. This section of the documentation outlines different methods to connect to the database cluster, as well as how to run basic inquiries to the database, and closing the connection again. -.. rubric:: Table of Contents - -.. contents:: - :local: - - Connect to a database ===================== diff --git a/docs/by-example/connection.rst b/docs/by-example/connection.rst index 108166a3..c678d079 100644 --- a/docs/by-example/connection.rst +++ b/docs/by-example/connection.rst @@ -9,12 +9,6 @@ The examples use an instance of ``ClientMocked`` instead of a real ``Client`` instance. This allows us to verify the examples without needing a real database connection. -.. rubric:: Table of Contents - -.. contents:: - :local: - - connect() ========= diff --git a/docs/by-example/cursor.rst b/docs/by-example/cursor.rst index bfb9e693..86979fc3 100644 --- a/docs/by-example/cursor.rst +++ b/docs/by-example/cursor.rst @@ -8,12 +8,6 @@ behaviors of the ``crate.client.cursor.Cursor`` object. The example code uses ``ClientMocked`` and ``set_next_response`` for demonstration purposes, so they don't need a real database connection. -.. rubric:: Table of Contents - -.. contents:: - :local: - - Introduction ============ diff --git a/docs/by-example/http.rst b/docs/by-example/http.rst index 5afd3dee..44ba3608 100644 --- a/docs/by-example/http.rst +++ b/docs/by-example/http.rst @@ -2,12 +2,6 @@ HTTP client =========== -.. rubric:: Table of Contents - -.. contents:: - :local: - - Introduction ============ diff --git a/docs/by-example/https.rst b/docs/by-example/https.rst index 4bbd408e..b82db341 100644 --- a/docs/by-example/https.rst +++ b/docs/by-example/https.rst @@ -7,12 +7,6 @@ HTTPS connection support This documentation section outlines different options to connect to CrateDB using SSL/TLS. -.. rubric:: Table of Contents - -.. contents:: - :local: - - Introduction ============ diff --git a/docs/connect.rst b/docs/connect.rst index 774f6746..36e4dd54 100644 --- a/docs/connect.rst +++ b/docs/connect.rst @@ -17,11 +17,6 @@ Connect to CrateDB Supplementary information about the CrateDB Database API client can be found in the :ref:`data types appendix `. -.. rubric:: Table of contents - -.. contents:: - :local: - .. _single-node: Connect to a single node diff --git a/docs/data-types.rst b/docs/data-types.rst index 146bf5b3..90fd9234 100644 --- a/docs/data-types.rst +++ b/docs/data-types.rst @@ -6,11 +6,6 @@ Data types The data types of the :ref:`CrateDB DBAPI database API client `. -.. rubric:: Table of contents - -.. contents:: - :local: - .. _data-types-db-api: Database API client diff --git a/docs/getting-started.rst b/docs/getting-started.rst index a2847a41..c510ef8d 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -7,11 +7,6 @@ Getting started Learn how to install and get started with the Python client library for `CrateDB`_. -.. rubric:: Table of contents - -.. contents:: - :local: - Install ======= diff --git a/docs/index.rst b/docs/index.rst index 353f8c69..5b43c607 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,12 +4,6 @@ CrateDB Python Client ##################### -.. rubric:: Table of contents - -.. contents:: - :local: - :depth: 1 - ************ Introduction @@ -64,7 +58,7 @@ Connect to CrateDB instance running on ``localhost``. from pprint import pp query = "SELECT country, mountain, coordinates, height FROM sys.summits ORDER BY country;" - + with client.connect("localhost:4200", username="crate") as connection: cursor = connection.cursor() cursor.execute(query) diff --git a/docs/query.rst b/docs/query.rst index eb948fc0..c7d91194 100644 --- a/docs/query.rst +++ b/docs/query.rst @@ -17,11 +17,6 @@ Query CrateDB Supplementary information about the CrateDB Database API client can be found in the :ref:`data types appendix `. -.. rubric:: Table of contents - -.. contents:: - :local: - .. _cursor: Using a cursor