Do you like the ColdFusion Cookbook site? Are you bored to tears and want something only marginally less boring to do?
Today I added a cool feature to the Cookbook. (Added it locally I mean.) The new feature will scan cookbook answers for CFML functions and tags. When it finds it, it will automatically hot link to live docs. It will also add a new section called "Referenced CFML" (or some such) with an alphabetical list of tags/functions (again, hyperlinked).
To drive this, though, I need a static list of functions and tags. I'm driving this through XML now. Here is what I have so far:
<cfml>
<functions>
<function label="createUUID()" url="http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000436.htm##1102827" />
</functions>
</cfml>
As you can see, each function has a label and a url. The label is in the camel case I prefer. Obviouslly tags will be in a tags/tag section.
So what do I need? If you are incredibly bored, go to the pages in livedocs that list out all the functions and all the tags, and create the XML for them.
I know - you need to be crazy bored to do this - but I figure it can't hurt to ask. If you want to do this, please post a comment. Something like, "I'll do all functions, A-C". That way people won't duplicate the work. Be sure to copy the link on the listing page. I believe the URL you see on the page itself won't work due to the fancy JS stuff they have there. (I really wish they would go back to "simple" pages. Ever since the fancy JS stuff was added the site seems a bit... wierd at times. Although I'd keep the comments in.) Anyway, everything clear? Let me know if not. I will give credit to my submitters. That won't buy you much, but you can at least say you helped build the site. :)
Archived Comments
You might want to show how to navigate around to get the right urls. As I navigate livdocs, my Address doesn't change.
Wow, it took me about a week, but all tags are in your mail. I'll do all functions now.
Ray - Another way to get the information would be from Ben Forta's LiveDocs IM BOT. You enter a tag or funciton into IM and it spits back the URL.
Here's the URL for info on Ben's bot.
http://www.forta.com/blog/i...
My script didn't work quite the same with the functions ... I may get to that tomorrow.
Cheers
Fantastic stuff! Thanks again Raymond!
And congrats to Damon and Irina for forthcoming child!
Rob G sent the tags - now we just need some functions. :)
Guys - I think we have them all now. Thanks to Run G and Jim C.
Run is an unusual name; can I at least be Ron?
Nope, sorry, your new name is Run. (Seriously, sorry about that.)
Would that by "Run GMC" now? (sorry, bad pun day for me :)
I did something similar as a Dreamweaver extension, although I did not update the functions XML file to version 7 yet. http://www.tom-muck.com/ext...
The xml files are easy to create if you simply take the HTML contents page files in the Livedocs and run a regular expression on them to turn them into XML format of your choosing.
Tom
That will be a great feature to the cookbook.
It would be very cool if Adobe would provide livedocs as an XML file. Would open up a number of possibilities for IDEs/
Just an FYI, but I'm 80% done with the feature. I ran into some regex issues I plan on blogging about. (Not a bug, but a mistake on my part that I think others may make as well.) I'm hoping to deploy this later in the week. I will also write a blog entry on auto-hotlinking in general, as I bet others would like to add this kind of feature to their web site.