-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add sphinx docsearch documentation
- Loading branch information
Showing
11 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
:description: Shibuya theme works well with Algolia sphinx docsearch extension. | ||
|
||
.. _docsearch: | ||
|
||
sphinx-docsearch | ||
================ | ||
|
||
``sphinx-docsearch`` replaces Sphinx's built-in search with Algolia DocSearch. | ||
|
||
**Documentation**: https://sphinx-docsearch.readthedocs.io/ | ||
|
||
Install | ||
------- | ||
|
||
.. code-block:: bash | ||
pip install sphinx-docsearch | ||
Then, add the extension to your ``conf.py``: | ||
|
||
.. code-block:: python | ||
:caption: conf.py | ||
extensions = [ | ||
# ... | ||
"sphinx_docsearch", | ||
] | ||
docsearch_app_id = "<DOCSEARCH_APP_ID>" | ||
docsearch_api_key = "<DOCSEARCH_SEARCH_API_KEY>" | ||
docsearch_index_name = "<DOCSEARCH_INDEX_NAME>" | ||
Screenshots | ||
----------- | ||
|
||
``sphinx-docsearch`` looks great in both light and dark mode with Shibuya theme. | ||
|
||
.. figure:: /_static/screenshots/docsearch-light.jpg | ||
:class: rounded | ||
:align: center | ||
|
||
DocSearch modal in **light** mode. | ||
|
||
.. figure:: /_static/screenshots/docsearch-dark.jpg | ||
:class: rounded | ||
:align: center | ||
|
||
DocSearch modal in **dark** mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters