• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red Docs] How should Red be documented

DocKimbel
4-Dec-2012
[71]
Gregg: documenting the API (the Red words) is the easy part. The 
content could (should?) be extracted from the docstrings in boot.red 
(I haven't add any so far, contributions are welcome).


The level of info displayed by the clojuredocs quickref is fine to 
me, I have used similar approach in the past for documenting the 
RSP API: 

http://cheyenne-server.org/docs/rsp-api.html
Arnold
4-Dec-2012
[72x2]
Oldes, really nice popups with copy paste. Much better. Hard to believe 
you need a cheatsheet off-course ;-)
So the Red docs are not makedoc(2) specific. You only want to be 
sure that they are in a format that can be handled using scripts 
like makedoc123 and generate all kinds of documenttypes, like webpages, 
pdf, (epub?) etc. If I understand correct.
DocKimbel
4-Dec-2012
[74]
Makedoc would be the source format for the docs, the users would 
consume it in one of the exported formats available.
Gregg
4-Dec-2012
[75x2]
Looking more at sencha/ext-js and closuredocs, I like aspects of 
both. Sencha has some very nice detail pages, and closuredocs has 
a clean feel, with easy ways to add examples, see also entries, and 
comments.
Now I have to re-learn fetching the upstream master to my fork...
Andreas
4-Dec-2012
[77x3]
Gregg: unless you actually want to push changes to your fork on Github, 
there's usually no need to maintain a "fork" on Github.
If you meant how to get the latest changes from Nenad's master into 
your local repository, that could/should be as easy as `git pull`.
(Depending on where you originally "cloned" from.)
Gregg
4-Dec-2012
[80]
I'm trying the github Windows client, which should sync, but only 
have my fork in it right now. I thought the target workflow (in general) 
was to fork, push to that, then submit a pull request. My problem 
is spending little time on it, then letting it sit idle while it 
leaks out of my brain.
Andreas
4-Dec-2012
[81x2]
Yeah, fork + push to fork + pull request is one typical contribution 
workflow.
However, if you just want to follow along with the updates, then 
you don't need your own fork and can just sync a local clone of Nenad's 
repository.
Gregg
4-Dec-2012
[83]
But I should fork+push+pull-req if I want to, say, add comments to 
%boot.red.
Andreas
4-Dec-2012
[84]
Yep.
Pekr
5-Dec-2012
[85x2]
I don't want red docs, I want black&white ones :-)
My take is as follows:


- I like REBOL Word Browser - it contains even examples, is then 
easy to produce runnable examples (Easy VID), allows comments

- REBOL reference manual is good enough. I can't see any advantages 
with Clojure etc. - imo no need to copy anyone - just make a structures, 
which allow you to register related functionalities, add comments, 
examples

- I agree with Doc, that first Doc which should appear is some guide, 
which leads you via introduction to language, its main ideas and 
concepts, etc.
- word reference shoudl be auto generated imo .....
Gregg
5-Dec-2012
[87]
I thought of the Word Browser as well Petr, and agree with your comments. 
On ClojureDocs, though, my thought is that the main structure is 
the auto-generated part, and the comments and examples are added 
to that.
Pekr
5-Dec-2012
[88]
That might work. I wonder about some functionality removal - what 
happens with related docs then? Is there going to be any versioning? 
Some good notes might be lost that way ...
Gregg
5-Dec-2012
[89]
Marking things as obsolete, and/or moving them to an archive area 
makes sense.
NickA
6-Dec-2012
[90x3]
I don't have a preference for format, but I think some way to cross 
reference related functions is critically important.  Reference documentation 
is essential, with extensive examples, then with that in place, cross 
reference links are a natural way to explore language functions. 
 It's natural to think "How do I..." when learning, and exploring 
related functionality is an intuitive way to learn.  Once function 
reference, examples and cross reference links are done, then a cookbook 
is a natural step, and then various tutorials aimed at different 
levels and interests.
The online REBOL dictionary and the Word Browser are both effective 
formats for cross referencing.  Something like Carl's REBOL manual 
is essential to get things started.
A wiki seems like the best way to get community help collecting examples 
of function use.
Arnold
6-Dec-2012
[93x2]
A wiki lowers the barrier to contribute, best would be if it were 
possible to import the added pearls to the 'official' docs.
Don't know if you know http://learnyousomeerlang.com/and where it 
was derived from http://learnyouahaskell.com/that kind of a site 
would be cool for REBOL/Red.
Henrik
7-Dec-2012
[95]
Should this group not be public?
DocKimbel
7-Dec-2012
[96]
No problem for making it public.
Henrik
7-Dec-2012
[97]
Not sure if this is enough. Changed the title.
Gregg
9-Dec-2012
[98]
On docs, in one of my dreams, I see another category along with Example 
and See Also: Tests. Make it easy for people to contribute tests 
(and expected results).
AdrianS
9-Dec-2012
[99]
Agree that examples are a must have. I see way too many reference 
sites that just show an API along with a brief description. Even 
when these are very nicely presented, they leave me wanting. Seeing 
an APIs in action makes a huge difference to me, but of course the 
work of creating examples should come from the community.
james_nak
12-Dec-2012
[100]
Gregg, that's a good dream and very meaning for learning. The figuring 
out of why something doesn't work is so powerful especially when 
one thinks it should.
Chris
11-Jan-2013
[101x2]
<from #Red>
A document would be trickier as you'd need to manage line spacing, 
paragraph spacing, splitting paragraphs/docs over pages.
Henrik
11-Jan-2013
[103]
Yes, it managed only a single page, and yes, the hard part is flow 
of paragraphs across pages, not generating multiple pages in itself.
Chris
11-Jan-2013
[104x2]
(that'd be page breaks, indeed)
You'd need to be able to measure as you go...
Henrik
11-Jan-2013
[106x2]
I'd still think that doing it in the graphics engine is simpler than 
in PDF. For R3, someone is probably going to do it anyway.
and I hope DRAW or similar will be available for Red.
Kaj
11-Jan-2013
[108]
It will
Henrik
12-Jan-2013
[109]
cool :-)
Pekr
12-Jan-2013
[110]
Kaj - sounds like sure thing but also news for me :-) AFAIK you and 
Doc were not much interested in bringing View to Red. Well, unless 
you mean DRAW equivalent done using different engine ...
DocKimbel
12-Jan-2013
[111:last]
Pekr: DRAW is a dialect for 2D vector drawings.