GeezerVison is showing github.com — Documentation Improvements (#3010, #3007, #3012, #3067, #3081, #3082) · MSutt/python-telegram-bot@11007c1
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.rst +8-8Lines changed: 8 additions & 8 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -263,19 +263,19 @@ break the API classes. For example: | 263 | 263 | self.last_name = last_name | 264 | 264 |
| 265 | 265 |
| 266 | | -.. _`Code of Conduct`: https://www.python.org/psf/codeofconduct/ | | 266 | +.. _`Code of Conduct`: https://www.python.org/psf/conduct/ | 267 | 267 | .. _`issue tracker`: https://github.com/python-telegram-bot/python-telegram-bot/issues | 268 | 268 | .. _`Telegram group`: https://telegram.me/pythontelegrambotgroup | 269 | | -.. _`PEP 8 Style Guide`: https://www.python.org/dev/peps/pep-0008/ | 270 | | -.. _`sphinx`: http://sphinx-doc.org | 271 | | -.. _`Google Python Style Guide`: http://google.github.io/styleguide/pyguide.html | | 269 | +.. _`PEP 8 Style Guide`: https://peps.python.org/pep-0008/ | | 270 | +.. _`sphinx`: https://www.sphinx-doc.org/en/master | | 271 | +.. _`Google Python Style Guide`: https://google.github.io/styleguide/pyguide.html | 272 | 272 | .. _`Google Python Style Docstrings`: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html | 273 | | -.. _AUTHORS.rst: ../AUTHORS.rst | | 273 | +.. _AUTHORS.rst: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/AUTHORS.rst | 274 | 274 | .. _`MyPy`: https://mypy.readthedocs.io/en/stable/index.html | 275 | 275 | .. _`here`: https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html | 276 | 276 | .. _`Black`: https://black.readthedocs.io/en/stable/index.html | 277 | | -.. _`popular editors`: https://black.readthedocs.io/en/stable/editor_integration.html | 278 | | -.. _`RTD`: https://python-telegram-bot.readthedocs.io/ | 279 | | -.. _`RTD build`: https://python-telegram-bot.readthedocs.io/en/doc-fixes | | 277 | +.. _`popular editors`: https://black.readthedocs.io/en/stable/integrations/editors.html | | 278 | +.. _`RTD`: https://docs.python-telegram-bot.org/ | | 279 | +.. _`RTD build`: https://docs.python-telegram-bot.org/en/doc-fixes | 280 | 280 | .. _`CSI`: https://standards.mousepawmedia.com/en/stable/csi.html | 281 | 281 | .. _`section`: #documenting |
Collapse file Copy file name to clipboard +29Lines changed: 29 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +name: Check Links in Documentation | | 2 | +on: | | 3 | + schedule: | | 4 | + # First day of month at 05:46 in every 2nd month | | 5 | + - cron: '46 5 1 */2 *' | | 6 | + | | 7 | +jobs: | | 8 | + test-sphinx-build: | | 9 | + name: test-sphinx-linkcheck | | 10 | + runs-on: ${{matrix.os}} | | 11 | + strategy: | | 12 | + matrix: | | 13 | + python-version: [3.7] | | 14 | + os: [ubuntu-latest] | | 15 | + fail-fast: False | | 16 | + steps: | | 17 | + - uses: actions/checkout@v3 | | 18 | + - name: Set up Python ${{ matrix.python-version }} | | 19 | + uses: actions/setup-python@v3 | | 20 | + with: | | 21 | + python-version: ${{ matrix.python-version }} | | 22 | + - name: Install dependencies | | 23 | + run: | | | 24 | + python -W ignore -m pip install --upgrade pip | | 25 | + python -W ignore -m pip install -r requirements.txt | | 26 | + python -W ignore -m pip install -r requirements-dev.txt | | 27 | + python -W ignore -m pip install -r docs/requirements-docs.txt | | 28 | + - name: Check Links | | 29 | + run: sphinx-build docs/source docs/build/html -W --keep-going -j auto -b linkcheck |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/docs.yml -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 | pull_request: | 4 | 4 | branches: | 5 | 5 | - master | 6 | | - - v14 | 7 | 6 | - doc-fixes | 8 | 7 | push: | 9 | 8 | branches: | 10 | 9 | - master | 11 | | - - v14 | 12 | 10 | - doc-fixes | 13 | 11 |
| 14 | 12 | jobs: | | 22 | 20 | fail-fast: False | 23 | 21 | steps: | 24 | 22 | - uses: actions/checkout@v3 | 25 | | - - name: Initialize vendored libs | 26 | | - run: | 27 | | - git submodule update --init --recursive | 28 | 23 | - name: Set up Python ${{ matrix.python-version }} | 29 | 24 | uses: actions/setup-python@v3 | 30 | 25 | with: | |
Collapse file Copy file name to clipboardExpand all lines: .readthedocs.yml +5-1Lines changed: 5 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,8 +15,12 @@ formats: | 15 | 15 |
| 16 | 16 | # Optionally set the version of Python and requirements required to build your docs | 17 | 17 | python: | 18 | | - version: 3 | 19 | 18 | install: | 20 | 19 | - method: pip | 21 | 20 | path: . | 22 | 21 | - requirements: docs/requirements-docs.txt | | 22 | + | | 23 | +build: | | 24 | + os: ubuntu-20.04 | | 25 | + tools: | | 26 | + python: "3" # latest stable cpython version |
Collapse file Copy file name to clipboardExpand all lines: CHANGES.rst +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -72,9 +72,9 @@ New Features: | 72 | 72 | by `DonalDuck004 <https://github.com/DonalDuck004>`__) | 73 | 73 | - Add Method ``drop_chat/user_data`` to ``Dispatcher`` and Persistence | 74 | 74 | (`#2852 <https://github.com/python-telegram-bot/python-telegram-bot/pull/2852>`__) | 75 | | -- Add methods ``ChatPermissions.{all, no}_permissions`` ([#2948] | | 75 | +- Add methods ``ChatPermissions.{all, no}_permissions`` (`#2948 <https://github.com/python-telegram-bot/python-telegram-bot/pull/2948>`__) | 76 | 76 | - Full Support for API 6.0 | 77 | | - (`#2956 <https://github.com/python-telegram-bot/python-telegram-bot/pull/2956>`__)(https://github.com/python-telegram-bot/python-telegram-bot/pull/2948)) | | 77 | + (`#2956 <https://github.com/python-telegram-bot/python-telegram-bot/pull/2956>`__) | 78 | 78 | - Add Python 3.10 to Test Suite | 79 | 79 | (`#2968 <https://github.com/python-telegram-bot/python-telegram-bot/pull/2968>`__) | 80 | 80 |
| @@ -1520,7 +1520,7 @@ Changes | 1520 | 1520 | - Lots of small improvements to our tests and documentation. | 1521 | 1521 |
| 1522 | 1522 |
| 1523 | | -.. _`see docs`: http://python-telegram-bot.readthedocs.io/en/stable/telegram.ext.dispatcher.html#telegram.ext.Dispatcher.add_handler | | 1523 | +.. _`see docs`: https://docs.python-telegram-bot.org/en/stable/telegram.ext.dispatcher.html#telegram.ext.Dispatcher.add_handler | 1524 | 1524 | .. _`#777`: https://github.com/python-telegram-bot/python-telegram-bot/pull/777 | 1525 | 1525 | .. _`#806`: https://github.com/python-telegram-bot/python-telegram-bot/pull/806 | 1526 | 1526 | .. _`#766`: https://github.com/python-telegram-bot/python-telegram-bot/pull/766 | @@ -1762,7 +1762,7 @@ Pre-version 7.0 | 1762 | 1762 |
| 1763 | 1763 | - Implement Bot API 2.0 | 1764 | 1764 | - Almost complete recode of ``Dispatcher`` | 1765 | | -- Please read the `Transistion Guide to 4.0 <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transistion-guide-to-Version-4.0>`_ | | 1765 | +- Please read the `Transistion Guide to 4.0 <https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-4.0>`_ | 1766 | 1766 |
| 1767 | 1767 | **2016-03-22** | 1768 | 1768 |
| |
Collapse file Copy file name to clipboardExpand all lines: CODE_OF_CONDUCT.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -49,4 +49,4 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai | 49 | 49 | Attribution | 50 | 50 | =========== | 51 | 51 |
| 52 | | -This Code of Conduct is adapted from the `Contributor Covenant <http://contributor-covenant.org>`_, version 1.4, available at `http://contributor-covenant.org/version/1/4 <http://contributor-covenant.org/version/1/4/>`_. | | 52 | +This Code of Conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org>`_, version 1.4, available at `https://www.contributor-covenant.org/version/1/4 <https://www.contributor-covenant.org/version/1/4/>`_. |
Collapse file Copy file name to clipboardExpand all lines: README.rst +9-9Lines changed: 9 additions & 9 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | .. | 2 | 2 | Make sure to apply any changes to this file to README_RAW.rst as well! | 3 | 3 |
| 4 | | -.. image:: https://github.com/python-telegram-bot/logos/blob/master/logo-text/png/ptb-logo-text_768.png?raw=true | | 4 | +.. image:: https://raw.githubusercontent.com/python-telegram-bot/logos/master/logo-text/png/ptb-logo-text_768.png | 5 | 5 | :align: center | 6 | 6 | :target: https://python-telegram-bot.org | 7 | 7 | :alt: python-telegram-bot Logo | | 23 | 23 | :alt: PyPi Package Monthly Download | 24 | 24 |
| 25 | 25 | .. image:: https://readthedocs.org/projects/python-telegram-bot/badge/?version=stable | 26 | | - :target: https://python-telegram-bot.readthedocs.io/en/stable/ | | 26 | + :target: https://docs.python-telegram-bot.org/en/stable/ | 27 | 27 | :alt: Documentation Status | 28 | 28 |
| 29 | 29 | .. image:: https://img.shields.io/pypi/l/python-telegram-bot.svg | | 34 | 34 | :target: https://github.com/python-telegram-bot/python-telegram-bot/ | 35 | 35 | :alt: Github Actions workflow | 36 | 36 |
| 37 | | -.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg | 38 | | - :target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot | | 37 | +.. image:: https://app.codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg | | 38 | + :target: https://app.codecov.io/gh/python-telegram-bot/python-telegram-bot | 39 | 39 | :alt: Code coverage | 40 | 40 |
| 41 | | -.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg | 42 | | - :target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot | | 41 | +.. image:: https://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg | | 42 | + :target: https://isitmaintained.com/project/python-telegram-bot/python-telegram-bot | 43 | 43 | :alt: Median time to resolve an issue | 44 | 44 |
| 45 | 45 | .. image:: https://api.codacy.com/project/badge/Grade/99d901eaa09b44b4819aec05c330c968 | 46 | | - :target: https://www.codacy.com/app/python-telegram-bot/python-telegram-bot?utm_source=github.com&utm_medium=referral&utm_content=python-telegram-bot/python-telegram-bot&utm_campaign=Badge_Grade | | 46 | + :target: https://app.codacy.com/gh/python-telegram-bot/python-telegram-bot/dashboard | 47 | 47 | :alt: Code quality: Codacy | 48 | 48 |
| 49 | 49 | .. image:: https://deepsource.io/gh/python-telegram-bot/python-telegram-bot.svg/?label=active+issues | @@ -136,7 +136,7 @@ Optional Dependencies | 136 | 136 |
| 137 | 137 | PTB can be installed with optional dependencies: | 138 | 138 |
| 139 | | -* ``pip install python-telegram-bot[passport]`` installs the `cryptography>=3.0 <https://cryptography.io>`_ library. Use this, if you want to use Telegram Passport related functionality. | | 139 | +* ``pip install python-telegram-bot[passport]`` installs the `cryptography>=3.0 <https://cryptography.io/en/stable>`_ library. Use this, if you want to use Telegram Passport related functionality. | 140 | 140 | * ``pip install python-telegram-bot[socks]`` installs ``httpx[socks]``. Use this, if you want to work behind a Socks5 server. | 141 | 141 |
| 142 | 142 | Quick Start | @@ -148,7 +148,7 @@ Moreover, the `Tutorial: Your first Bot <https://github.com/python-telegram-bot/ | 148 | 148 | Resources | 149 | 149 | ========= | 150 | 150 |
| 151 | | -- The `package documentation <https://python-telegram-bot.readthedocs.io/>`_ is the technical reference for ``python-telegram-bot``. | | 151 | +- The `package documentation <https://docs.python-telegram-bot.org/>`_ is the technical reference for ``python-telegram-bot``. | 152 | 152 | It contains descriptions of all available classes, modules, methods and arguments. | 153 | 153 | - The `wiki <https://github.com/python-telegram-bot/python-telegram-bot/wiki/>`_ is home to number of more elaborate introductions of the different features of ``python-telegram-bot`` and other useful resources that go beyond the technical documentation. | 154 | 154 | - Our `examples directory <https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/README.md>`_ contains several examples that showcase the different features of both the Bot API and ``python-telegram-bot``. | |
Collapse file Copy file name to clipboardExpand all lines: README_RAW.rst +8-8Lines changed: 8 additions & 8 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | :alt: PyPi Package Monthly Download | 24 | 24 |
| 25 | 25 | .. image:: https://readthedocs.org/projects/python-telegram-bot/badge/?version=stable | 26 | | - :target: https://python-telegram-bot.readthedocs.io/ | | 26 | + :target: https://docs.python-telegram-bot.org/ | 27 | 27 | :alt: Documentation Status | 28 | 28 |
| 29 | 29 | .. image:: https://img.shields.io/pypi/l/python-telegram-bot-raw.svg | | 34 | 34 | :target: https://github.com/python-telegram-bot/python-telegram-bot/ | 35 | 35 | :alt: Github Actions workflow | 36 | 36 |
| 37 | | -.. image:: https://codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg | 38 | | - :target: https://codecov.io/gh/python-telegram-bot/python-telegram-bot | | 37 | +.. image:: https://app.codecov.io/gh/python-telegram-bot/python-telegram-bot/branch/master/graph/badge.svg | | 38 | + :target: https://app.codecov.io/gh/python-telegram-bot/python-telegram-bot | 39 | 39 | :alt: Code coverage | 40 | 40 |
| 41 | | -.. image:: http://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg | 42 | | - :target: http://isitmaintained.com/project/python-telegram-bot/python-telegram-bot | | 41 | +.. image:: https://isitmaintained.com/badge/resolution/python-telegram-bot/python-telegram-bot.svg | | 42 | + :target: https://isitmaintained.com/project/python-telegram-bot/python-telegram-bot | 43 | 43 | :alt: Median time to resolve an issue | 44 | 44 |
| 45 | 45 | .. image:: https://api.codacy.com/project/badge/Grade/99d901eaa09b44b4819aec05c330c968 | 46 | | - :target: https://www.codacy.com/app/python-telegram-bot/python-telegram-bot?utm_source=github.com&utm_medium=referral&utm_content=python-telegram-bot/python-telegram-bot&utm_campaign=Badge_Grade | | 46 | + :target: https://app.codacy.com/gh/python-telegram-bot/python-telegram-bot/dashboard | 47 | 47 | :alt: Code quality: Codacy | 48 | 48 |
| 49 | 49 | .. image:: https://deepsource.io/gh/python-telegram-bot/python-telegram-bot.svg/?label=active+issues | @@ -134,7 +134,7 @@ Optional Dependencies | 134 | 134 |
| 135 | 135 | ``python-telegram-bot-raw`` can be installed with optional dependencies: | 136 | 136 |
| 137 | | -* ``pip install python-telegram-bot[passport]`` installs the `cryptography <https://cryptography.io>`_ library. Use this, if you want to use Telegram Passport related functionality. | | 137 | +* ``pip install python-telegram-bot[passport]`` installs the `cryptography <https://cryptography.io/en/stable>`_ library. Use this, if you want to use Telegram Passport related functionality. | 138 | 138 | * ``pip install python-telegram-bot[socks]`` installs the `PySocks <https://pypi.org/project/PySocks/>`_ library. Use this, if you want to work behind a Socks5 server. | 139 | 139 |
| 140 | 140 | Quick Start | @@ -145,7 +145,7 @@ Our Wiki contains an `Introduction to the API <https://github.com/python-telegra | 145 | 145 | Resources | 146 | 146 | ========= | 147 | 147 |
| 148 | | -- The `package documentation <https://python-telegram-bot.readthedocs.io/>`_ is the technical reference for ``python-telegram-bot``. | | 148 | +- The `package documentation <https://docs.python-telegram-bot.org/>`_ is the technical reference for ``python-telegram-bot``. | 149 | 149 | It contains descriptions of all available classes, modules, methods and arguments. | 150 | 150 | - The `wiki <https://github.com/python-telegram-bot/python-telegram-bot/wiki/>`_ is home to number of more elaborate introductions of the different features of ``python-telegram-bot`` and other useful resources that go beyond the technical documentation. | 151 | 151 | - Our `examples directory <https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/README.md>`_ contains several examples that showcase the different features of both the Bot API and ``python-telegram-bot``. | |
Collapse file Copy file name to clipboard +3-6Lines changed: 3 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -sphinx==4.5.0 | | 1 | +sphinx==5.0.1 | 2 | 2 | sphinx-pypi-upload | 3 | | -furo==2022.04.07 | 4 | | -# Can be replaced with a sphinx-paramlinks==... dependency once a version is released that | 5 | | -# includes the commit mentioned below and maybe even | 6 | | -# https://github.com/sqlalchemyorg/sphinx-paramlinks/pull/14 | 7 | | -git+https://github.com/sqlalchemyorg/sphinx-paramlinks.git@acedb03149e3f87ff599174b033754c2f58f1c95 | | 3 | +furo==2022.6.4 | | 4 | +sphinx-paramlinks==0.5.4 |
|