# cssindepth2nd **Repository Path**: superjrun/cssindepth2nd ## Basic Information - **Project Name**: cssindepth2nd - **Description**: 深入解析CSS 第二版,学习笔记 - **Primary Language**: CSS - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-11-25 - **Last Updated**: 2024-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CSS深度解析,第二版 学习笔记 [开始阅读](./docs/SUMMARY.md) ## 关于本文 > 原书是CSS权威Keith J. Grant的第二版,主要介绍CSS的基础知识。 > 本文翻译而成的学习笔记,仅供个人学习使用. ## 原书 - **书名**:《CSS深度解析,第二版》(_CSS in Depth, Second Edition_) - **作者**:Keith J. Grant - **前言作者**:Chris Coyier - **出版社**:Manning - **出版地**:Shelter Island - [下载地址](https://salttiger.com/css-in-depth-2nd-edition/) - [网址](https://www.manning.com/books/css-in-depth-second-edition) - [代码](https://github.com/CSSInDepth/css-in-depth-2) ## 翻译过程 - 获取原书epub - 使用epub2md转换成 markdown页面 ```bash # 安装epub2md npm install epub2md # epub转换成markdown epub2md CSSinDepth.epub ``` - 全文翻译 - 整理成Markdown格式 - 发布到Gitee ## 电子书制作 ### 安装 - 克隆项目 ```bash $ git clone https://gitee.com/superjrun/cssindepth2nd.git ``` - 安装依赖 ```bash $ npm install honkit -g ``` - 运行服务 ```bash npm run serve # Serving book on http://localhost:4000 ``` - 访问 访问 http://localhost:4000 ### 生成pdf/epub ```bash # Generate a PDF file $ honkit pdf ./ ./mybook.pdf # Generate an ePub file $ honkit epub ./ ./mybook.epub # Generate a Mobi file $ honkit mobi ./ ./mybook.mobi ``` > 注意:生成电子书(epub, mobi, pdf)需要安装ebook-convert ### 安装ebook-convert > 下载 [Calibre 应用程序](https://calibre-ebook.com/download)。将 Calibre.app 移动到 Applications 文件夹后,创建一个指向 ebook 转换工具的符号链接: 或者 >通过Homebrew安装 ```bash brew install --cask calibre ``` >创建转换工具链接 ```bash sudo ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin ``` [开始阅读](./docs/SUMMARY.md)