✨ [2025-01-07] 添加不支持的代码块类型替换为 shell
All checks were successful
Publish to Confluence / confluence (push) Successful in 40s
All checks were successful
Publish to Confluence / confluence (push) Successful in 40s
This commit is contained in:
parent
82bcd600fd
commit
fa349e587b
@ -88,6 +88,8 @@ jobs:
|
|||||||
# sed -i -E 's/(.*\!\[.*\]\([ \t]*([a-zA-Z]\:)?(\.*(\/|\\))?([^:\r\n\t\!]*\.[a-zA-Z]+)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1<!-- width-attach=750 -->/g' $temp_path
|
# sed -i -E 's/(.*\!\[.*\]\([ \t]*([a-zA-Z]\:)?(\.*(\/|\\))?([^:\r\n\t\!]*\.[a-zA-Z]+)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1<!-- width-attach=750 -->/g' $temp_path
|
||||||
# url 替换
|
# url 替换
|
||||||
sed -i -E 's/(.*\!\[.*\]\([ \t]*(http(s)?:\/\/)([^:\r\n\t\!]*(\.[a-zA-Z]+)?)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1<!-- width=750 -->/g' $temp_path
|
sed -i -E 's/(.*\!\[.*\]\([ \t]*(http(s)?:\/\/)([^:\r\n\t\!]*(\.[a-zA-Z]+)?)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1<!-- width=750 -->/g' $temp_path
|
||||||
|
# 不支持的代码块替换
|
||||||
|
sed -i -E 's/(.*)(```(dockerfile|json|toml))(.*)/\1```shell\4/g' $temp_path
|
||||||
# 标题添加锚点
|
# 标题添加锚点
|
||||||
sed -i -E 's/([#]+[ ]+)(.*)/\1\2 :anchor(\2):/g' $temp_path
|
sed -i -E 's/([#]+[ ]+)(.*)/\1\2 :anchor(\2):/g' $temp_path
|
||||||
sed -i -E "s@(\[.*\])(\(#)(.*)(\))@\1\2id-$(echo $temp_filename | tr -d '-')-\3\4@g" $temp_path
|
sed -i -E "s@(\[.*\])(\(#)(.*)(\))@\1\2id-$(echo $temp_filename | tr -d '-')-\3\4@g" $temp_path
|
||||||
|
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# 工作流注意事项
|
||||||
|
|
||||||
|
## 标题中不能有代码块
|
||||||
|
```shell
|
||||||
|
###- 标题`dddd`标题。这种会报错
|
||||||
|
```
|
||||||
|
|
||||||
|
## 呈现代码宏出错: 参数'com.atlassian.confluence.ext.code.render.InvalidValueException'的值无效
|
||||||
|
- 修改 `.gitea/workflows/confluence-sync.yaml`
|
||||||
|
- 搜索 `# 不支持的代码块替换`
|
||||||
|
- 添加不支持的类型,替换为 `shell`
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
#### 修改 docker compose 文件
|
#### 修改 docker compose 文件
|
||||||
|
|
||||||
- `docker-compose.yml`
|
- Docker Compose 文件 `./docker-compose.yml`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3'
|
version: '3'
|
||||||
@ -73,7 +73,7 @@ services:
|
|||||||
|
|
||||||
#### 修改配置文件
|
#### 修改配置文件
|
||||||
|
|
||||||
- `conf.toml`
|
- 配置文件 `./opt/conf.toml`
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[Mysql]
|
[Mysql]
|
||||||
@ -109,7 +109,7 @@ SessionKey = "session_state"
|
|||||||
|
|
||||||
#### 修改配置文件(Keycloak示例)
|
#### 修改配置文件(Keycloak示例)
|
||||||
|
|
||||||
- `conf.toml`
|
- 配置文件 `./opt/conf.toml`
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[Oidc]
|
[Oidc]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user