From a5e14990c62f130f468f8a157717bb5f670d2266 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 15 Jan 2021 16:45:11 +0100
Subject: [PATCH] devops-tools/documentation#17 Enable syntax highlighting

---
 docs/ansible/wiki/inventory/add.md | 4 ++--
 docs/docker/l3d/index.md           | 2 +-
 docs/stylesheets/extra.css         | 3 +++
 mkdocs.yml                         | 6 ++++++
 4 files changed, 12 insertions(+), 3 deletions(-)
 create mode 100644 docs/stylesheets/extra.css

diff --git a/docs/ansible/wiki/inventory/add.md b/docs/ansible/wiki/inventory/add.md
index bb9d223..4d48823 100644
--- a/docs/ansible/wiki/inventory/add.md
+++ b/docs/ansible/wiki/inventory/add.md
@@ -9,7 +9,7 @@ When adding a new inventory, there need to be one or more [GitLab runners](ansib
 
 ## Install gitlab-runner as a service
 
-```shell script
+```bash
 dans [INVENTORY] role gitlab-runner --limit=[HOST]
 ```
 
@@ -19,7 +19,7 @@ SSH into the host, change to `sudo su` and follow these instructions:
 
 ### Register the runner
 
-```shell script
+```bash
 gitlab-runner register
 ```
 
diff --git a/docs/docker/l3d/index.md b/docs/docker/l3d/index.md
index a40ee36..41a775c 100644
--- a/docs/docker/l3d/index.md
+++ b/docs/docker/l3d/index.md
@@ -105,7 +105,7 @@ By default, L3D tries to use the same shell inside the containers that you also
 
 If you want to overwrite the shell deliberatly, then define an environment variable on your host, like e.g.
 
-```shell script
+```bash
 export L3DSHELL=/bin/bash
 ```
 
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
new file mode 100644
index 0000000..8c86ca7
--- /dev/null
+++ b/docs/stylesheets/extra.css
@@ -0,0 +1,3 @@
+:root > * {
+  --md-code-bg-color: #ddd;
+}
diff --git a/mkdocs.yml b/mkdocs.yml
index af91d8f..db09f58 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -9,9 +9,15 @@ theme:
     - navigation.tabs
 repo_name: devops-tools/documentation
 repo_url: https://gitlab.lakedrops.com/devops-tools/documentation
+extra_css:
+  - stylesheets/extra.css
 markdown_extensions:
   - toc:
       permalink: True
+  - pymdownx.highlight:
+      linenums: True
+  - pymdownx.superfences
+  - pymdownx.inlinehilite
 plugins:
   - search:
       lang: en
-- 
GitLab