Skip to content

Commit 44ac2c5

Browse files
committed
Rename package to sphinx-sql-backend
1 parent d63d22c commit 44ac2c5

File tree

5 files changed

+60
-28
lines changed

5 files changed

+60
-28
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Latest changes
33
==============
44

5+
unreleased
6+
==========
7+
8+
- Friendly fork to divert into adding SQL backends for other databases
9+
10+
511
v0.1.3
612
======
713

README.rst

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,54 @@
1-
===================
2-
atsphinx-sqlite3fts
3-
===================
1+
==================
2+
sphinx-sql-backend
3+
==================
44

5-
Power search for Sphinx by SQLite3-FTS extension.
5+
SQL backend for the Sphinx documentation generator.
66

7-
.. image:: https://img.shields.io/pypi/v/atsphinx-sqlite3fts.svg
8-
:target: https://pypi.org/project/atsphinx-sqlite3fts/
7+
.. image:: https://img.shields.io/pypi/v/sphinx-sql-backend.svg
8+
:target: https://pypi.org/project/sphinx-sql-backend/
99

10-
.. image:: https://github.com/atsphinx/sqlite3fts/actions/workflows/main.yml/badge.svg?branch=main
10+
.. image:: https://github.com/panodata/sphinx-sql-backend/actions/workflows/main.yml/badge.svg?branch=main
1111
:alt: Run CI
12-
:target: https://github.com/atsphinx/sqlite3fts/actions/workflows/main.yml
12+
:target: https://github.com/panodata/sphinx-sql-backend/actions/workflows/main.yml
1313

14-
.. image:: https://readthedocs.org/projects/atsphinx-sqlite3fts/badge/?version=latest
15-
:target: https://atsphinx-sqlite3fts.readthedocs.io/en/latest/?badge=latest
14+
.. image:: https://readthedocs.org/projects/sphinx-sql-backend/badge/?version=latest
15+
:target: https://sphinx-sql-backend.readthedocs.io/en/latest/?badge=latest
1616
:alt: Documentation Status
1717

18-
.. note:: This is experimental library
18+
What's inside
19+
=============
1920

20-
Overview
21-
========
21+
A Sphinx extension to provide Full-Text-Search (FTS) based on SQL
22+
databases.
2223

23-
This is sphinx extension to provide search component with full-text search database.
24+
The package is completely based on `atsphinx-sqlite3fts`_ by
25+
`Kazuya Takei`_, so many kudos and thanks go out to him.
26+
See also `sqlite3fts on GitHub`_.
2427

25-
When ``sphinx-build`` runs with this extension, builder generate these components.
28+
Status
29+
======
2630

27-
* SQLite database with FTS extension
28-
* Records of all documents
29-
* Search page HTML with sql.js
31+
Please note that the ``sphinx-sql-backend`` package contains alpha-, beta- and
32+
incubation-quality code, and as such, is considered to be a work in progress.
33+
Contributions of all kinds are much welcome, in order to make it more solid,
34+
and to add features.
3035

31-
This will be useful when you want to embed strong full-text search with keeping static-site structure.
36+
Breaking changes should be expected until a 1.0 release, so version pinning is
37+
strongly recommended, especially when you use it as a library.
38+
39+
How it works
40+
============
41+
42+
* Indexing: When running ``sphinx-build``, store documents into database.
43+
* Searching: Provide backend service for responding to search requests and
44+
search-as-you-type UI based on `readthedocs-sphinx-search`_.
3245

3346
Installation
3447
============
3548

3649
.. code-block:: console
3750
38-
pip install atsphinx-sqlite3fts
51+
pip install git+https://github.com/panodata/sphinx-sql-backend.git
3952
4053
Usage
4154
=====
@@ -64,3 +77,9 @@ Usage
6477
python -m http.server -d build
6578
6679
Please access http://localhost:8000/search.html
80+
81+
82+
.. _atsphinx-sqlite3fts: https://pypi.org/project/atsphinx-sqlite3fts/
83+
.. _Kazuya Takei: https://github.com/attakei
84+
.. _readthedocs-sphinx-search: https://github.com/readthedocs/readthedocs-sphinx-search
85+
.. _sqlite3fts on GitHub: https://github.com/atsphinx/sqlite3fts

docs/getting-started.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ This is published on PyPI.
1818

1919
.. code-block:: console
2020
21-
pip install atsphinx-sqlite3fts
21+
pip install sphinx-sql-backend
2222
2323
If you want to try latest source, install from GitHub.
2424

2525
.. code-block:: console
2626
27-
pip install git+https://github.com/atsphinx/sqlite3fts.git
27+
pip install git+https://github.com/panodata/sphinx-sql-backend.git
2828
2929
Usage
3030
=====

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ requires = ["flit_core >=3.2,<4"]
33
build-backend = "flit_core.buildapi"
44

55
[project]
6-
name = "atsphinx-sqlite3fts"
7-
authors = [{name = "Kazuya Takei", email = "myself@attakei.net"}]
6+
name = "sphinx-sql-backend"
7+
authors = [{name = "Andreas Motl", email = "andreas.motl@panodata.org"}]
88
readme = "README.rst"
99
license = {file = "LICENSE"}
1010
classifiers = [
@@ -54,9 +54,9 @@ test = [
5454
atsphinx-sqlite3fts = "atsphinx.sqlite3fts.cli:main"
5555

5656
[project.urls]
57-
Home = "https://atsphinx.github.io/sqlite3fts"
58-
Repository = "https://github.com/atsphinx/sqlite3fts"
59-
Documentation = "https://atsphinx-sqlite3fts.readthedocs.io/"
57+
Home = "https://github.com/panodata/sphinx-sql-backend"
58+
Repository = "https://github.com/panodata/sphinx-sql-backend"
59+
Documentation = "https://sphinx-sql-backend.readthedocs.io/"
6060

6161
[tool.flit.module]
6262
name = "atsphinx.sqlite3fts"

src/atsphinx/sqlite3fts/models.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
"""Management database schema."""
1+
"""
2+
Database schema / ORM entity definition.
3+
4+
- atsphinx-sqlite3fts is using SQLite.
5+
- sphinx-sql-backend is aiming to add support for others.
6+
7+
TODO: Add support for multiple database backends?
8+
"""
29
from pathlib import Path
310
from typing import Iterable
411

0 commit comments

Comments
 (0)