From 29a7cc4f78a86bb9b1cf8cbac182dd13c1fe15dd Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 1 Mar 2023 11:46:19 +0800 Subject: [PATCH] fix: incorrect hightlight number of docker compose example code block (#195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /kind documentation 修复由 https://github.com/halo-dev/docs/pull/189 导致的 Docker Compose 代码块高亮行错误的问题。 before: image after: image ```release-note None ``` --- docs/getting-started/install/docker-compose.md | 6 +++--- .../version-2.2/getting-started/install/docker-compose.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/getting-started/install/docker-compose.md b/docs/getting-started/install/docker-compose.md index dacda8a..5af5b22 100644 --- a/docs/getting-started/install/docker-compose.md +++ b/docs/getting-started/install/docker-compose.md @@ -49,7 +49,7 @@ import DockerArgs from "./slots/docker-args.md" 1. 创建 Halo + PostgreSQL 的实例: - ```yaml {18-28,45} title="~/halo/docker-compose.yaml" + ```yaml {24-34,51} title="~/halo/docker-compose.yaml" version: "3" services: @@ -111,7 +111,7 @@ import DockerArgs from "./slots/docker-args.md" 2. 创建 Halo + MySQL 的实例: - ```yaml {18-28,53} title="~/halo/docker-compose.yaml" + ```yaml {24-34,59} title="~/halo/docker-compose.yaml" version: "3" services: @@ -179,7 +179,7 @@ import DockerArgs from "./slots/docker-args.md" 3. 仅创建 Halo 实例(使用默认的 H2 数据库,**不推荐用于生产环境,建议体验和测试的时候使用**): - ```yaml {13-20} title="~/halo/docker-compose.yaml" + ```yaml {19-24} title="~/halo/docker-compose.yaml" version: "3" services: diff --git a/versioned_docs/version-2.2/getting-started/install/docker-compose.md b/versioned_docs/version-2.2/getting-started/install/docker-compose.md index 2c9fd14..09277ba 100644 --- a/versioned_docs/version-2.2/getting-started/install/docker-compose.md +++ b/versioned_docs/version-2.2/getting-started/install/docker-compose.md @@ -49,7 +49,7 @@ import DockerArgs from "./slots/docker-args.md" 1. 创建 Halo + PostgreSQL 的实例: - ```yaml {18-28,45} title="~/halo/docker-compose.yaml" + ```yaml {24-34,51} title="~/halo/docker-compose.yaml" version: "3" services: @@ -111,7 +111,7 @@ import DockerArgs from "./slots/docker-args.md" 2. 创建 Halo + MySQL 的实例: - ```yaml {18-28,53} title="~/halo/docker-compose.yaml" + ```yaml {24-34,59} title="~/halo/docker-compose.yaml" version: "3" services: @@ -179,7 +179,7 @@ import DockerArgs from "./slots/docker-args.md" 3. 仅创建 Halo 实例(使用默认的 H2 数据库,**不推荐用于生产环境,建议体验和测试的时候使用**): - ```yaml {13-20} title="~/halo/docker-compose.yaml" + ```yaml {19-24} title="~/halo/docker-compose.yaml" version: "3" services: