|
1 | | -=================== |
2 | | -atsphinx-sqlite3fts |
3 | | -=================== |
| 1 | +================== |
| 2 | +sphinx-sql-backend |
| 3 | +================== |
4 | 4 |
|
5 | | -Power search for Sphinx by SQLite3-FTS extension. |
| 5 | +SQL backend for the Sphinx documentation generator. |
6 | 6 |
|
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/ |
9 | 9 |
|
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 |
11 | 11 | :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 |
13 | 13 |
|
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 |
16 | 16 | :alt: Documentation Status |
17 | 17 |
|
18 | | -.. note:: This is experimental library |
| 18 | +What's inside |
| 19 | +============= |
19 | 20 |
|
20 | | -Overview |
21 | | -======== |
| 21 | +A Sphinx extension to provide Full-Text-Search (FTS) based on SQL |
| 22 | +databases. |
22 | 23 |
|
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`_. |
24 | 27 |
|
25 | | -When ``sphinx-build`` runs with this extension, builder generate these components. |
| 28 | +Status |
| 29 | +====== |
26 | 30 |
|
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. |
30 | 35 |
|
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`_. |
32 | 45 |
|
33 | 46 | Installation |
34 | 47 | ============ |
35 | 48 |
|
36 | 49 | .. code-block:: console |
37 | 50 |
|
38 | | - pip install atsphinx-sqlite3fts |
| 51 | + pip install git+https://github.com/panodata/sphinx-sql-backend.git |
39 | 52 |
|
40 | 53 | Usage |
41 | 54 | ===== |
|
64 | 77 | python -m http.server -d build |
65 | 78 |
|
66 | 79 | 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 |
0 commit comments