mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-09 22:00:52 +08:00
* 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>
35 lines
740 B
JSON
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"
|
|
}
|
|
}
|