Skip to content

Commit a8add1a

Browse files
committed
优化KDoc;
添加gtag;
1 parent 249d4e3 commit a8add1a

File tree

7 files changed

+262
-49
lines changed

7 files changed

+262
-49
lines changed

.github/workflows/publish-kdoc.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Publish KDoc
2+
on:
3+
workflow_dispatch:
4+
5+
6+
env:
7+
JAVA_VERSION: 21
8+
JAVA_DISTRIBUTION: zulu
9+
GRADLE_VERSION: 8.5
10+
IS_CI: true
11+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
12+
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
13+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
14+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
15+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
16+
GRADLE_OPTS: "-XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8"
17+
18+
jobs:
19+
deploy-doc:
20+
name: Deploy-doc
21+
runs-on: ubuntu-latest
22+
steps:
23+
# 检出仓库代码
24+
- name: Check out repo
25+
uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
28+
fetch-depth: 0
29+
# setup Java
30+
- name: Setup java
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'zulu'
34+
java-version: 21
35+
36+
# setup Gradle
37+
- name: Gradle generate documentation
38+
uses: gradle/actions/setup-gradle@v3
39+
with:
40+
gradle-version: 8.5
41+
arguments: |
42+
-Porg.gradle.jvmargs="-Xmx4g -Xms4g -XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8"
43+
-Porg.gradle.daemon=false
44+
--info
45+
--warning-mode all
46+
-x test
47+
--build-cache
48+
dokkaHtmlMultiModule
49+
50+
- name: Push to doc repository
51+
uses: peaceiris/actions-gh-pages@v3
52+
with:
53+
personal_token: ${{ secrets.PUSH_TOKEN }}
54+
external_repository: simple-robot-library/simbot3-api-docs
55+
publish_branch: kdoc-deploy/component-kook
56+
publish_dir: ./build/dokka/html
57+
# deploy to sub dir
58+
destination_dir: components/kook
59+
Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
1-
.library-name a::before {
2-
background: url("../images/logo-icon.svg") center no-repeat;
3-
background-size: contain;
4-
width: 40px;
5-
height: 40px;
6-
top: -12px;
7-
left: -50px;
1+
/*
2+
* Copyright (c) 2024. ForteScarlet.
3+
*
4+
* Project https://github.com/simple-robot/simpler-robot
5+
6+
*
7+
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.).
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* Lesser GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the Lesser GNU General Public License
20+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
21+
*
22+
*/
23+
24+
:root {
25+
--dokka-logo-image-url: url('../images/logo-icon-light.svg');
826
}
Lines changed: 78 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)