Files
hello-algo/epub/package.json
O 091afd38b4 add epub generator (#1831)
* add epub generator

* improve parser, keep images

* check epub after generate

* fix render math content error in block

* render \dots as ...

* render \lfoor and \rfloor

* use monospaced font to render code block

* render code block with syntax highlight

* adjust title render

* fix render LaTeX

* fix '!!! abstract' render

* render code block in flow

* include whole class when not specifiy function

* command line to build other language

* update README

* fix process python code example

* support build en, ja and zh-hant

* add '--all' option to build all version

* use branch docs to build epub

* fix title and toc render

* build epub file with name like 'hello-algo_{zh}_{cpp}.epub

* fix render LaTeX

* optimize style

* use math font

* fix extract code block

* add border for code block

* fix python code style

* fix page break

* try git pull first when build epub

* ajust title level of chapter section

* Update epub styles

* Update epub styles

* Update convers and fonts.

* Convert code comments and README into English.

* Update the output dir.

* Add code reviewers on the cover.

* Support multi language for the reviewer names.

* Update .gitignore

---------

Co-authored-by: krahets <krahets@163.com>
2025-12-30 08:23:31 +08:00

35 lines
740 B
JSON

{
"name": "hello-algo-epub",
"version": "1.0.0",
"description": "Convert Hello Algorithm docs to EPUB",
"main": "dist/index.js",
"scripts": {
"build": "ts-node src/index.ts"
},
"keywords": [
"epub",
"markdown",
"ebook"
],
"author": "",
"license": "MIT",
"dependencies": {
"@types/commander": "^2.12.0",
"adm-zip": "^0.5.10",
"commander": "^14.0.2",
"epub-gen": "^0.1.0",
"fs-extra": "^11.2.0",
"highlight.js": "^11.11.1",
"js-yaml": "^4.1.0",
"marked": "^11.1.1",
"path": "^0.12.7"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.11.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}