From 0fb2b4cd39644d296a0372326ff03f28edcd6096 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 11 Dec 2021 06:32:32 +0000 Subject: [PATCH] docs: fix download link in start.rst. Fixes #647. --- docs/conf.py | 2 +- docs/start.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index dd22132..141568c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ extensions = [ with open(".gitignore") as f: exclude_patterns = [line.strip() for line in f.readlines()] -master_doc = "cover" +root_doc = "cover" intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} diff --git a/docs/start.rst b/docs/start.rst index fb5fb0e..3d7772f 100644 --- a/docs/start.rst +++ b/docs/start.rst @@ -10,7 +10,7 @@ This section demonstrates the basic Amaranth workflow to provide a cursory overv A counter ========= -As a first example, consider a counter with a fixed limit, enable, and overflow. The code for this example is shown below. `Download <_code/up_counter.py>`_ and run it: +As a first example, consider a counter with a fixed limit, enable, and overflow. The code for this example is shown below. :download:`Download <_code/up_counter.py>` and run it: .. code-block:: shell