From 0ba641a6d283e2f33a67666fa4bc9028391692a8 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 17 Jul 2017 18:15:46 +0200 Subject: [PATCH] doc: restore syntax highlight in C snippet + increase padding of code fragment blocks --- doc/doxygen/src/creating-an-application.md | 2 +- doc/doxygen/src/css/riot.css | 1 + doc/doxygen/src/css/riot.less | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/doxygen/src/creating-an-application.md b/doc/doxygen/src/creating-an-application.md index 8d0ddad030..58f95b9561 100644 --- a/doc/doxygen/src/creating-an-application.md +++ b/doc/doxygen/src/creating-an-application.md @@ -19,7 +19,7 @@ priorities - is the first thread that runs and calls the `main()` function. This function needs to be defined in the source code of the application (typically located in `main.c`). -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.c} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c} #include int main(void) diff --git a/doc/doxygen/src/css/riot.css b/doc/doxygen/src/css/riot.css index 15cfcd42c5..d84883e7c5 100644 --- a/doc/doxygen/src/css/riot.css +++ b/doc/doxygen/src/css/riot.css @@ -197,6 +197,7 @@ div.fragment { font-size: 14px; line-height: 1.42857143; margin: 0 0 10px; + padding: 10px; overflow: visible; page-break-inside: avoid; word-break: break-all; diff --git a/doc/doxygen/src/css/riot.less b/doc/doxygen/src/css/riot.less index 7c24737a56..257d90687a 100644 --- a/doc/doxygen/src/css/riot.less +++ b/doc/doxygen/src/css/riot.less @@ -185,6 +185,7 @@ div.fragment { font-size: @font-size-base; line-height: @line-height-base; margin: 0 0 10px; + padding: 10px; overflow: visible; page-break-inside: avoid; word-break: break-all;