From 5dc572d2975808d8517102054a468a2e7a7478f1 Mon Sep 17 00:00:00 2001 From: Brian Munkholm Date: Mon, 26 May 2025 16:38:20 +0200 Subject: [PATCH] Remove page local TOC --- docs/blobs.rst | 5 ----- docs/by-example/client.rst | 6 ------ docs/by-example/connection.rst | 6 ------ docs/by-example/cursor.rst | 6 ------ docs/by-example/http.rst | 6 ------ docs/by-example/https.rst | 6 ------ docs/connect.rst | 5 ----- docs/data-types.rst | 5 ----- docs/getting-started.rst | 5 ----- docs/index.rst | 8 +------- docs/query.rst | 5 ----- 11 files changed, 1 insertion(+), 62 deletions(-) diff --git a/docs/blobs.rst b/docs/blobs.rst index 365865eb4..48c6cf060 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 6e8f08df0..a06e1036b 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 108166a36..c678d079f 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 bfb9e6931..86979fc3f 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 5afd3dee1..44ba36087 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 4bbd408e4..b82db3412 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 774f6746b..36e4dd549 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 146bf5b34..90fd92345 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 a2847a41b..c510ef8de 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 353f8c692..5b43c6077 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 eb948fc0a..c7d911947 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