summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/docs/styles.rst2
-rw-r--r--doc/styles.rst5
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/docs/styles.rst b/doc/docs/styles.rst
index 9ceaeb28..91689d30 100644
--- a/doc/docs/styles.rst
+++ b/doc/docs/styles.rst
@@ -4,7 +4,7 @@
Styles
======
-Pygments comes with `some builtin styles <../styles/>`_ that work for both the
+Pygments comes with :doc:`some builtin styles </styles/>` that work for both the
HTML and LaTeX formatter.
The builtin styles can be looked up with the `get_style_by_name` function:
diff --git a/doc/styles.rst b/doc/styles.rst
new file mode 100644
index 00000000..a1bb0195
--- /dev/null
+++ b/doc/styles.rst
@@ -0,0 +1,5 @@
+:orphan:
+
+This file is overridden by _templates/styles.html and just exists to allow the
+Styles gallery to be reliably linked from the documentation
+(since its location varies between `make html` and `make dirhtml`).