From 670429bdc531542a557d528705b643d4abd16a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Tue, 26 Jul 2022 10:24:42 +0200 Subject: Improve documentation. Explain that adding styles to the source tree directly is something that should be only used by contributors. --- doc/docs/styledevelopment.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/docs/styledevelopment.rst b/doc/docs/styledevelopment.rst index b75465bf..8c4ec2de 100644 --- a/doc/docs/styledevelopment.rst +++ b/doc/docs/styledevelopment.rst @@ -50,6 +50,13 @@ To make the style usable for Pygments, you must ... 'your': 'your::YourStyle', +.. note:: + + You should *only* add it to the ``pygments.styles`` subdirectory if you are + working on a contribution to Pygments. You should not use that + method to extend an already existing copy of Pygments, use the plugins + mechanism for that. + Style Rules =========== -- cgit v1.2.1