From 4fc06f9b539568409ce2f094581330ccc9bb9474 Mon Sep 17 00:00:00 2001
From: Julien Neuhart
Date: Fri, 21 Feb 2025 14:18:17 +0100
Subject: [PATCH] feat: add bash highlighting
---
docs/configuration.mdx | 8 ++++----
docs/getting-started/installation.mdx | 10 +++++-----
docusaurus.config.js | 2 +-
src/components/Highlights.js | 12 ++++++------
4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/docs/configuration.mdx b/docs/configuration.mdx
index 2bb05bf..0c3a88a 100644
--- a/docs/configuration.mdx
+++ b/docs/configuration.mdx
@@ -12,8 +12,8 @@ To set one or more flags, it's necessary to override the Docker image's default
For example, with the Docker CLI:
-```
-docker run --rm -p 3000:3000 gotenberg/gotenberg:8 gotenberg --my-module-property=foo
+```bash
+docker run --rm -p "3000:3000" gotenberg/gotenberg:8 gotenberg --my-module-property=foo
```
Or with Docker Compose:
@@ -42,8 +42,8 @@ Alternatively, you can set environment variables that directly correspond to the
For example, with the Docker CLI:
-```
-docker run --rm -p 3000:3000 -e MY_MODULE_PROPERTY=foo gotenberg/gotenberg:8
+```bash
+docker run --rm -p "3000:3000" -e MY_MODULE_PROPERTY=foo gotenberg/gotenberg:8
```
Or with Docker Compose:
diff --git a/docs/getting-started/installation.mdx b/docs/getting-started/installation.mdx
index b8ca35f..c299407 100644
--- a/docs/getting-started/installation.mdx
+++ b/docs/getting-started/installation.mdx
@@ -46,14 +46,14 @@ At present, the restrictions are:
To start a default Docker container of Gotenberg, run:
-```
-docker run --rm -p 3000:3000 gotenberg/gotenberg:8
+```bash
+docker run --rm -p "3000:3000" gotenberg/gotenberg:8
```
Alternatively, using the historic Docker repository from our sponsor [TheCodingMachine](https://www.thecodingmachine.com):
-```
-docker run --rm -p 3000:3000 thecodingmachine/gotenberg:8
+```bash
+docker run --rm -p "3000:3000" thecodingmachine/gotenberg:8
```
:::info
@@ -139,7 +139,7 @@ thecodingmachine/gotenberg:8-cloudrun
Using the Google Cloud CLI:
-```
+```bash
gcloud run deploy {deployment_name} \
--memory=1Gi \
--image=gotenberg/gotenberg:8-cloudrun \
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 576b3c5..3469c45 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -139,7 +139,7 @@ module.exports = {
},
prism: {
theme: lightTheme,
- additionalLanguages: ["docker", "powershell", "json"],
+ additionalLanguages: ["bash", "docker", "json"],
},
colorMode: {
// "light" | "dark"
diff --git a/src/components/Highlights.js b/src/components/Highlights.js
index 8081c2a..7f1714f 100644
--- a/src/components/Highlights.js
+++ b/src/components/Highlights.js
@@ -40,17 +40,17 @@ const ModuleList = [
{
label: "Chromium",
value: "chromium",
- content: ,
+ content: ,
},
{
label: "LibreOffice",
value: "libreoffice",
- content: ,
+ content: ,
},
{
label: "PDF Engines",
value: "pdfengines",
- content: ,
+ content: ,
},
{
label: "...",
@@ -146,7 +146,7 @@ function Async() {
-
+
@@ -155,7 +155,7 @@ function Async() {
}
const RunExample = `
-docker run --rm -p 80:80 gotenberg/gotenberg:8 gotenberg --api-port=80 --api-timeout=10s --libreoffice-disable-routes --log-level=debug
+docker run --rm -p "80:80" gotenberg/gotenberg:8 gotenberg --api-port=80 --api-timeout=10s --libreoffice-disable-routes --log-level=debug
`;
function Platform() {
@@ -176,7 +176,7 @@ function Platform() {
Gotenberg is a platform composed of modules; each module has
properties you may customize to your flavor.
-
+