Skip to content

Commit

Permalink
[add] GitPod.io entry & configuration
Browse files Browse the repository at this point in the history
[fix] 2 detail bugs in GitHub actions
  • Loading branch information
TechQuery committed Jul 5, 2024
1 parent a049cd4 commit 422ba76
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 174 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fetch-PDF.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cat > .env <<EOF
${{ secrets.ENV_FILE }}
EOF
find downloads/ -type f | xargs -I {} pnpm tool {}
find data/ -type f | grep -Ei .+\\.yml | xargs -I {} pnpm tool {}
- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/submit-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- labeled
jobs:
Parse-and-Submit:
if: github.event.label == 'documentation'
if: github.event.label.name == 'documentation'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 23 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

vscode:
extensions:
- yzhang.markdown-all-in-one
- unifiedjs.vscode-mdx
- xyc.vscode-mdx-preview
- redhat.vscode-yaml
- akamud.vscode-caniuse
- visualstudioexptteam.intellicode-api-usage-examples
- pflannery.vscode-versionlens
- christian-kohler.npm-intellisense
- esbenp.prettier-vscode
- eamodio.gitlens
- github.vscode-pull-request-github
- github.vscode-github-actions
tasks:
- init: pnpm i
command: npm start
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
[![Web deployment](https://github.com/xycjscs/KnowledgeBase-xiaoyibao/actions/workflows/deploy-Web.yml/badge.svg)][2]
[![PDF downloader](https://github.com/xycjscs/KnowledgeBase-xiaoyibao/actions/workflows/fetch-PDF.yml/badge.svg)][3]

这是 xiaoyibao 扩展项目中的知识库项目,用于存储生成 RAG 所需的医疗专业资料。
这是 [xiaoyibao][4] 扩展项目中的知识库项目,用于存储生成 RAG 所需的医疗专业资料。

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][5]
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][6]

## 你可以在此获得什么?

Expand Down Expand Up @@ -147,11 +150,13 @@ pnpm build
- [ ] QA 对数据库

- [x] 专业人士审核机制

- [ ] 考虑到LLM开发人员多熟悉Python环境,增加以python实现主要或全部功能

- [x] 自动将文档更新于一链接

[1]: https://github.com/xycjscs/KnowledgeBase-xiaoyibao/actions/workflows/submit-data.yml
[2]: https://github.com/xycjscs/KnowledgeBase-xiaoyibao/actions/workflows/deploy-Web.yml
[3]: https://github.com/xycjscs/KnowledgeBase-xiaoyibao/actions/workflows/fetch-PDF.yml
[4]: https://github.com/PancrePal-xiaoyibao/PancrePal-xiaoyibao
[5]: https://codespaces.new/xycjscs/KnowledgeBase-xiaoyibao
[6]: https://gitpod.io/?autostart=true#https://github.com/xycjscs/KnowledgeBase-xiaoyibao
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"happy-dom": "^14.12.3",
"koajax": "^1.1.2",
"office-text-extractor": "^3.0.3",
"tsx": "^4.15.7",
"tsx": "^4.16.2",
"web-utility": "^4.4.0",
"yaml": "^2.4.5",
"zx": "^8.1.3"
"zx": "^8.1.4"
},
"devDependencies": {
"@parcel/config-default": "~2.12.0",
"@types/node": "^18.19.38",
"@types/node": "^18.19.39",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"parcel": "~2.12.0",
"parcel-transformer-mdx": "^0.3.2",
"parcel-transformer-mdx": "^0.3.3",
"prettier": "^3.3.2",
"yaml-convert": "^1.0.1"
},
Expand Down
Loading

0 comments on commit 422ba76

Please sign in to comment.