Skip to content

Commit be0f24e

Browse files
committed
ci: modify config. #90
1 parent 71e9de3 commit be0f24e

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,47 @@ jobs:
2222
- run: npm run package
2323
- run: npm run coverage
2424

25+
- name: Create README.md Config.
26+
run: |
27+
cat > conf.json << EOF
28+
{
29+
"document": {
30+
"title": "markdown-to-html-cli",
31+
"description": "Converts markdown text to HTML, Provide command line tools and methods. If you are simply converting a small number of Markdown files (or text) into HTML pages, this is very helpful for you.",
32+
"meta": [
33+
{ "description": "Converts markdown text to HTML, Provide command line tools and methods. If you are simply converting a small number of Markdown files (or text) into HTML pages, this is very helpful for you." },
34+
{ "keywords": "markdown,markdown-to-html,markdown-to-html-cli,markdown to HTML,markdown converter,command line tools,convert markdown,markdown to HTML pages,HTML generation,markdown tools" }
35+
]
36+
},
37+
"reurls": {
38+
"README-zh.md": "index.zh.html",
39+
"README.md": "index.html"
40+
}
41+
}
42+
EOF
43+
44+
- name: Create README-zh.md Config.
45+
run: |
46+
cat > conf.json << EOF
47+
{
48+
"document": {
49+
"title": "markdown-to-html-cli",
50+
"description": "将 Markdown 文本转换为 HTML,提供命令行工具和方法。如果您只是将少量的 Markdown 文件(或文本)转换为 HTML 页面,这将对您非常有帮助。",
51+
"meta": [
52+
{ "description": "将 Markdown 文本转换为 HTML,提供命令行工具和方法。如果您只是将少量的 Markdown 文件(或文本)转换为 HTML 页面,这将对您非常有帮助。" },
53+
{ "keywords": "markdown, markdown 转 HTML, markdown 转换器, 命令行工具, 转换 markdown, markdown 转 HTML 页面, HTML 生成, markdown 工具" }
54+
]
55+
},
56+
"reurls": {
57+
"README-zh.md": "index.zh.html",
58+
"README.md": "index.html"
59+
}
60+
}
61+
EOF
2562
- run: |
26-
node packages/cli/lib/cli.js --output coverage/index.html --github-corners https://github.com/jaywcjlove/markdown-to-html-cli --style "body { margin: 0; }" --favicon "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>"
63+
node packages/cli/lib/cli.js --output coverage/index.html --config="conf.json" --github-corners https://github.com/jaywcjlove/markdown-to-html-cli --style "body { margin: 0; }" --favicon "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>"
2764
- run: |
28-
node packages/cli/lib/cli.js -s README-zh.md --output coverage/index.zh.html --github-corners https://github.com/jaywcjlove/markdown-to-html-cli --style "body { margin: 0; }" --favicon "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>"
65+
node packages/cli/lib/cli.js -s README-zh.md --output coverage/index.zh.html --config="conf.json" --github-corners https://github.com/jaywcjlove/markdown-to-html-cli --style "body { margin: 0; }" --favicon "data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌐</text></svg>"
2966
3067
- name: Test Converts markdown text to HTML
3168
uses: ./

package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@
4848
]
4949
},
5050
"markdown-to-html": {
51-
"document": {
52-
"title": "markdown-to-html-cli",
53-
"description": "Converts markdown text to HTML, Provide command line tools and methods. If you are simply converting a small number of Markdown files (or text) into HTML pages, this is very helpful for you.",
54-
"meta": [
55-
{ "description": "Converts markdown text to HTML, Provide command line tools and methods. If you are simply converting a small number of Markdown files (or text) into HTML pages, this is very helpful for you." },
56-
{ "keywords": "markdown,markdown-to-html,markdown-to-html-cli,markdown to HTML,markdown converter,command line tools,convert markdown,markdown to HTML pages,HTML generation,markdown tools" }
57-
]
58-
},
5951
"reurls": {
6052
"README-zh.md": "index.zh.html",
6153
"README.md": "index.html"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy