From 586199d7b7550c32cf4658c710e0563930e59a19 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Mon, 5 Oct 2020 16:47:23 +0200 Subject: [PATCH] Fix outdated documenation segments --- README.rst | 4 ++-- docs/conf.py | 3 ++- docs/index.rst | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 0121ca5..8a92672 100644 --- a/README.rst +++ b/README.rst @@ -31,11 +31,11 @@ like: ship = tasks.UpdateView(fields=["tracking_code"]) - def has_email(self, task): + def has_email(self): if self.email: return [self.send_tracking_code] - def send_tracking_code(self, task): + def send_tracking_code(self): send_mail( subject="Your tracking code", message=self.tracking_code, diff --git a/docs/conf.py b/docs/conf.py index fc10f33..1c8430d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -73,7 +73,8 @@ def linkcode_resolve(domain, info): "https://docs.djangoproject.com/en/stable/", "https://docs.djangoproject.com/en/stable/_objects/", ), - "celery": ("https://celery.readthedocs.io/en/stable/", None), + "dramatiq": ("https://dramatiq.io/", None), + "celery": ("https://docs.celeryproject.org/en/stable/", None), "graphviz": ("https://graphviz.readthedocs.io/en/stable/", None), } diff --git a/docs/index.rst b/docs/index.rst index ee78221..a13c4d3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,12 +25,12 @@ may look like: checkout [color=black fontcolor=black style="filled, rounded"] "has email" [color=black fontcolor=black style=filled] ship [color=black fontcolor=black style="filled, rounded"] - end [color=black fontcolor=black style=filled] + end [color=black fontcolor=black style=filled peripheries=2] "send tracking code" [color=black fontcolor=black style=filled] checkout -> ship ship -> "has email" "has email" -> "send tracking code" - "has email" -> end + "has email" -> end [color="#888888"] "send tracking code" -> end } @@ -55,7 +55,7 @@ may look like: if self.email: return [self.send_tracking_code] - def send_tracking_code(self, task): + def send_tracking_code(self): send_mail( subject="Your tracking code", message=self.tracking_code, @@ -63,7 +63,7 @@ may look like: recipient_list=[self.email], ) - def end(self, task): + def end(self): pass edges = [