How is Yii's API documentation generated?
#1
Posted 01 November 2009 - 09:06 AM
#2
Posted 01 November 2009 - 01:04 PM
#3
Posted 02 November 2009 - 03:11 AM
#4
Posted 04 November 2009 - 03:35 AM
Ok, found text files in /trunk/docs/guide and latex command to generate .tex files, but still cant find code responisble for managing it and viewing it like on Yii guide..
This post has been edited by spamec: 04 November 2009 - 03:47 AM
#5
Posted 04 November 2009 - 03:51 AM
spamec, on 04 November 2009 - 03:35 AM, said:
I had a look through it just now, i think you do this to generate the api.
1. Add build to your path config for your environment variables if you are using windows. Run cmd.exe and type in the command line interface "build api <path> <mode>" without the quotes.
path is the path you want the api to be generated to and mode is whether the api is for online or offline use which is optional.
php:
foreach(array('cat', 'dog', 'cow') as $animal) echo $animal."\n";
python:
[(animal, print(animal)) for animal in ['cat', 'dog', 'cow']]
ruby:
['cat', 'dog', 'cow'].each {|animal| puts animal}
You say Tomato, I say Tomato.
#6
Posted 04 November 2009 - 04:02 AM
#7
Posted 04 November 2009 - 05:11 AM
http://code.google.com/p/yiidoc
#9
Posted 04 November 2009 - 08:30 AM
At yiiframework.ru we are using modified code that is bundled with yiidoc project. I've made a few image path fixes, added some features like translation actuality checking and refactored it.
#10
Posted 04 November 2009 - 08:31 AM
#11
Posted 04 November 2009 - 08:45 AM
Take a look at build.xml (this is used by "phing" tool) under "doc" target to know how to use these tools.
#13
Posted 07 December 2010 - 11:31 AM
Worked fine with phpdoc ver 3.4.15
By the way, is it possible to use this tool to create docs for my own projects?
#14
Posted 07 December 2010 - 12:07 PM
#15
Posted 07 December 2010 - 01:34 PM
I changed ApiCommand.php line 125
$model=$this->buildModel(YII_PATH,$options);
to my own path and now I'm having a terrible amount of response text in shell. It's so big - I can't see the beginning of the error and don't know the reason.
I was wondering maybe smb else ( eg the gen author
#16
Posted 07 December 2010 - 01:41 PM
It's last release was in 2008, it's written in php4, it has own gui and I had to examine the source to create my own console wrapper around it.
Though, it was about a year ago and I can be mistaking.

Help
This topic is locked













