|
78 | 78 | "accessToken": "${{ secrets.CONFLUENCE_PAT }}" |
79 | 79 | } |
80 | 80 | } |
| 81 | + rehype: | |
| 82 | + { |
| 83 | + "codeBlocks": true |
| 84 | + } |
81 | 85 | ``` |
82 | 86 |
|
83 | 87 | > [!TIP] |
@@ -125,6 +129,10 @@ For example: |
125 | 129 | "accessToken": "${{ secrets.CONFLUENCE_PAT }}" |
126 | 130 | } |
127 | 131 | } |
| 132 | + rehype: | |
| 133 | + { |
| 134 | + "codeBlocks": true |
| 135 | + } |
128 | 136 | ``` |
129 | 137 |
|
130 | 138 | ### Flat operation mode |
@@ -164,12 +172,13 @@ confluence_page_id: 123456789 |
164 | 172 |
|
165 | 173 | Mermaid diagrams are supported in the markdown files. The action will render the diagrams as images and upload them to Confluence. |
166 | 174 |
|
167 | | -```markdown |
| 175 | +````markdown |
168 | 176 | ```mermaid |
169 | 177 | graph TD; |
170 | 178 | A-->B; |
171 | 179 | A-->C; |
172 | 180 | ``` |
| 181 | +```` |
173 | 182 |
|
174 | 183 | ```mermaid |
175 | 184 | graph TD; |
@@ -206,6 +215,7 @@ The action accepts a configuration file in the root of the repository, and it ca |
206 | 215 | | `confluence-notice-message` | Notice message to add at the beginning of the Confluence pages | No | `<p><strong>AUTOMATION NOTICE: This page is synced automatically, changes made manually will be lost</strong></p>` | |
207 | 216 | | `confluence-notice-template` | Template string to use for the notice message | No | | |
208 | 217 | | `confluence-dry-run` | Dry run mode: Do not update Confluence pages. Only log pages to sync | No | `false `| |
| 218 | +| `rehype` | Rehype configuration as a stringified JSON (supports multiline). Refer to the [Markdown Confluence Sync docs](https://github.com/Telefonica/confluence-tools/tree/main/components/markdown-confluence-sync#configuration) | No | | |
209 | 219 | | `dry-run` | Process markdown files without sending them to the `confluence-sync` library. Useful to early detection of possible errors in configuration, markdown files, etc. Note that, requests that would be made to Confluence won't be logged, use `confluence-dry-run` for that, which also connects to Confluence to calculate the requests to do | No | | |
210 | 220 | | `log-level` | Log level: `silent`, `silly`, `debug`, `verbose`, `info`, `warn`, `error` | No | `info` | |
211 | 221 | | `cwd` | Current working directory. Path from where resolve `docs-dir`, `files-pattern`, `ignore`, and search for the configuration file. It must be relative to the repository folder | No | Repository root (`.`) | |
@@ -235,7 +245,10 @@ module.exports = { |
235 | 245 | }, |
236 | 246 | spaceKey: "MY-SPACE", |
237 | 247 | rootPageId: "my-root-page-id" |
238 | | - } |
| 248 | + }, |
| 249 | + rehype: { |
| 250 | + codeBlocks: true, |
| 251 | + }, |
239 | 252 | } |
240 | 253 | ``` |
241 | 254 |
|
|
0 commit comments