-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
2,636 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
push: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
check-latest: true | ||
cache: yarn | ||
cache-dependency-path: 'yarn.lock' | ||
- name: Test | ||
run: yarn workspace feishu-docx test |
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,18 @@ | ||
# Feishu Docx | ||
|
||
Convert Feishu Docx into other formats (Markdown, HTML ...) | ||
|
||
## Usage | ||
|
||
```bash | ||
import { MarkdownRenderer } from 'feishu-docx' | ||
|
||
// Load docx JSON from file | ||
const docx = fs.readFileSync('test.json') | ||
const renderer = new MarkdownRenderer(docx) | ||
const text = renderer.parse(); | ||
``` | ||
## License | ||
MIT |
File renamed without changes.
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,31 @@ | ||
{ | ||
"name": "feishu-docx", | ||
"version": "0.1.0", | ||
"description": "Generate static pages from Feishu Wiki.", | ||
"main": "dist/index.js", | ||
"repository": { | ||
"url": "https://github.com/huacnlee/feishu-pages" | ||
}, | ||
"publisher": "Jason Lee", | ||
"author": { | ||
"name": "Jason Lee", | ||
"email": "huacnlee@gmail.com" | ||
}, | ||
"scripts": { | ||
"dev": "tsc && node dist/index.js", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^20.5.7", | ||
"dotenv": "^16.3.1", | ||
"jsdom": "^22.1.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.6.4", | ||
"@types/jsdom": "^21.1.2", | ||
"jest": "^29.6.4", | ||
"ts-jest": "^29.1.1" | ||
}, | ||
"license": "MIT" | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,21 @@ | ||
{ | ||
"name": "feishu-pages", | ||
"version": "0.1.0", | ||
"description": "Generate static pages from Feishu Wiki.", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"dev": "tsc && node dist/index.js", | ||
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@larksuiteoapi/node-sdk": "^1.20.0", | ||
"@types/node": "^20.5.7", | ||
"dotenv": "^16.3.1", | ||
"typescript": "^5.2.2" | ||
}, | ||
"devDependencies": { | ||
"@jest/globals": "^29.6.4", | ||
"jest": "^29.6.4", | ||
"ts-jest": "^29.1.1" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"target": "es6", | ||
"noImplicitAny": false, | ||
"moduleResolution": "node", | ||
"outDir": "dist", | ||
"baseUrl": ".", | ||
"paths": { | ||
"*": ["node_modules/*", "src/types/*"] | ||
} | ||
}, | ||
"include": ["src/**/*"] | ||
} |
Oops, something went wrong.