diff --git a/.gitignore b/.gitignore
index c4a83f76..e4ecca58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,4 +20,5 @@ yarn-debug.log*
yarn-error.log*
.tmp/
+awesome/
awesome.md
diff --git a/Makefile b/Makefile
index 168d4ae0..97b9ecdf 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: build
.PHONY: create_dir
create_dir:
- mkdir -p .tmp awesome
+ mkdir -p .tmp
.PHONY: clone_awesome
clone_awesome: create_dir
diff --git a/docs/administration.md b/docs/administration.md
deleted file mode 100644
index adf171ca..00000000
--- a/docs/administration.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "Administration"
-slug: "administration"
-sidebar_position: 30
-
-menu:
- sidebar:
- name: "Administration"
- sidebar_position: 20
- collapse: true
- identifier: "administration"
----
diff --git a/docs/administration/_category_.json b/docs/administration/_category_.json
new file mode 100644
index 00000000..06329a03
--- /dev/null
+++ b/docs/administration/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Administration",
+ "position": 30,
+ "link": {
+ "type": "generated-index",
+ "slug": "/administration",
+ "title": "Administration"
+ }
+}
diff --git a/docs/contributing.md b/docs/contributing.md
deleted file mode 100644
index 3e57a852..00000000
--- a/docs/contributing.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2021-01-22T00:00:00+02:00"
-title: "Contributing"
-slug: "contributing"
-sidebar_position: 35
-
-menu:
- sidebar:
- name: "Contributing"
- sidebar_position: 50
- identifier: "contributing"
----
diff --git a/docs/contributing/_category_.json b/docs/contributing/_category_.json
new file mode 100644
index 00000000..bdd6dff8
--- /dev/null
+++ b/docs/contributing/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Contributing",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/contributing",
+ "title": "Contributing"
+ }
+}
diff --git a/docs/development.md b/docs/development.md
deleted file mode 100644
index a4754ef0..00000000
--- a/docs/development.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "Development"
-slug: "development"
-sidebar_position: 40
-
-menu:
- sidebar:
- name: "Development"
- sidebar_position: 40
- identifier: "development"
----
diff --git a/docs/development/_category_.json b/docs/development/_category_.json
new file mode 100644
index 00000000..98adf267
--- /dev/null
+++ b/docs/development/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Development",
+ "position": 40,
+ "link": {
+ "type": "generated-index",
+ "slug": "/development",
+ "title": "Development"
+ }
+}
diff --git a/docs/help.md b/docs/help.md
deleted file mode 100644
index 95ba2dbb..00000000
--- a/docs/help.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2017-01-20T15:00:00+08:00"
-title: "Help"
-slug: "help"
-sidebar_position: 5
-
-menu:
- sidebar:
- name: "Help"
- sidebar_position: 100
- identifier: "help"
----
diff --git a/docs/help/_category_.json b/docs/help/_category_.json
new file mode 100644
index 00000000..7d257efd
--- /dev/null
+++ b/docs/help/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Help",
+ "position": 5,
+ "link": {
+ "type": "generated-index",
+ "slug": "/help",
+ "title": "Help"
+ }
+}
diff --git a/docs/installation.md b/docs/installation.md
deleted file mode 100644
index 2fbbc6a4..00000000
--- a/docs/installation.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "Installation"
-slug: "installation"
-sidebar_position: 10
-
-menu:
- sidebar:
- name: "Installation"
- sidebar_position: 10
- identifier: "installation"
----
diff --git a/docs/installation/_category_.json b/docs/installation/_category_.json
new file mode 100644
index 00000000..bc9f0f58
--- /dev/null
+++ b/docs/installation/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Installation",
+ "position": 10,
+ "link": {
+ "type": "generated-index",
+ "slug": "/installation",
+ "title": "Installation"
+ }
+}
diff --git a/docs/usage.md b/docs/usage.md
deleted file mode 100644
index 893944be..00000000
--- a/docs/usage.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-27T16:00:00+02:00"
-title: "Usage"
-slug: "usage"
-sidebar_position: 35
-
-menu:
- sidebar:
- name: "Usage"
- sidebar_position: 30
- identifier: "usage"
----
diff --git a/docs/usage/_category_.json b/docs/usage/_category_.json
new file mode 100644
index 00000000..f16fae57
--- /dev/null
+++ b/docs/usage/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "Usage",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/usage",
+ "title": "Usage"
+ }
+}
diff --git a/docs/usage/actions/act-runner.md b/docs/usage/actions/act-runner.mdx
similarity index 100%
rename from docs/usage/actions/act-runner.md
rename to docs/usage/actions/act-runner.mdx
diff --git a/docusaurus.config.js b/docusaurus.config.js
index f625cc1c..20d156c6 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -211,8 +211,8 @@ const config = {
[
"@docusaurus/plugin-content-docs",
{
- id: "runner",
- path: "runner",
+ id: "runner-docs",
+ path: "runner-docs",
routeBasePath: "runner",
//sidebarPath: './runner/sidebars.js',
versions: {
@@ -235,8 +235,8 @@ const config = {
}) => {
return `https://gitea.com/gitea/docs/src/branch/main/${
version === "current"
- ? "runner"
- : `runner_versioned_docs/version-${version}`
+ ? "runner-docs"
+ : `runner-docs_versioned_docs/version-${version}`
}/${docPath}`;
},
async sidebarItemsGenerator({ defaultSidebarItemsGenerator, ...args }) {
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration.md
deleted file mode 100644
index 424479c8..00000000
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "运维"
-slug: "administration"
-sidebar_position: 30
-
-menu:
- sidebar:
- name: "运维"
- sidebar_position: 20
- identifier: "administration"
----
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/_category_.json
new file mode 100644
index 00000000..51635415
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/administration/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "运维",
+ "position": 30,
+ "link": {
+ "type": "generated-index",
+ "slug": "/administration",
+ "title": "运维"
+ }
+}
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/contributing/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/contributing/_category_.json
new file mode 100644
index 00000000..a65b938c
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/contributing/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "贡献",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/contributing",
+ "title": "贡献"
+ }
+}
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/development.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/development.md
deleted file mode 100644
index 3e74270a..00000000
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/development.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "开发"
-slug: "development"
-sidebar_position: 40
-
-menu:
- sidebar:
- name: "开发"
- sidebar_position: 40
- identifier: "development"
----
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/development/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/development/_category_.json
new file mode 100644
index 00000000..daaed829
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/development/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "开发",
+ "position": 40,
+ "link": {
+ "type": "generated-index",
+ "slug": "/development",
+ "title": "开发"
+ }
+}
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/help.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/help.md
deleted file mode 100644
index 6437d780..00000000
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/help.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2017-01-20T15:00:00+08:00"
-title: "帮助"
-slug: "help"
-sidebar_position: 5
-
-menu:
- sidebar:
- name: "帮助"
- sidebar_position: 100
- identifier: "help"
----
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/_category_.json
new file mode 100644
index 00000000..3d8f8695
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "帮助",
+ "position": 5,
+ "link": {
+ "type": "generated-index",
+ "slug": "/help",
+ "title": "帮助"
+ }
+}
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation.md
deleted file mode 100644
index 599494a7..00000000
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "安装"
-slug: "installation"
-sidebar_position: 10
-
-menu:
- sidebar:
- name: "安装"
- sidebar_position: 10
- identifier: "installation"
----
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/_category_.json
new file mode 100644
index 00000000..d02c2058
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/installation/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "安装",
+ "position": 10,
+ "link": {
+ "type": "generated-index",
+ "slug": "/installation",
+ "title": "安装"
+ }
+}
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage.md
deleted file mode 100644
index 2f3d2ece..00000000
--- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-27T16:00:00+02:00"
-title: "使用指南"
-slug: "usage"
-sidebar_position: 35
-
-menu:
- sidebar:
- name: "使用指南"
- sidebar_position: 30
- identifier: "usage"
----
diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/_category_.json b/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/_category_.json
new file mode 100644
index 00000000..662c3dc3
--- /dev/null
+++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "使用指南",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/usage",
+ "title": "使用指南"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration.md
deleted file mode 100644
index 4990aa60..00000000
--- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "運維"
-slug: "administration"
-sidebar_position: 30
-
-menu:
- sidebar:
- name: "運維"
- sidebar_position: 20
- identifier: "administration"
----
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/_category_.json
new file mode 100644
index 00000000..9a29633b
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "運維",
+ "position": 30,
+ "link": {
+ "type": "generated-index",
+ "slug": "/administration",
+ "title": "運維"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/contributing/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/contributing/_category_.json
new file mode 100644
index 00000000..f55ddb2c
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/contributing/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "貢獻",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/contributing",
+ "title": "貢獻"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/development.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/development.md
deleted file mode 100644
index 88b6cf77..00000000
--- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/development.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "開發"
-slug: "development"
-sidebar_position: 40
-
-menu:
- sidebar:
- name: "開發"
- sidebar_position: 40
- identifier: "development"
----
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/development/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/development/_category_.json
new file mode 100644
index 00000000..fb84a069
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/development/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "開發",
+ "position": 40,
+ "link": {
+ "type": "generated-index",
+ "slug": "/development",
+ "title": "開發"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/help.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/help.md
deleted file mode 100644
index ec9ba99d..00000000
--- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/help.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2017-01-20T15:00:00+08:00"
-title: "幫助"
-slug: "help"
-sidebar_position: 5
-
-menu:
- sidebar:
- name: "幫助"
- sidebar_position: 100
- identifier: "help"
----
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/help/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/help/_category_.json
new file mode 100644
index 00000000..592ffd89
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/help/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "幫助",
+ "position": 5,
+ "link": {
+ "type": "generated-index",
+ "slug": "/help",
+ "title": "幫助"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation.md
deleted file mode 100644
index 19545e42..00000000
--- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-01T16:00:00+02:00"
-title: "安裝"
-slug: "installation"
-sidebar_position: 10
-
-menu:
- sidebar:
- name: "安裝"
- sidebar_position: 10
- identifier: "installation"
----
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation/_category_.json
new file mode 100644
index 00000000..fa519580
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/installation/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "安裝",
+ "position": 10,
+ "link": {
+ "type": "generated-index",
+ "slug": "/installation",
+ "title": "安裝"
+ }
+}
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage.md b/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage.md
deleted file mode 100644
index 2f3d2ece..00000000
--- a/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-date: "2016-12-27T16:00:00+02:00"
-title: "使用指南"
-slug: "usage"
-sidebar_position: 35
-
-menu:
- sidebar:
- name: "使用指南"
- sidebar_position: 30
- identifier: "usage"
----
diff --git a/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage/_category_.json b/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage/_category_.json
new file mode 100644
index 00000000..662c3dc3
--- /dev/null
+++ b/i18n/zh-tw/docusaurus-plugin-content-docs/current/usage/_category_.json
@@ -0,0 +1,9 @@
+{
+ "label": "使用指南",
+ "position": 35,
+ "link": {
+ "type": "generated-index",
+ "slug": "/usage",
+ "title": "使用指南"
+ }
+}
diff --git a/runner-docs/index.mdx b/runner-docs/index.mdx
new file mode 100644
index 00000000..4477a1f9
--- /dev/null
+++ b/runner-docs/index.mdx
@@ -0,0 +1,8 @@
+---
+sidebar_position: 1
+slug: /
+---
+
+import ActRunnerDoc from '@site/docs/usage/actions/act-runner.mdx';
+
+
diff --git a/runner_versioned_docs/version-0.2.11/index.md b/runner-docs_versioned_docs/version-0.2.11/index.md
similarity index 100%
rename from runner_versioned_docs/version-0.2.11/index.md
rename to runner-docs_versioned_docs/version-0.2.11/index.md
diff --git a/runner_versions.json b/runner-docs_versions.json
similarity index 100%
rename from runner_versions.json
rename to runner-docs_versions.json
diff --git a/runner/index.md b/runner/index.md
deleted file mode 100644
index e9e64b52..00000000
--- a/runner/index.md
+++ /dev/null
@@ -1,104 +0,0 @@
----
-sidebar_position: 1
-slug: /
----
-
-# What is Gitea Runner
-
-Act runner is a runner for Gitea based on [Gitea fork](https://gitea.com/gitea/act) of [act](https://github.com/nektos/act). This documentation is a copy of https://gitea.com/gitea/act_runner/src/branch/main/README.md . And it should be updated once that README changed.
-
-## Installation
-
-### Prerequisites
-
-Docker Engine Community version is required for docker mode. To install Docker CE, follow the official [install instructions](https://docs.docker.com/engine/install/).
-
-### Download pre-built binary
-
-Visit [here](https://dl.gitea.com/act_runner/) and download the right version for your platform.
-
-### Build from source
-
-```bash
-make build
-```
-
-### Build a docker image
-
-```bash
-make docker
-```
-
-### Register
-
-```bash
-./act_runner register
-```
-
-And you will be asked to input:
-
-1. Gitea instance URL, like `http://192.168.8.8:3000/`. You should use your gitea instance ROOT_URL as the instance argument
- and you should not use `localhost` or `127.0.0.1` as instance IP;
-2. Runner token, you can get it from `http://192.168.8.8:3000/-/admin/actions/runners`;
-3. Runner name, you can just leave it blank;
-4. Runner labels, you can just leave it blank.
-
-The process looks like:
-
-```text
-INFO Registering runner, arch=amd64, os=darwin, version=0.1.5.
-WARN Runner in user-mode.
-INFO Enter the Gitea instance URL (for example, https://gitea.com/):
-http://192.168.8.8:3000/
-INFO Enter the runner token:
-fe884e8027dc292970d4e0303fe82b14xxxxxxxx
-INFO Enter the runner name (if set empty, use hostname: Test.local):
-
-INFO Enter the runner labels, leave blank to use the default labels (comma-separated, for example, ubuntu-latest:docker://gitea/runner-images:ubuntu-latest):
-
-INFO Registering runner, name=Test.local, instance=http://192.168.8.8:3000/, labels=[ubuntu-latest:docker://gitea/runner-images:ubuntu-latest ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04 ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04].
-DEBU Successfully pinged the Gitea instance server
-INFO Runner registered successfully.
-```
-
-You can also register with command line arguments.
-
-```bash
-./act_runner register --instance http://192.168.8.8:3000 --token --no-interactive
-```
-
-If the registry succeed, it will run immediately. Next time, you could run the runner directly.
-
-### Run
-
-```bash
-./act_runner daemon
-```
-
-### Run with docker
-
-```bash
-docker run -e GITEA_INSTANCE_URL=https://your_gitea.com -e GITEA_RUNNER_REGISTRATION_TOKEN= -v /var/run/docker.sock:/var/run/docker.sock --name my_runner gitea/act_runner:nightly
-```
-
-### Configuration
-
-You can also configure the runner with a configuration file.
-The configuration file is a YAML file, you can generate a sample configuration file with `./act_runner generate-config`.
-
-```bash
-./act_runner generate-config > config.yaml
-```
-
-You can specify the configuration file path with `-c`/`--config` argument.
-
-```bash
-./act_runner -c config.yaml register # register with config file
-./act_runner -c config.yaml daemon # run with config file
-```
-
-You can read the latest version of the configuration file online at [config.example.yaml](internal/pkg/config/config.example.yaml).
-
-### Example Deployments
-
-Check out the [examples](https://gitea.com/gitea/act_runner/src/branch/main/examples) directory for sample deployment types.