cakephp的文档是用一个叫sphinx程序生成的 这个程序是python写的,所以我们要用sphinx本机必须先装python。

编译过程在Ubuntu下进行,默认Ubuntu已经安装了python, 命令行下依次执行

sudo apt-get install python-setuptools
sudo apt-get install easy_install
easy_install sphinx
easy_install sphinxcontrib-phpdomain

最后把cakephp的官方文档下载到本地.

git --clone https://github.com/cakephp/docs.git
#根目录执行
cd docs
make html
#或者使用下面的命令,只编译en目录,就是英文的HTML文档,
make html-en

编译完成后最终根目录下多出个build目录,打开html/en/index.html。

页面和官网一模一样!http://book.cakephp.org/2.0/en/index.html

执行make实际运行的是Makefile文件,在windows下是make.bat批处理, 不过遗憾的是cakephp官方人员并没有提供bat文件。

关于这个问题,我壮着胆子还专门发邮件问了cakephp的作者Mark Story,没想到过了两天给我回信了,内容贴给大家看:

Unfortunately I've never tried to build the docs under windows. There is some support from sphinx (the tool we use to build the docs) for windows. But the additional customizations we've done to make it easy to build all the languages etc were never ported to windows as most people working on the docs don't use windows.

-Mark

On 2013-07-04, at 12:09 AM, Finley Fei Ma
wrote: > Hi, Mark,
> I am a CakePHP fan also a PHP developer from China, recently I am studying the CakePHP doc, I meet a problem, I don’t know how to build the document under the Windows operating system, there is a Makefile, looks like it only can run under Linux. So must I install a Linux operating system?
>
> Regards,
> Finley

最新文章

  1. 28. 字符串的排列之第1篇[StringPermutation]
  2. Python 之WEB前端插件
  3. IOS开发证书变成“此证书的签发者无效”解决方法
  4. JAVA 实现通过URL下载文件到本地库
  5. 我的vim配置
  6. Windows server2008 搭建ASP接口访问连接oracle数据库全过程记录--备用
  7. uva 10026 Problem C: Edit Step Ladders
  8. 使用curl来调试你的应用
  9. ARP欺骗攻击
  10. jquery中点击切换的实现
  11. 微信公众平台开发教程(三)_OAuth2.0认证
  12. docker学习构建镜像---第三章节
  13. c/c++ 整形转字符串
  14. 彻底搞清楚Java并发 (一) 基础
  15. Leuze BCL308i 使用方法整理
  16. JavaScript DOM大纲
  17. python实现HTTP代理的思路和Demo
  18. Neo4j 使用cypher语言进行查询
  19. mongodb研究(mongodb 内存数据库)
  20. JS判断备忘

热门文章

  1. HDU 5724 Chess(SG函数)
  2. git branch 进入编辑状态
  3. 【转】Android单帧动画Rotate旋转
  4. Python常用库之一:Numpy
  5. HDU 1698 【线段树,区间修改 + 维护区间和】
  6. 3springboot:springboot配置文件(配置文件、YAML、属性文件值注入<@Value、@ConfigurationProperties、@PropertySource,@ImportResource、@Bean>)
  7. 说说DBA职责和目标
  8. ARM v8-A 系列CPU的MMU隐射分析
  9. Shader Optimization Tips
  10. UICollectionView的水平流水布局自定义layout