conf.py: define a color for important markup on PDF output
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 11 May 2017 21:11:01 +0000 (18:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 16 May 2017 11:44:05 +0000 (08:44 -0300)
As kdbg.rst uses the ".. important::" annotation, let's define a
color for PDF output.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/conf.py

index 0ce8001a50b6e8449b6abb6f9678064d3db35cf4..1774357150a35937042448ee82a4640217de69d6 100644 (file)
@@ -281,6 +281,7 @@ latex_elements = {
        \\definecolor{NoteColor}{RGB}{204,255,255}
        \\definecolor{WarningColor}{RGB}{255,204,204}
        \\definecolor{AttentionColor}{RGB}{255,255,204}
+       \\definecolor{ImportantColor}{RGB}{192,255,204}
        \\definecolor{OtherColor}{RGB}{204,204,204}
         \\newlength{\\mynoticelength}
         \\makeatletter\\newenvironment{coloredbox}[1]{%
@@ -301,7 +302,12 @@ latex_elements = {
                    \\ifthenelse%
                    {\\equal{\\py@noticetype}{attention}}%
                    {\\colorbox{AttentionColor}{\\usebox{\\@tempboxa}}}%
-                   {\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}%
+                   {%
+                      \\ifthenelse%
+                      {\\equal{\\py@noticetype}{important}}%
+                      {\\colorbox{ImportantColor}{\\usebox{\\@tempboxa}}}%
+                      {\\colorbox{OtherColor}{\\usebox{\\@tempboxa}}}%
+                   }%
                 }%
              }%
         }\\makeatother