• Stars
    star
    164
  • Rank 229,357 (Top 5 %)
  • Language
    PHP
  • Created about 15 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kohana user guide and live API documentation module

Kohana - userguide module

ver Stable Develop
3.3.x Build Status - 3.3/master Build Status - 3.3/develop
3.4.x Build Status - 3.4/master Build Status - 3.4/develop

What needs to be done?

Most articles are stubs, with a couple links to pages to be used as a reference when writing the page. The idea is to use the information on those links to help write the new ones. Some of the old userguide pages can probably be mostly copied, with a few improvements, others will be better to be completely rewritten. If you ever have questions, please feel free to jump in the kohana irc channel.

Guidelines

Documentation should use complete sentences, good grammar, and be as clear as possible. Use lots of example code, but make sure the examples follow the Kohana conventions and style.

Try to commit often, with each commit only changing a file or two, rather than changing a ton of files and commiting it all at once. This will make it easier to offer feedback and merge your changes. Make sure your commit messages are clear and descriptive. Good: "Added initial draft of hello world tutorial." Bad: "working on docs".

If you feel a menu needs to be rearranged or a module needs new pages, please open a bug report to discuss it.

A brief explanation of how the userguide works:

The userguide uses Markdown and Markdown Extra for the documentation. Here is a short intro to Markdown syntax, as well as the complete guide, and the things Markdown Extra adds. Also read what the userguide adds to markdown at the end of this readme.

Userguide pages

Userguide pages are in the module they apply to, in guide/<module>. Documentation for Kohana is in system/guide/kohana and documentation for orm is in modules/orm/guide/orm, etc.

Each module has an index page at guide/<module>/index.md.

Each module's menu is in guide/<module>/menu.md.

Images

Any images used in the userguide pages must be in media/guide/<module>/. For example, if a userguide page has ![Image Title](hello-world.jpg) the image would be located at media/guide/<module>/hello-world.jpg. Images for the ORM module are in modules/orm/media/guide/orm, and images for the Kohana docs are in system/media/guide/kohana.

API browser

The API browser is generated from the actual source code. The descriptions for classes, constants, properties, and methods is extracted from the comments and parsed in Markdown. For example if you look in the comment for Kohana_Core::init you can see a markdown list and table. These are parsed and show correctly in the API browser. @param, @uses, @throws, @returns and other tags are parsed as well.

What the userguide adds to markdown:

In addition to the features and syntax of Markdown and Markdown Extra the following apply to userguide pages and api documentation:

Namespacing

The first thing to note is that all urls are "namespaced". The name of the module is automatically added to links and image urls, you do not need to include it. For example, to link to the hello world tutorial page from another page in the Kohana userguide, you should use [Hello World Tutorial](tutorials/hello-world) rather than (kohana/tutorials/hello-world). To link to pages in a different section of the guide, you can use ../, for example [Cache](../cache/usage).

Notes

If you put [!!] in front of line it will be a note, put in a box with a lightbulb.

[!!] This is a note.

Headers automatically get IDs

Headers are automatically assigned an id, based on the content of the header, so each header can be linked to. You can manually assign a different id using the syntax as defined in Markdown Extra. If multiple headers have the same content, like if more than one header is "Examples", only the first will get be automatically assigned an id, so you should manually assign more descriptive ids. For example:

### Examples     {#header-id-examples}

API links

You can make links to the api browser by wrapping any class name in brackets. You may also include a function and it will link to that function. All of the following will link to the API browser:

[Request]
[Request::factory]
[Request::factory()]

If you want to have parameters, only put the brackets around the class and function (not the params), and put a backslash in front of the opening parenthesis.

[Kohana::$config]\('foobar','baz')

Including Views

You may include a view by putting the name of the view in double curly brackets. If the view is not found, no exception or error will be shown! The curly brackets and view will simply be shown an the page as is.

{{some/view}}

More Repositories

1

kohana

Basic application with official modules included
PHP
1,545
star
2

core

Core system classes from Kohana
PHP
635
star
3

database

A Kohana module for database interactions, building queries, and prepared statements
PHP
159
star
4

orm

Kohana ORM
PHP
159
star
5

minion

Everyone loves having a minion they can boss around
PHP
113
star
6

unittest

PHPUnit integration for Kohana
PHP
111
star
7

auth

Auth module for Kohana v3
PHP
103
star
8

image

A Kohana module for manipulating images
PHP
103
star
9

cache

Cache library for Kohana 3
PHP
78
star
10

kohanaframework.org

Kohana Framework main website
PHP
65
star
11

coding-standards

PHPCS rules for the Kohana framework
PHP
58
star
12

ohanzee-helpers

PHP
56
star
13

codebench

A benchmarking module for Kohana 3.x
PHP
32
star
14

Kohana.tmbundle

A TextMate bundle for Kohana v3
30
star
15

ohanzee

Website for Ohanzee project
CSS
15
star
16

cascading-filesystem

A virtual filesystem formed from merging multiple directories
PHP
13
star
17

ohanzee-router

Router component for Ohanzee
9
star
18

kohana-ci

kohana-ci
Shell
8
star
19

kohana.github.com

Github user page for Kohana PHP Framework
PHP
7
star
20

ohanzee-request

Ohanzee component for HTTP Request and Response wrapping
7
star
21

kohana2

Archive repo for Kohana2 framework - NOT MAINTAINED
PHP
7
star
22

Kohana-Redmine

Kohana's Redmine changes
Ruby
6
star
23

koharness

Create test harnesses for Kohana modules by building a clean application container with all dependencies
PHP
5
star
24

ohanzee-db

Ohanzee database component
PHP
3
star
25

doctrine

Doctrine integration for Kohana
PHP
3
star
26

chef-redmine

Redmine Recipe for Kohana
Ruby
2
star
27

vanilla-theme-kohana

Kohana's Vanilla Theme
PHP
1
star