-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind issues to documentation #13
Comments
If u guys talk about issues from Here(github) |
That would be awesome! We need to talk more about this, seems promising. |
what you guys think about this idea here? |
We have some ways to do it. PHPUnit already has a But how we are going to know the full URL of that ticket? PS: already mentioned the need of project information provided by Foundation in issue #4 |
+1 for |
yes, a Project does not use more then one bug track but docs need handle with whatever bug track the team use for it. |
As seen on #17 this could be done like this: <?php
$doc = new Respect\Doc();
$doc->fromSources('src/*.php')
->fromTests('/test/*Test.php')
->fromPackages('composer.json', 'phpunit.xml')
->withIssuesOn('http://github.com/Respect/Doc/issues/%s')
->generate(); Just a @iannsp Couldn't agree more with you on making Doc "usable" by any project #happypanda |
And why not |
Why not!? I like the idea of a PS: don't know about the decorator, we certainly don't need that pattern there. |
Decorator +1. (more like a fluent composite builder meta-programmed =P) Also, did you noticed the find() and ->methods? 8-) |
Of course I noted, hard to pass this API things through my eyes without smiling these days =P |
guys. <?php
$doc = new Respect\Doc();
$doc->fromSources('src/*.php')
->fromTests('/test/*Test.php')
->fromPackages('composer.json', 'phpunit.xml')
->versionIn(new Github('respect/doc')) // or new SVN('/home/iann/Project/Respect/Doc')
->generate(); |
I almost forgot to note the fact if I use |
Just a note: @alganet likes to use builders in that fluent way, this means every magic method is a builder for a given class. If we carefully name the classes, we can reach then by the magic method call name. All projects on Respect follows these rules on fluent interfaces, so you don't have to use it that way (fluently) and better: you don't have to test it that way (it would suck hard!). Try and have a look at Rest ou Validation for instance. Relational is another good candidate also =P |
Just another note: I hate builders. And I know that "Hatters gonna die", but using builder+fluent interface really makes sense and is a beautiful usage of the pattern. |
its like a ;) |
@iannsp Yes as @augustohp is mentioning @alganet's example has tricks up its sleeves =) <?PHP
$doc->fromSources($a)->fromTests($b)->withGithub('Respect/Doc'); Would usually mean an interface there somewhere and the I have just testet it and the following work hehehehe =) <?PHP
$doc->fromSources($a)->fromTests($b)->withBitBucket('Respect/Doc');
$doc->fromSources($a)->fromTests($b)->withSourceForge('project/RespectDoc');
$doc->fromSources($a)->fromTests($b)->withTwitter('#phprespect'); Someone must just do the find, panda's anywhere? |
This is an idea me and @alganet talked just a little today.
It would be useful to have some king of pattern to write issue titles, so we can bind them to the documentation and tests somehow. This allied with fossil-scm would be awesome++!
The text was updated successfully, but these errors were encountered: