From 42314ede86082da7ca25b7520c68e7e5157fab24 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Tue, 11 Jan 2022 00:13:39 +0100 Subject: [PATCH] display images also on pypi --- README.rst | 6 +++--- doc/conf.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 4fe9e45..d77c097 100644 --- a/README.rst +++ b/README.rst @@ -46,7 +46,7 @@ Example plt.plot(x, fdx, ls="--", label="f'(x)") plt.legend() -.. image:: doc/_static/example.svg +.. image:: https://hdembinski.github.io/jacobi/_images/example.svg Comparison to numdifftools -------------------------- @@ -56,11 +56,11 @@ Speed Jacobi makes better use of vectorised computation than numdifftools. -.. image:: doc/_static/speed.svg +.. image:: https://hdembinski.github.io/jacobi/_images/speed.svg Precision ^^^^^^^^^ The machine precision is indicated by the dashed line. -.. image:: doc/_static/precision.svg +.. image:: https://hdembinski.github.io/jacobi/_images/precision.svg diff --git a/doc/conf.py b/doc/conf.py index 57a98d1..0f47664 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,7 +18,9 @@ stub = f.read() with open(Path("..") / "README.rst") as f: - readme = f.read().replace("doc/", "") + readme = f.read().replace( + "https://hdembinski.github.io/jacobi/_images/", "_static/" + ) with open("index.rst", "w") as f: f.write(stub + "\n" + readme)