Skip to content
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

Update doc typo. #4656

Merged
merged 4 commits into from
Apr 2, 2024
Merged
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
12 changes: 6 additions & 6 deletions docs/4.0/docs/examples/blog-platform/install-halo.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ Detailed explanation of environment variable configuration:

Database link format (here we use the postgresql format):

| Connection Method | Connection Address Format | spring.sql.init.platform |
|--------------------|----------------------------------------------------------------------------------|----------------------------|
| PostgreSQL | r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE} | postgresql |
| MySQL | r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE} | mysql |
| MariaDB | r2dbc:pool:mariadb://{HOST}:{PORT}/{DATABASE} | mysql |
| H2 Database | r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE | h2 |
| Connection Method | Connection Address Format | spring.sql.init.platform |
|-------------------|------------------------------------------------------------------------------------|--------------------------|
| PostgreSQL | r2dbc:pool:postgresql://`{HOST}`:`{PORT}`/`{DATABASE}` | postgresql |
| MySQL | r2dbc:pool:mysql://`{HOST}`:`{PORT}`/`{DATABASE}` | mysql |
| MariaDB | r2dbc:pool:mariadb://`{HOST}`:`{PORT}`/`{DATABASE}` | mysql |
| H2 Database | r2dbc:h2:file:///`${halo.work-dir}`/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE | h2 |

### Network configuration

Expand Down
12 changes: 6 additions & 6 deletions docs/4.0/i18n/zh-Hans/examples/blog-platform/install-halo.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ halo.security.initializer.superadminpassword=sealos

数据库的链接格式(这里我们使用 postgresql 的格式):

| 链接方式 | 链接地址格式 | spring.sql.init.platform |
| ----------- | ------------------------------------------------------------ | ------------------------ |
| PostgreSQL | r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE} | postgresql |
| MySQL | r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE} | mysql |
| MariaDB | r2dbc:pool:mariadb://{HOST}:{PORT}/{DATABASE} | mysql |
| H2 Database | r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE | h2 |
| 链接方式 | 链接地址格式 | spring.sql.init.platform |
| ----------- | ---------------------------------------------------------------------------------- | ------------------------ |
| PostgreSQL | r2dbc:pool:postgresql://`{HOST}`:`{PORT}`/`{DATABASE}` | postgresql |
| MySQL | r2dbc:pool:mysql://`{HOST}`:`{PORT}`/`{DATABASE}` | mysql |
| MariaDB | r2dbc:pool:mariadb://`{HOST}`:`{PORT}`/`{DATABASE}` | mysql |
| H2 Database | r2dbc:h2:file:///`${halo.work-dir}`/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE | h2 |

### 网络配置

Expand Down
10 changes: 5 additions & 5 deletions docs/4.0/i18n/zh-Hans/self-hosting/sealos/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ $ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring
--key-path=<your_key>
```

+ <your_domain> 需要替换成你自己的公网域名。
+ <your_crt> 需要替换成你的证书位置,通常是 `.crt` 或 `.pem` 文件。例如:`/root/certs/example.crt`。
+ <your_key> 需要替换成你的私钥位置,通常是 `.key` 或 `.pem` 文件。例如:`/root/certs/example.key`。
+ `<your_domain>` 需要替换成你自己的公网域名。
+ `<your_crt>` 需要替换成你的证书位置,通常是 `.crt` 或 `.pem` 文件。例如:`/root/certs/example.crt`。
+ `<your_key>` 需要替换成你的私钥位置,通常是 `.key` 或 `.pem` 文件。例如:`/root/certs/example.key`。

### 3、有公网域名,想内网访问

Expand All @@ -171,7 +171,7 @@ $ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring
--cloud-domain=<your_domain>
```

其中 <your_domain> 需要替换成你自己的公网域名。
其中 `<your_domain>` 需要替换成你自己的公网域名。

安装过程中 Sealos 会使用 [cert-manager](https://cert-manager.io/docs/) 来自签名证书。

Expand Down Expand Up @@ -229,7 +229,7 @@ $ curl -sfL https://mirror.ghproxy.com/https://raw.githubusercontent.com/labring
--cloud-domain=<your_domain>
```

其中 <your_domain> 需要替换成你自己的自定义域名。
其中 `<your_domain>` 需要替换成你自己的自定义域名。

安装过程中 Sealos 会使用 [cert-manager](https://cert-manager.io/docs/) 来自签名证书。

Expand Down
10 changes: 5 additions & 5 deletions docs/website/static/global.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
document.addEventListener("DOMContentLoaded", function () {
console.log('Handle a tag interception', 111)
// console.log('Handle a tag interception', 111)
const parentElement = document.body
parentElement.addEventListener("click", function (event) {
if (event.target.tagName === "A") {
Expand All @@ -10,9 +10,9 @@ document.addEventListener("DOMContentLoaded", function () {
if (href.includes("sealos.io") || href.includes("sealos.top") || href.includes("sealos.run")) {
event.preventDefault()

console.log("Before:" + href)
// console.log("Before:" + href)
const modifiedHref = href.replace(/(sealos\.io|sealos\.top|sealos\.run)/, targetHostname)
console.log("After:", modifiedHref)
// console.log("After:", modifiedHref)

event.target.href = modifiedHref
window.open(modifiedHref)
Expand All @@ -26,7 +26,7 @@ document.addEventListener("DOMContentLoaded", function () {
.then(response => response.json())
.then(data => {
const responseBody = JSON.parse(data.body)
console.log(responseBody)
// console.log(responseBody)
})
.catch(error => {
console.error('请求失败,但这可能是因为达到提交上限:', error)
Expand All @@ -37,7 +37,7 @@ document.addEventListener("DOMContentLoaded", function () {

function handleBannerClose () {
const closeButton = document.querySelector('.clean-btn')
console.log(closeButton)
// console.log(closeButton)
if (closeButton) {
closeButton.click()
}
Expand Down
Loading