Skip to content

Commit 4033d95

Browse files
jolheisereeyrjmr
andauthored
Docusaurus-ify 1.20 (go-gitea#26052)
See go-gitea#26051 --------- Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: JonRB <4564448+eeyrjmr@users.noreply.github.com>
1 parent 43213b8 commit 4033d95

File tree

275 files changed

+790
-2077
lines changed

Some content is hidden

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

275 files changed

+790
-2077
lines changed

Makefile

+6-13
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ help:
203203
@echo " - clean delete backend and integration files"
204204
@echo " - clean-all delete backend, frontend and integration files"
205205
@echo " - deps install dependencies"
206-
@echo " - deps-docs install docs dependencies"
207206
@echo " - deps-frontend install frontend dependencies"
208207
@echo " - deps-backend install backend dependencies"
209208
@echo " - deps-tools install tool dependencies"
@@ -375,11 +374,11 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig
375374

376375
.PHONY: lint-js
377376
lint-js: node_modules
378-
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
377+
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e
379378

380379
.PHONY: lint-js-fix
381380
lint-js-fix: node_modules
382-
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e --fix
381+
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e --fix
383382

384383
.PHONY: lint-css
385384
lint-css: node_modules
@@ -889,20 +888,14 @@ release-sources: | $(DIST_DIRS)
889888

890889
.PHONY: release-docs
891890
release-docs: | $(DIST_DIRS) docs
892-
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs/public .
891+
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs .
893892

894893
.PHONY: docs
895-
docs: deps-docs
896-
cd docs; make trans-copy clean build-offline;
897-
898-
.PHONY: deps-docs
899-
deps-docs:
900-
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
901-
curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mkdir -p ~/go/bin && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \
902-
fi
894+
docs:
895+
cd docs; bash scripts/trans-copy.sh;
903896

904897
.PHONY: deps
905-
deps: deps-frontend deps-backend deps-tools deps-docs
898+
deps: deps-frontend deps-backend deps-tools
906899

907900
.PHONY: deps-frontend
908901
deps-frontend: node_modules

docs/Makefile

-36
This file was deleted.

docs/README.md

+1-30
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+
These docs are ingested by our [docs repo](https://gitea.com/gitea/gitea-docusaurus).
367

378
## Authors
389

docs/README_ZH.md

+1-21
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

-174
This file was deleted.

0 commit comments

Comments
 (0)