This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer-website.git
The following commit(s) were added to refs/heads/main by this push:
new 19de4e0ab docs: deployment via BaoTa
19de4e0ab is described below
commit 19de4e0abafbc855b0e2804fb82b5786db2a181b
Author: Luffy <[email protected]>
AuthorDate: Thu Dec 12 16:22:12 2024 +0800
docs: deployment via BaoTa
---
docs/getting-started/installation.md | 2 +-
docs/getting-started/upgrade.md | 2 +-
.../current/getting-started/installation.md | 38 ++++++++++++++++++++-
.../current/getting-started/upgrade.md | 2 +-
i18n/zh-CN/docusaurus-theme-classic/navbar.json | 2 +-
static/img/docs/baota-init-docker.png | Bin 0 -> 61084 bytes
static/img/docs/baota-install-config.png | Bin 0 -> 109768 bytes
static/img/docs/baota-install.png | Bin 0 -> 68049 bytes
8 files changed, 41 insertions(+), 5 deletions(-)
diff --git a/docs/getting-started/installation.md
b/docs/getting-started/installation.md
index 89c35c746..55ccb0434 100644
--- a/docs/getting-started/installation.md
+++ b/docs/getting-started/installation.md
@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';
There are multiple ways to start Apache Answer, you can choose the one that
suits you best.
-<Tabs>
+<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker compose" default>
We recommend using Docker Compose to run Apache Answer. This is the easiest
way to get started with Apache Answer.
diff --git a/docs/getting-started/upgrade.md b/docs/getting-started/upgrade.md
index 2eeabd808..3aa6b4fae 100644
--- a/docs/getting-started/upgrade.md
+++ b/docs/getting-started/upgrade.md
@@ -15,7 +15,7 @@ To back up data means that you have the option to roll back
even if the upgrade
:::
-<Tabs>
+<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker Compose" default>
If you use docker-compose to install answer, it is very easy to upgrade.
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/installation.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/installation.md
index c90bedcf8..d0082d857 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/installation.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/installation.md
@@ -11,7 +11,7 @@ import TabItem from '@theme/TabItem';
有多种方式启动 Apache Answer,你可以选择最适合你的方式。
-<Tabs>
+<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker compose" default>
我们推荐使用 Docker Compose 来运行 Apache Answer。这是开始使用 Apache Answer 的最简单方法。
@@ -70,6 +70,42 @@ INSTALL_PORT=80 ./answer init -C ./answer-data/
:::
+ </TabItem>
+ <TabItem value="baota" label="宝塔面板">
+
+首先需要安装宝塔面板 9.2.0
及以上版本,前往[宝塔面板](https://www.bt.cn/new/download.html?r=dk_answer)官网,选择正式版的脚本下载安装。
+
+安装完成后,登录宝塔面板,点击左侧菜单栏的 `Docker`,进入应用商店,搜索 `Apache Answer`,点击安装进行配置:
+
+
+
+:::tip
+
+首次会提示安装 `Docker` 和 `Docker Compose` 服务,点击立即安装,若已安装请忽略。
+
+
+
+:::
+
+需要填写以下内容用于完成基本配置的初始化:
+
+- 名称:应用名称,默认 `answer_随机字符`
+- 版本选择:默认 `latest`
+- 允许外部访问:如你需通过 `IP+Port` 直接访问,请勾选,如你已经设置了域名,请不要勾选此处
+- 端口:默认 `9080`,可自行修改
+- 网站名称:站点名称,如 `Apache Answer`
+- 访问地址:安装后将用来访问 Apache Answer 的浏览器地址
+- 联系邮箱:负责本网站的主要联系人的电子邮件地址
+- 管理员账号:管理员用户名
+- 管理员密码:管理员密码
+- 管理员邮箱:管理员邮箱。您需要此电子邮件才能登录,请务必记住管理员的邮箱和密码
+
+
+
+点击确定提交后面板会自动进行应用初始化,不需要操作下文的安装步骤,等待初始化完成后即可通过刚才设置的**访问地址**进行访问。
+
+恭喜你!开始你的 Apache Answer 之旅吧!
+
</TabItem>
</Tabs>
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/upgrade.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/upgrade.md
index b00dd5f14..328300d6d 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/upgrade.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/upgrade.md
@@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem';
:::
-<Tabs>
+<Tabs queryString="method">
<TabItem value="docker-compose" label="Docker Compose" default>
如果你是使用docker-compose来安装answer,升级起来非常简单。
diff --git a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
index 03f534f63..84b4e8cbe 100644
--- a/i18n/zh-CN/docusaurus-theme-classic/navbar.json
+++ b/i18n/zh-CN/docusaurus-theme-classic/navbar.json
@@ -28,7 +28,7 @@
"description": "Navbar item with label Download"
},
"item.label.ASF": {
- "message": "阿帕奇软件基金会",
+ "message": "Apache软件基金会",
"description": "Navbar item with label ASF"
},
"item.label.Support": {
diff --git a/static/img/docs/baota-init-docker.png
b/static/img/docs/baota-init-docker.png
new file mode 100644
index 000000000..586fa6334
Binary files /dev/null and b/static/img/docs/baota-init-docker.png differ
diff --git a/static/img/docs/baota-install-config.png
b/static/img/docs/baota-install-config.png
new file mode 100644
index 000000000..f757aefae
Binary files /dev/null and b/static/img/docs/baota-install-config.png differ
diff --git a/static/img/docs/baota-install.png
b/static/img/docs/baota-install.png
new file mode 100644
index 000000000..1cb65a340
Binary files /dev/null and b/static/img/docs/baota-install.png differ