Skip to content

Commit 8c771c8

Browse files
jolheiserGiteaBot
andauthored
Docusaurus-ify 1.19 (#26053)
See #26051 --------- Signed-off-by: jolheiser <[email protected]> Co-authored-by: Giteabot <[email protected]>
1 parent 53586e9 commit 8c771c8

File tree

234 files changed

+713
-1923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+713
-1923
lines changed

.drone.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -898,22 +898,7 @@ steps:
898898
image: golang:1.20
899899
commands:
900900
- cd docs
901-
- make trans-copy clean build
902-
903-
- name: publish-docs
904-
image: techknowlogick/drone-netlify:latest
905-
pull: always
906-
settings:
907-
path: docs/public/
908-
site_id: d2260bae-7861-4c02-8646-8f6440b12672
909-
environment:
910-
NETLIFY_TOKEN:
911-
from_secret: netlify_token
912-
when:
913-
branch:
914-
- main
915-
event:
916-
- push
901+
- bash scripts/trans-copy.sh
917902

918903
---
919904
kind: pipeline

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ lint: lint-frontend lint-backend
346346

347347
.PHONY: lint-frontend
348348
lint-frontend: node_modules
349-
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
349+
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e
350350
npx stylelint --color --max-warnings=0 web_src/css
351351
npx spectral lint -q -F hint $(SWAGGER_SPEC)
352352
npx markdownlint docs *.md
@@ -817,14 +817,11 @@ release-sources: | $(DIST_DIRS)
817817

818818
.PHONY: release-docs
819819
release-docs: | $(DIST_DIRS) docs
820-
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs/public .
820+
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs .
821821

822822
.PHONY: docs
823823
docs:
824-
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
825-
curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo /usr/bin/hugo && chmod +x /usr/bin/hugo; \
826-
fi
827-
cd docs; make trans-copy clean build-offline;
824+
cd docs; bash scripts/trans-copy.sh;
828825

829826
.PHONY: deps
830827
deps: deps-frontend deps-backend

docs/Makefile

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/README.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,7 @@
33
[![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/Gitea)
44
[![](https://images.microbadger.com/badges/image/gitea/docs.svg)](http://microbadger.com/images/gitea/docs "Get your own image badge on microbadger.com")
55

6-
## Hosting
7-
8-
These pages are hosted using [netlifycms](https://www.netlifycms.org/) and get
9-
automatically updated on every push to the `master` branch.
10-
11-
## Install
12-
13-
These pages use the [Hugo](https://gohugo.io/) static site generator.
14-
If you are planning to contribute you'll want to download and install Hugo on
15-
your local machine.
16-
17-
The installation of Hugo is out of the scope of this document, so please take
18-
the [official install instructions](https://gohugo.io/overview/installing/) to
19-
get Hugo up and running.
20-
21-
## Development
22-
23-
To generate the website and serve it on [localhost:1313](http://localhost:1313)
24-
just execute this command and stop it with `Ctrl+C`:
25-
26-
```
27-
make server
28-
```
29-
30-
When you are done with your changes just create a pull request, after merging
31-
the pull request the website will be updated automatically.
32-
33-
## Contributing
34-
35-
Fork -> Patch -> Push -> Pull Request
6+
https://gitea.com/gitea/gitea-docusaurus
367

378
## Authors
389

docs/README_ZH.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,7 @@
44
[![Join the chat at https://img.shields.io/discord/322538954119184384.svg](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/Gitea)
55
[![](https://images.microbadger.com/badges/image/gitea/docs.svg)](http://microbadger.com/images/gitea/docs "Get your own image badge on microbadger.com")
66

7-
## 关于托管方式
8-
9-
本页面托管在我们 Docker 容器内的基础设施上, 它会在每次推送到 `master` 分支的时候自动更新,如果你想自己管理这个页面,你可以从我们的 Docker 镜像 [gitea/docs](https://hub.docker.com/r/gitea/docs/) 中获取它。
10-
11-
## 安装 Hugo
12-
13-
本页面使用了 [Hugo](https://github.com/spf13/hugo) 静态页面生成工具,如果您有维护它的意愿,则需要在本地计算机上下载并安装 Hugo。Hugo 的安装教程不在本文档的讲述范围之内,详情请参见 [官方文档](https://gohugo.io/overview/installing/)
14-
15-
## 如何部署
16-
17-
[localhost:1313](http://localhost:1313) 处构建和运行网站的命令如下,如果需要停止可以使用组合键 `Ctrl+C`:
18-
19-
```
20-
make server
21-
```
22-
23-
完成更改后,只需创建一个 Pull Request (PR),该 PR 一经合并网站将自动更新。
24-
25-
## 如何贡献您的代码
26-
27-
Fork -> Patch -> Push -> Pull Request
7+
https://gitea.com/gitea/gitea-docusaurus
288

299
## 关于我们
3010

docs/assets/js/search.js

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)