-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
287 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
# Change Log | ||
# Change Log :id=changelog | ||
|
||
[filename](https://raw.githubusercontent.com/wonder-light/glidea/refs/heads/main/CHANGELOG-en.md ':include') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# FAQ | ||
# FAQ :id=faq | ||
|
||
## 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Installing the client | ||
# Installing the client :id=install | ||
|
||
[install](../../../commont/install.md ':include') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Custom rendering templates :id=template | ||
|
||
!> Due to the use of commands to start the program, there are cases that some devices do not support\ | ||
Please explain how to use good friends! | ||
|
||
## Set custom :id=custom | ||
|
||
Add the `process` field to `config.json` and use the node.js example | ||
|
||
```json | ||
// <Theme Dir>/config.json | ||
{ | ||
"name": "fog", | ||
"version": "1.0", | ||
"author": "wonder-light", | ||
"repository": "https://github.com/wonder-light/glidea-theme-fog", | ||
"process": "node ./index.js", | ||
"customConfig": {} | ||
} | ||
``` | ||
|
||
### Argument :id=params | ||
|
||
The output path and the path to render data are injected \ | ||
at the end of the command before starting the program, and also in 'env' | ||
|
||
```shell | ||
node ./index.js | ||
#=> | ||
node ./index.js C:/.../output C:/.../render/config.json | ||
# There is a path.json directory in the config.json sibling directory to refer to the path writing | ||
``` | ||
|
||
### Environment :id=env | ||
|
||
```js | ||
console.log(process.argv[process.argv.length - 2]); | ||
// C:/.../output | ||
|
||
console.log(process.argv[process.argv.length - 1]); | ||
// C:/.../render/config.json | ||
|
||
console.log(process.env['buildDir']); | ||
// C:/.../output | ||
|
||
console.log(process.env['renderData']); | ||
// C:/.../render/config.json | ||
|
||
console.log(process.env['renderPath']); | ||
// C:/.../render/paths.json | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Share Theme | ||
# Share Theme :id=share | ||
|
||
> Share your theme with your friends on GitHub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
# 更改日志 | ||
# 更改日志 :id=changelog | ||
|
||
[filename](https://raw.githubusercontent.com/wonder-light/glidea/refs/heads/main/CHANGELOG.md ':include') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
# 功能 | ||
# 功能 :id=ability | ||
|
||
<br/> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# 常见问题 | ||
# 常见问题 :id=faq | ||
|
||
## 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# 自定义渲染模板 :id=template | ||
|
||
!> 由于使用的是由命令来启动程序, 所以存在着部分设备不怎么支持的情况,\ | ||
请各位小伙伴说明好使用办法哦! | ||
|
||
## 设置自定义 :id=custom | ||
|
||
在 `config.json` 中添加 `process` 字段即可, 接下来以 node.js 示例 | ||
|
||
```json | ||
// <主题目录>/config.json | ||
{ | ||
"name": "fog", | ||
"version": "1.0", | ||
"author": "wonder-light", | ||
"repository": "https://github.com/wonder-light/glidea-theme-fog", | ||
"process": "node ./index.js", | ||
"customConfig": {} | ||
} | ||
``` | ||
|
||
### 参数 :id=params | ||
|
||
在启动程序前会在命令的后面注入输出路径和渲染数据所在路径, 也会在 `env` 中注入 | ||
|
||
```shell | ||
node ./index.js | ||
#=> | ||
node ./index.js C:/.../output C:/.../render/config.json | ||
# 在 config.json 同级目录下有一个 paths.json 可以参考路径的写法 | ||
``` | ||
|
||
### 环境 :id=env | ||
|
||
```js | ||
console.log(process.argv[process.argv.length - 2]); | ||
// C:/.../output | ||
|
||
console.log(process.argv[process.argv.length - 1]); | ||
// C:/.../render/config.json | ||
|
||
console.log(process.env['buildDir']); | ||
// C:/.../output | ||
|
||
console.log(process.env['renderData']); | ||
// C:/.../render/config.json | ||
|
||
console.log(process.env['renderPath']); | ||
// C:/.../render/paths.json | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# 分享主题 | ||
# 分享主题 :id=share | ||
|
||
> 将小伙伴你的主题分享到 Github 吧 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.