Skip to content

Commit 65ca626

Browse files
authored
Docs simplification (#220)
1 parent 3d61b7f commit 65ca626

File tree

9 files changed

+10
-110
lines changed

9 files changed

+10
-110
lines changed

docs/advanced-querying.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ the ``INSERT...FROM SELECT`` and ``INSERT...RETURNING`` constructs, all using th
1010
CrateDB SQLAlchemy dialect.
1111

1212

13-
.. rubric:: Table of Contents
14-
15-
.. contents::
16-
:local:
17-
18-
1913
Introduction
2014
============
2115

docs/crud.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ like:
1313
- Inserts and updates with default values
1414

1515

16-
.. rubric:: Table of Contents
17-
18-
.. contents::
19-
:local:
20-
21-
2216
Introduction
2317
============
2418

docs/dataframe.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
DataFrame operations
66
====================
77

8-
.. rubric:: Table of Contents
9-
10-
.. contents::
11-
:local:
12-
138

149
About
1510
=====

docs/getting-started.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ Subsequent sections of the documentation will cover:
1616
- :ref:`inspection-reflection`
1717

1818

19-
.. rubric:: Table of Contents
20-
21-
.. contents::
22-
:local:
23-
24-
2519
Introduction
2620
============
2721

docs/index-all.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/index.rst

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
SQLAlchemy dialect for CrateDB
55
##############################
66

7-
.. rubric:: Table of contents
8-
9-
.. contents::
10-
:local:
11-
:depth: 1
12-
137

148
*****
159
About
@@ -58,14 +52,14 @@ Install package from PyPI.
5852
5953
pip install --upgrade sqlalchemy-cratedb
6054
61-
More installation details can be found over here.
55+
See also the :ref:`install` page for details.
6256

6357
.. toctree::
64-
:titlesonly:
58+
:hidden:
59+
:maxdepth: 1
6560

6661
install
6762

68-
6963
.. _features:
7064

7165
********
@@ -98,7 +92,7 @@ Connect to CrateDB instance running on ``localhost``.
9892
9993
dburi = "crate://localhost:4200"
10094
query = "SELECT country, mountain, coordinates, height FROM sys.summits ORDER BY country;"
101-
95+
10296
engine = sa.create_engine(dburi, echo=True)
10397
with engine.connect() as connection:
10498
with connection.execute(sa.text(query)) as result:
@@ -124,10 +118,10 @@ Load results into `pandas`_ DataFrame.
124118
# Connect using SQLAlchemy Core and pandas.
125119
import pandas as pd
126120
import sqlalchemy as sa
127-
121+
128122
dburi = "crate://localhost:4200"
129123
query = "SELECT * FROM sys.summits ORDER BY country;"
130-
124+
131125
engine = sa.create_engine(dburi, echo=True)
132126
with engine.connect() as connection:
133127
df = pd.read_sql(sql=sa.text(query), con=connection)
@@ -195,52 +189,19 @@ use of the SQLAlchemy dialect.
195189
- The `Apache Superset`_ and `FIWARE QuantumLeap data historian`_ projects.
196190

197191

192+
.. seealso::
198193

199-
*******************
200-
Project information
201-
*******************
202-
203-
Resources
204-
=========
205-
- `Source code <https://github.com/crate/sqlalchemy-cratedb>`_
206-
- `Documentation <https://github.com/crate/sqlalchemy-cratedb>`_
207-
- `Python Package Index (PyPI) <https://pypi.org/project/sqlalchemy-cratedb/>`_
208-
209-
Contributions
210-
=============
211-
The SQLAlchemy dialect for CrateDB is an open source project, and is `managed on
212-
GitHub`_.
213-
Every kind of contribution, feedback, or patch, is much welcome. `Create an
214-
issue`_ or submit a patch if you think we should include a new feature, or to
215-
report or fix a bug.
216-
217-
Development
218-
===========
219-
In order to setup a development environment on your workstation, please head
220-
over to the `development sandbox`_ documentation. When you see the software
221-
tests succeed, you should be ready to start hacking.
222-
223-
Page index
224-
==========
225-
The full index for all documentation pages can be inspected at :ref:`index-all`.
226-
227-
License
228-
=======
229-
The project is licensed under the terms of the Apache 2.0 license, like
230-
`CrateDB itself <CrateDB source_>`_, see `LICENSE`_.
231-
194+
The CrateDB SQLAlchemy dialect for SQLAlchemy is an open source project and
195+
is `managed on GitHub`_. Contributions, feedback, or patches are highly
196+
welcome!
232197

233198
.. _Apache Superset: https://github.com/apache/superset
234199
.. _CrateDB: https://cratedb.com/database
235200
.. _CrateDB Cloud: https://console.cratedb.cloud/
236-
.. _CrateDB source: https://github.com/crate/crate
237-
.. _Create an issue: https://github.com/crate/sqlalchemy-cratedb/issues
238-
.. _development sandbox: https://github.com/crate/sqlalchemy-cratedb/blob/main/DEVELOP.md
239201
.. _cratedb-examples repository: https://github.com/crate/cratedb-examples/tree/main/by-language
240202
.. _FIWARE QuantumLeap data historian: https://github.com/orchestracities/ngsi-timeseries-api
241203
.. _GeoJSON: https://geojson.org/
242204
.. _GeoJSON geometry objects: https://tools.ietf.org/html/rfc7946#section-3.1
243-
.. _LICENSE: https://github.com/crate/sqlalchemy-cratedb/blob/main/LICENSE
244205
.. _managed on GitHub: https://github.com/crate/sqlalchemy-cratedb
245206
.. _pandas: https://pandas.pydata.org/
246207
.. _PEP 249: https://peps.python.org/pep-0249/

docs/install.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ Install
77
Learn how to install and get started with the SQLAlchemy dialect for
88
`CrateDB`_. The package is available from `PyPI`_ at `sqlalchemy-cratedb`_.
99

10-
.. rubric:: Table of contents
11-
12-
.. contents::
13-
:local:
14-
1510
Install
1611
=======
1712

docs/overview.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
Features Overview
66
=================
77

8-
.. rubric:: Table of contents
9-
10-
.. contents::
11-
:local:
12-
:depth: 2
13-
148

159
Introduction
1610
============

docs/working-with-types.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ from the CrateDB SQLAlchemy dialect. Currently, these are:
1212
- Vector data type ``FloatVector``.
1313

1414

15-
.. rubric:: Table of Contents
16-
17-
.. contents::
18-
:local:
19-
20-
2115
Introduction
2216
============
2317

0 commit comments

Comments
 (0)