Skip to content

Commit

Permalink
Merge pull request #19 from devsapp/gwh/dipper
Browse files Browse the repository at this point in the history
fix:Inspect template readme and publish
  • Loading branch information
rsonghuster authored Sep 14, 2024
2 parents 272e441 + d2768c6 commit f18b0b7
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/registry-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: git config --global core.symlinks false
shell: bash
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions .signore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
.github
.idea
.vscode
.DS_Store
.git
.env
7 changes: 5 additions & 2 deletions publish.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Edition: 3.0.0
Type: Project
Name: start-word2pdf-dipper
Name: start-word2pdf-cap
Provider:
- 阿里云
Version: 0.0.2
Version: 0.0.1
Description: 本案例是将 word 转 pdf 的逻辑封装成一个python函数,快速创建并部署到阿里云函数计算 FC。
HomePage: https://github.com/devsapp/start-word2pdf/tree/dipper
Organization: 阿里云函数计算(FC)
Expand All @@ -17,6 +17,9 @@ Service:
函数计算:
Authorities:
- AliyunFCFullAccess
日志服务:
Authorities:
- AliyunFCServerlessDevsRolePolicy
Parameters:
type: object
additionalProperties: false # 不允许增加其他属性
Expand Down
37 changes: 6 additions & 31 deletions readme.md
37 changes: 6 additions & 31 deletions src/readme.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@

> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验)
# start-word2pdf-dipper 帮助文档
# start-word2pdf-cap 帮助文档

<description>

本案例是将 word 转 pdf 的逻辑封装成一个python函数,快速创建并部署到阿里云函数计算 FC。

</description>

<codeUrl>



</codeUrl>
<preview>



</preview>


## 前期准备

Expand All @@ -32,6 +21,7 @@
| 服务/业务 | 权限 | 相关文档 |
| --- | --- | --- |
| 函数计算 | AliyunFCFullAccess | [帮助文档](https://help.aliyun.com/product/2508973.html) [计费文档](https://help.aliyun.com/document_detail/2512928.html) |
| 日志服务 | AliyunFCServerlessDevsRolePolicy | [帮助文档](https://help.aliyun.com/zh/sls) [计费文档](https://help.aliyun.com/zh/sls/product-overview/billing) |

</service>

Expand All @@ -51,11 +41,12 @@

<appcenter>

:fire: 通过 [Dipper 应用中心](https://devs.console.aliyun.com/applications/createtemplate=start-word2pdf-dipper)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/createtemplate=start-word2pdf-dipper) 该应用。
- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-word2pdf-cap)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-word2pdf-cap) 该应用。

</appcenter>
<deploy>



</deploy>

## 案例介绍
Expand All @@ -69,7 +60,7 @@
2. 格式转换:可以将文档从一个格式批量转换为另一个格式,例如将多个DOC文件转换为PDF。
3. 服务器模式:通过--headless选项,soffice可以在不启动图形用户界面的情况下运行,非常适合服务器和自动化脚本使用。

通过 Serverless 开发平台,您只需要几步,就可以体验 word 转 pdf,并享受 Serverless 架构带来的降本提效的技术红利。
通过云原生应用开发平台,您只需要几步,就可以体验 word 转 pdf,并享受 Serverless 架构带来的降本提效的技术红利。

</appdetail>

Expand Down Expand Up @@ -163,19 +154,3 @@ urllib3==1.26.2

<matters id="flushContent">
</matters>


<devgroup>


## 开发者社区

您如果有关于错误的反馈或者未来的期待,您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 FC 组件的最新动态,您可以通过以下渠道进行:

<p align="center">

| <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="130px" > | <img src="https://images.devsapp.cn/fc-faq/33947367.png" width="130px" > |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| <center>微信公众号:`serverless`</center> | <center>微信小助手:`xiaojiangwh`</center> | <center>钉钉交流群:`33947367`</center> |
</p>
</devgroup>
2 changes: 2 additions & 0 deletions src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ resources:
props:
region: ${vars.region}
runtime: custom
cpu: 1
memorySize: 3072
diskSize: 512
timeout: 1200
internetAccess: true
role: '{{ roleArn }}'
Expand Down

0 comments on commit f18b0b7

Please sign in to comment.