Giter VIP home page Giter VIP logo

docs's Introduction

CakePHP Documentation

This is the official documentation for the CakePHP project. It is available online in HTML, PDF and EPUB formats at http://book.cakephp.org.

Requirements

You can read all of the documentation within as its just in plain text files, marked up with ReST text formatting. To build the documentation you'll need the following:

  • Make
  • Python
  • Sphinx
  • PhpDomain for sphinx

You can install sphinx using:

easy_install sphinx

You can install the phpdomain using:

easy_install sphinxcontrib-phpdomain

To run the easy_install command, the setuptools package must be previously installed.

Building the Documentation

After installing the required packages, you can build the documentation using make.

# Create all the HTML docs. Including all the languages.
make html

# Create just the English HTML docs.
make html-en

# Create all the EPUB (e-book) docs.
make epub

# Create just the English EPUB docs.
make epub-en

# Populate the search index
make populate-index

This will generate all the documentation in an HTML form. Other output such as 'htmlhelp' are not fully complete at this time.

After making changes to the documentation, you can build the HTML version of the docs by using make html again. This will build only the HTML files that have had changes made to them.

Building the PDF

Building the PDF is a non-trivial task.

  1. Install LaTeX - This varies by distribution/OS so refer to your package manager. You should install the full LaTeX package. The basic one requires many additional packages to be installed with tlmgr
  2. Run make latex-en.
  3. Run make pdf-en.

At this point the completed PDF should be in build/latex/en/CakePHPCookbook.pdf.

Contributing

Contributing to the documentation is pretty simple. Please read the documentation on contributing to the documentation over on the cookbook for help.

There are currently a number of outstanding issues that need to be addressed. We've tried to flag these with .. todo:: where possible. To see all the outstanding todo's add the following to your config/all.py

todo_include_todos = True

After rebuilding the HTML content, you should see a list of existing todo items at the bottom of the table of contents.

You are also welcome to make and suggestions for new content as commits in a GitHub fork. Please make any totally new sections in a separate branch. This makes changes far easier to integrate later on.

Translations

Contributing translations requires that you make a new directory using the two letter name for your language. As content is translated, directories mirroring the english content should be created with localized content.

Generating Meta Tags

If you are providing translations and want to automatically generate meta tags for the resulting HTML files, a MetatagShell is provided in the scripts folder of this repo. In order to use it, copy it into any CakePHP 2.0 empty application inside app/Console/Command, execute Console/cake metatag and follow the instructions.

The script will process all the files under one of the translation folders and generate the possible description terms using an external API, it is a good idea to go over the generated terms and clean-up whatever noise it might have generated.

Making Search Work Locally

  • Install elasticsearch. This varies based on your platform, but most package managers have a package for it.
  • Clone the docs_search into a web accessible directory.
  • Modify searchUrl in themes/cakephp/static/app.js to point at the baseurl for your docs_search clone.
  • Start elasticsearch with the default configuration.
  • Populate the search index using make populate-index.
  • You should now be able to search the docs using elasticsearch.

docs's People

Contributors

aavrug avatar ad7six avatar admad avatar alanfgh avatar azur29 avatar bcrowe avatar cake17 avatar ceeram avatar danielpk avatar dmcnascimento avatar gr-terada avatar hiromi2424 avatar houseoftech avatar huoxito avatar imsamurai avatar jrbasso avatar lorenzo avatar markstory avatar predominant avatar ravage84 avatar rchavik avatar renan avatar shama avatar simplycorey avatar steinkel avatar suzuki avatar tarcisio avatar vitorpacheco avatar vlad-shatskyi avatar zuborawka avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.