Skip to content

updating docmantation for fix #24552 #27444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/content/administration/external-renderers.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN pip3 install jupyter docutils

## `app.ini` file configuration

add one `[markup.XXXXX]` section per external renderer on your custom `app.ini`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well… According to the example in https://docs.gitea.com/administration/config-cheat-sheet#markup-markup and my personal experience, I'd say your suggested fix is wrong.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for letting me know
So where should I change exactly?

add one `[markup:XXXXX]` section per external renderer on your custom `app.ini`:

```ini
[markup.asciidoc]
Expand Down Expand Up @@ -159,19 +159,19 @@ ALLOW_DATA_URI_IMAGES = true

## Customizing CSS

The external renderer is specified in the .ini in the format `[markup.XXXXX]` and the HTML supplied by your external renderer will be wrapped in a `<div>` with classes `markup` and `XXXXX`. The `markup` class provides out of the box styling (as does `markdown` if `XXXXX` is `markdown`). Otherwise you can use these classes to specifically target the contents of your rendered HTML.
The external renderer is specified in the .ini in the format `[markup:XXXXX]` and the HTML supplied by your external renderer will be wrapped in a `<div>` with classes `markup` and `XXXXX`. The `markup` class provides out of the box styling (as does `markdown` if `XXXXX` is `markdown`). Otherwise you can use these classes to specifically target the contents of your rendered HTML.

And so you could write some CSS:

```css
.markup.XXXXX html {
.markup:XXXXX html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

.markup.XXXXX body {
.markup:XXXXX body {
color: #444;
font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
font-size: 12px;
Expand All @@ -182,7 +182,7 @@ And so you could write some CSS:
background: #fefefe;
}

.markup.XXXXX p {
.markup:XXXXX p {
color: orangered;
}
```
Expand Down
10 changes: 5 additions & 5 deletions docs/content/administration/external-renderers.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RUN pip3 install jupyter docutils

## `app.ini` 文件配置

在您的自定义 `app.ini` 文件中为每个外部渲染器添加一个 `[markup.XXXXX]` 部分:
在您的自定义 `app.ini` 文件中为每个外部渲染器添加一个 `[markup:XXXXX]` 部分:

```ini
[markup.asciidoc]
Expand Down Expand Up @@ -166,19 +166,19 @@ ALLOW_DATA_URI_IMAGES = true

## 自定义 CSS

在 `.ini` 文件中,可以使用 `[markup.XXXXX]` 的格式指定外部渲染器,并且由外部渲染器生成的 HTML 将被包装在一个带有 `markup` 和 `XXXXX` 类的 `<div>` 中。`markup` 类提供了预定义的样式(如果 `XXXXX` 是 `markdown`,则使用 `markdown` 类)。否则,您可以使用这些类来针对渲染的 HTML 内容进行定制样式。
在 `.ini` 文件中,可以使用 `[markup:XXXXX]` 的格式指定外部渲染器,并且由外部渲染器生成的 HTML 将被包装在一个带有 `markup` 和 `XXXXX` 类的 `<div>` 中。`markup` 类提供了预定义的样式(如果 `XXXXX` 是 `markdown`,则使用 `markdown` 类)。否则,您可以使用这些类来针对渲染的 HTML 内容进行定制样式。

因此,您可以编写一些 CSS 样式:

```css
.markup.XXXXX html {
.markup:XXXXX html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

.markup.XXXXX body {
.markup:XXXXX body {
color: #444;
font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
font-size: 12px;
Expand All @@ -189,7 +189,7 @@ ALLOW_DATA_URI_IMAGES = true
background: #fefefe;
}

.markup.XXXXX p {
.markup:XXXXX p {
color: orangered;
}
```
Expand Down