From ee684d8e23c472c31cd74ba53bbf695aeec275c1 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Thu, 10 Mar 2022 15:46:47 -0700 Subject: [PATCH] docs: Meta og descriptions --- docs/source/conf.py | 1 + docs/source/index.rst | 2 ++ setup.py | 11 ++++++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index c53b98c..4f38585 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -39,6 +39,7 @@ "sphinx.ext.napoleon", "sphinxcontrib_trio", "enum_tools.autoenum", + "sphinxext.opengraph", ] # Add any paths that contain templates here, relative to this directory. diff --git a/docs/source/index.rst b/docs/source/index.rst index f01d709..8c9ca97 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,3 +1,5 @@ +:og:description: Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord. Install with \`pip install -U table2ascii\`. + table2ascii =========== diff --git a/setup.py b/setup.py index 271718f..3572e5d 100644 --- a/setup.py +++ b/setup.py @@ -68,11 +68,12 @@ def requirements(): extras_require = { "docs": [ - "sphinx==4.2.0", - "enum-tools==0.6.4", - "sphinx-toolbox==2.15.0", - "sphinxcontrib_trio==1.1.2", - "sphinx-rtd-theme==1.0.0", + "sphinx>=4.4.0,<5", + "enum-tools>=0.9.0.post1,<1", + "sphinx-toolbox>=2.18.0,<3", + "sphinxcontrib_trio>=1.1.2,<2", + "sphinx-rtd-theme>=1.0.0,<2", + "sphinxext-opengraph>=0.6.2,<1", ], }