[ 5 posts ]

Steven Olmsted

YUI Contributor

  • Username: solmsted
  • Joined: Wed Apr 14, 2010 1:47 pm
  • Posts: 82
  • Location: Richmond, VA
  • GitHub: solmsted
  • Gists: solmsted
  • IRC: solmsted
  • Offline
  • Profile

API Documentation

Post Posted: Thu Dec 08, 2011 5:38 pm
+0-
yuidocjs https://github.com/apm/yuidocjs is seriously awesome. I've started using it to document my gallery modules and I have a couple questions. So far, I let it generate an api directory in the module's directory and I check it in with the source. I see other modules take different approaches to api docs; is there a best practice or recommended way to provide documentation?

Is there a way I can get GitHub to serve the index file as text/html? Github is already publicly hosting the files, it would be great if it was a functional website.

Is there a way to get yuidocjs to reference more stuff when it builds documentation? For example when my module extends Y.Base, it doesn't pull in inherited attributes/events/methods and the link to the Base class documentation becomes a broken link. I would like it to be able to reference Y.Base without having to include all of YUI's source in my documentation. It would be very nice if it could just pull it from yuilibrary.com.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: API Documentation

Post Posted: Fri Dec 09, 2011 8:35 am
+0-
You should use my fork, it's actually up to date and what we use to generate the docs for this site:

https://github.com/davglass/yuidocjs

You should clone this, then grab the newtheme branch to get all the goodies we have here.

You can host your API docs on your Github pages (free html hosting):

http://pages.github.com/

Ben Cochran

YUI Contributor

  • Offline
  • Profile
Tags:

Re: API Documentation

Post Posted: Fri Jan 20, 2012 11:34 am
+0-
I was wondering about the fork. There are a couple of bugs that have been fixed on the apm branch (https://github.com/apm/yuidocjs/issues/5 and https://github.com/apm/yuidocjs/issues/12) that are keeping us from rolling this out using your fork. Any plans to merge those fixes over?

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: API Documentation

Post Posted: Fri Jan 20, 2012 1:15 pm
+0-
I don't monitor the upstream fork since Adam is no longer on our team. My fork is the one that should be used and issues should be filed there. Adam's code is ~5 months (Sep 2011) behind mine. I would have to walk through all his commits to see what I can and can not accept.

labixiaoxin

Re: API Documentation

Post Posted: Tue Jul 03, 2012 7:15 pm
+0-
I want to say thank you a lot for the job you have made in writing this piece of writing. I am hoping the same most reliable work from you down the road too.
  [ 5 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum