Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bibo-joshi/sphinx-doc-bot
Telegram bot that lets your search Sphinx based documentation.
https://github.com/bibo-joshi/sphinx-doc-bot
python-telegram-bot sphinx-doc
Last synced: 9 days ago
JSON representation
Telegram bot that lets your search Sphinx based documentation.
- Host: GitHub
- URL: https://github.com/bibo-joshi/sphinx-doc-bot
- Owner: Bibo-Joshi
- License: mit
- Created: 2023-01-07T18:22:32.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T22:24:51.000Z (5 months ago)
- Last Synced: 2024-10-14T19:30:05.964Z (23 days ago)
- Topics: python-telegram-bot, sphinx-doc
- Language: Python
- Homepage: https://Bibo-Joshi.github.io/sphinx-doc-bot/
- Size: 14.7 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
Sphinx Doc Bot
==============.. image:: https://img.shields.io/badge/User-Guide-orange?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppb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gMTMsMCAyNS41LC05LjUgMTIuNSwtOS41IDE2LjUsLTIyLjUgbCAyMSwtNjQgcSA0LC0xMyAtMiwtMjIuNSAtNiwtOS41IC0yMCwtOS41IEggNjM3LjUyMTc0IHEgLTEzLDAgLTI1LjUsOS41IC0xMi41LDkuNSAtMTYuNSwyMi41IHogbSAtODMsMjU2IHEgLTQsMTMgMiwyMi41IDYsOS41IDIwLDkuNSBoIDYwNy45OTk5NiBxIDEzLDAgMjUuNSwtOS41IDEyLjUsLTkuNSAxNi41LC0yMi41IGwgMjEsLTY0IHEgNCwtMTMgLTIsLTIyLjUgLTYsLTkuNSAtMjAsLTkuNSBIIDU1NC41MjE3NCBxIC0xMywwIC0yNS41LDkuNSAtMTIuNSw5LjUgLTE2LjUsMjIuNSB6IiAvPgo8L3N2Zz4K
:target: https://Bibo-Joshi.github.io/sphinx-doc-bot/userguide.html
:alt: User Guide.. image:: https://img.shields.io/badge/python-3.8+-blue?logo=python&logoColor=white
:target: https://www.python.org/doc/versions/
:alt: Supported Python versions.. image:: https://img.shields.io/badge/backend-python--telegram--bot-blue
:target: https://python-telegram-bot.org/
:alt: Backend: python-telegram-bot.. image:: https://img.shields.io/badge/frontend%20for-Sphinx%20Docs-green
:target: https://sphinx-doc.org/
:alt: Frontend for: Sphinx-based Documentation.. image:: https://img.shields.io/badge/documentation-is%20here-orange?logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvM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LDAgNTYsLTE1LjUgMjcsLTE1LjUgMzUsLTQxLjUgbCAzMDAsLTk4NyBxIDcsLTIyIDUsLTU3IDM4LDE1IDU5LDQzIHogTSA1NzQuNTIxNzQsOTYgcSAtNCwxMyAyLDIyLjUgNiw5LjUgMjAsOS41IGggNjA3Ljk5OTk2IHEgMTMsMCAyNS41LC05LjUgMTIuNSwtOS41IDE2LjUsLTIyLjUgbCAyMSwtNjQgcSA0LC0xMyAtMiwtMjIuNSAtNiwtOS41IC0yMCwtOS41IEggNjM3LjUyMTc0IHEgLTEzLDAgLTI1LjUsOS41IC0xMi41LDkuNSAtMTYuNSwyMi41IHogbSAtODMsMjU2IHEgLTQsMTMgMiwyMi41IDYsOS41IDIwLDkuNSBoIDYwNy45OTk5NiBxIDEzLDAgMjUuNSwtOS41IDEyLjUsLTkuNSAxNi41LC0yMi41IGwgMjEsLTY0IHEgNCwtMTMgLTIsLTIyLjUgLTYsLTkuNSAtMjAsLTkuNSBIIDU1NC41MjE3NCBxIC0xMywwIC0yNS41LDkuNSAtMTIuNSw5LjUgLTE2LjUsMjIuNSB6IiAvPgo8L3N2Zz4K
:target: https://Bibo-Joshi.github.io/sphinx-doc-bot/
:alt: Documentation.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style Black.. image:: https://img.shields.io/badge/example%20instance-on%20Telegram-blue.svg?logo=Telegram
:target: https://t.me/PythonDocBot
:alt: Example Instance.. image:: https://results.pre-commit.ci/badge/github/Bibo-Joshi/sphinx-doc-bot/main.svg
:target: https://results.pre-commit.ci/latest/github/Bibo-Joshi/sphinx-doc-bot/main
:alt: pre-commit.ci statusA Telegram bot that lets you search Sphinx based documentation. Head `here `_ for the user guide. An instance searching the `Python docs `_ can be found at `@PythonDocBot `_.
Disclaimers:
------------This project
* is *not* officially associated with `Sphinx `_
* does *not* offer a bot that can search any Sphinx documentation. For the Python docs, the author hosts `@PythonDocBot `_, for everything else you'll need to set up your own bot.
* is heavily inspired by `@roolsbot `_, which allows to search the docs of `python-telegram-bot `_.What this project does
----------------------`Sphinx `_ is an open source documentation generator originally created for the Python documentation and is widely used to document Python packages. This projects allows to deploy a Telegram Bot which can be used to search the documentation of the Sphinx documentation of your choice.
Setting things up
-----------------To set up a bot, you only need to install the dependencies via ``pip install -r requirements.txt`` and fill the ``bot.ini`` configuration file:
* ``token``: your bots token
* ``admins_chat_id``: your Telegram ID. Used to send error reports
* ``docs_url``: The URL where your Sphinx documentation is hosted.
* ``cache_timeout``: The documentation is fetched in a cached manner, i.e. the short URLS are retrieved at most every ``cache_timeout`` minutes.
Defaults to 60 minutes.That's it. Run the bot via ``python main.py``. 🤖