From 53047a2854d884526310f9f95b99bff5ee336cb0 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Tue, 2 Jun 2020 18:12:07 +0100 Subject: [PATCH 1/3] Show special methods as operators [ci skip] --- docs/conf.py | 1 + docs/requirements.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index ca00936e..85ec7776 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -53,6 +53,7 @@ 'IPython.sphinxext.ipython_console_highlighting', #'numpydoc', 'sphinx.ext.viewcode', + 'sphinxcontrib.prettyspecialmethods', #'sphinx.ext.mathjax', ] diff --git a/docs/requirements.txt b/docs/requirements.txt index b763da67..2d0ba5c1 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -7,6 +7,9 @@ ipywidgets sphinx>=2.4 sphinx_rtd_theme +# I haven't released this yet +-e git+https://git@github.com/sphinx-contrib/prettyspecialmethods.git@36395ba530427060ef35f3075d0d9373da24d95d#egg=sphinxcontrib-prettyspecialmethods + # while we support 0.49, it emits tonnes of warnings so we pin this back numba ~= 0.48.0 From cbdb890168e0ecabddacdd3d892699a79bf1b0d0 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Wed, 3 Jun 2020 18:37:41 +0100 Subject: [PATCH 2/3] Use a different commit that shows "operator" prefixes --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 2d0ba5c1..b01c1575 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -8,7 +8,7 @@ sphinx>=2.4 sphinx_rtd_theme # I haven't released this yet --e git+https://git@github.com/sphinx-contrib/prettyspecialmethods.git@36395ba530427060ef35f3075d0d9373da24d95d#egg=sphinxcontrib-prettyspecialmethods +-e git+https://git@github.com/sphinx-contrib/prettyspecialmethods.git@c1ab23b1b7a4038a62d6b197edc1ed033889c04e#egg=sphinxcontrib-prettyspecialmethods # while we support 0.49, it emits tonnes of warnings so we pin this back numba ~= 0.48.0 From 323f4dfc05cff299a5e7f5f0a01363af869451a3 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Thu, 25 Jun 2020 10:38:02 +0100 Subject: [PATCH 3/3] Update docs/requirements.txt --- docs/requirements.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index b01c1575..befeadf7 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,9 +6,7 @@ nbsphinx ipywidgets sphinx>=2.4 sphinx_rtd_theme - -# I haven't released this yet --e git+https://git@github.com/sphinx-contrib/prettyspecialmethods.git@c1ab23b1b7a4038a62d6b197edc1ed033889c04e#egg=sphinxcontrib-prettyspecialmethods +sphinxcontrib-prettyspecialmethods # while we support 0.49, it emits tonnes of warnings so we pin this back numba ~= 0.48.0