Skip to content

Commit

Permalink
feat: add bash highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Feb 21, 2025
1 parent 6f23290 commit 4fc06f9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions docs/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions docs/getting-started/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = {
},
prism: {
theme: lightTheme,
additionalLanguages: ["docker", "powershell", "json"],
additionalLanguages: ["bash", "docker", "json"],
},
colorMode: {
// "light" | "dark"
Expand Down
12 changes: 6 additions & 6 deletions src/components/Highlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ const ModuleList = [
{
label: "Chromium",
value: "chromium",
content: <CodeBlock className="bash" children={ChromiumExample} />,
content: <CodeBlock language="bash" children={ChromiumExample} />,
},
{
label: "LibreOffice",
value: "libreoffice",
content: <CodeBlock className="bash" children={LibreOfficeExample} />,
content: <CodeBlock language="bash" children={LibreOfficeExample} />,
},
{
label: "PDF Engines",
value: "pdfengines",
content: <CodeBlock className="bash" children={PDFEnginesExample} />,
content: <CodeBlock language="bash" children={PDFEnginesExample} />,
},
{
label: "...",
Expand Down Expand Up @@ -146,7 +146,7 @@ function Async() {
</p>
</div>
<div className="col col--6">
<CodeBlock className="basg" children={WebhookExample} />
<CodeBlock language="bash" children={WebhookExample} />
</div>
</div>
</div>
Expand All @@ -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() {
Expand All @@ -176,7 +176,7 @@ function Platform() {
Gotenberg is a platform composed of modules; each module has
properties you may customize to your flavor.
</p>
<CodeBlock children={RunExample} />
<CodeBlock language="bash" children={RunExample} />
</div>
</div>
</div>
Expand Down

0 comments on commit 4fc06f9

Please sign in to comment.