33 Commits
Author SHA1 Message Date
Andrey Sitnik 37d5d4b611 Merge pull request #216 from davidtheclark/patch-8
Update API.md
2015-02-17 09:45:30 +03:00
David Clark 3a9c297c11 Update API.md
Missed a couple of method qualifiers.
2015-02-16 19:15:34 -07:00
David Clark 2e39fa1702 Update API.md
next/previous corresponds with last/first in that sentence.
2015-02-16 19:09:37 -07:00
David ClarkandAndrey Sitnik 9d81635c7a Simplify API's root.toResult() description
Just saying it returns a Result captures it, right?
2015-02-16 13:15:26 +03:00
Andrey Sitnik 8637fdc6b1 Add missed Root#toResult docs to API.md 2015-02-16 13:15:26 +03:00
Andrey Sitnik 1ae5203631 Clean up API.md 2015-02-16 13:15:26 +03:00
Andrey Sitnik 76b9dae250 Clean up code 2015-02-16 13:15:26 +03:00
Roman VanesyanandAndrey Sitnik ee6a0bf1cb Update API.md 2015-02-16 13:15:26 +03:00
David ClarkandAndrey Sitnik 776424ee41 Edits from Root node to end
I made it all the way through. Some edits are above Root node because I tried to clean up the links a little bit, to make it easier to just throw in links to different parts of the documentation,  and address some of the clarifications you made.
2015-02-16 13:14:25 +03:00
Andrey Sitnik 90704479f8 Make temporary description for fast option 2015-02-16 13:14:25 +03:00
Andrey Sitnik 89dfe071a2 Clean up typography in API.md 2015-02-16 13:14:25 +03:00
David ClarkandAndrey Sitnik 8ec63f3f64 Edits to API docs
Here is installment two of edits -- this time up to `Root` node ~ line 840. I have more points for you think about, too:

Documentation style concerns:

- This time I tried to clarify the headings (which will also clarify their # links) by prefixing properties and methods with a reference to the thing they're attached to. Please look that over and see if you like it, or if there is another style that you would prefer. I think that *something* has to be there ---- for instance, to differentiate one `map` from another. Otherwise, links won't be reliable and you will have to scroll up to see which section you are in to understand which method you are looking at.
- Notice that on 667 (and some following places) I added `[]` brackets around an optional argument. I think that it is important to distinguish optional arguments. I also think that it would be important to document the expected types of each argument (e.g. string, array of strings, boolean) for every method. That would be fastest I'm sure if you did it, @ai, since you know the API best.

Clarification:

- The list module examples seem weird to me. Are those real use cases?
- The last `node.source` example also seems weird given the text above it. Shouldn't it illustrate cloning a node, or setting its source manually?
- I don't understand the `defaultType` stuff with `node.style()`, ~538.
- I don't understand what 550-551 mean (about containers).
- See line 768: I don't understand the `fast` option --- what was there before did not make sense to me.

If you could clear up all those points, that would be great. At some point I will try to finish the rest (it's a *long* document!)
2015-02-16 13:14:25 +03:00
Andrey Sitnik 5269895712 Rewrite README.md 2015-02-14 10:59:59 +03:00
Andrey Sitnik 5aba3d6ab3 Fix holy 80 columns line 2015-02-13 12:28:41 +03:00
Andrey Sitnik 7bab0ce330 Change titles type in API.md 2015-02-13 12:25:26 +03:00
David Clark 5741c40d0e Proposed edits for first 175 lines
I just read the first 175 lines tonight and proposed changes. I also have a few questions:

- Have you thought about documenting more specifics about parameters, e.g. expected types, whether they're optional or not, and defaults? That information is generally useful.

- I'm not certain whether my change at line 131 is fully accurate --- please have a look (presumably you'll look at all the changes.)

Nice job @ai. If you think this was useful I will look at the rest of the doc next chance I have! If there's anything you'd like me to do differently, just let me know.
2015-02-12 20:33:28 -07:00
Andrey Sitnik 32ca13bcc8 Clean up API.md 2015-02-12 10:03:15 +03:00
Andrey Sitnik f112f3b655 Typo in API.md 2015-02-12 09:29:24 +03:00
Andrey Sitnik bb4aa9e786 Add TOC to API.md 2015-02-12 09:21:11 +03:00
Andrey Sitnik 85eab4aa99 Moce missed content from README.md 2015-02-12 09:14:25 +03:00
Andrey Sitnik e3386c7d23 Add Declaration node to API.md 2015-02-11 14:41:36 +03:00
Andrey Sitnik 35ca809269 Add Rule node to API.md 2015-02-11 14:16:26 +03:00
Andrey Sitnik 3ca40943ec Add AtRule node to API.md 2015-02-11 13:53:53 +03:00
Andrey Sitnik c8afe3ce01 Add Root node to API.md 2015-02-11 13:29:45 +03:00
Andrey Sitnik 634cf04da8 Add docs for containers common methods 2015-02-11 13:17:48 +03:00
Andrey Sitnik 97b7c585c1 Add Nodes common method to API.md 2015-02-11 10:31:53 +03:00
Andrey Sitnik f55cb6796e Add Input class to API.md 2015-02-11 09:36:55 +03:00
Andrey Sitnik 7cbfb7c607 Add List module to API.md 2015-02-11 09:22:00 +03:00
Andrey Sitnik 454f320721 Clean up API.md 2015-02-11 09:17:27 +03:00
Andrey Sitnik 6b0d7d2191 Add Result class to API.md 2015-02-10 22:12:23 +03:00
Andrey Sitnik f85062f23e Fix API.md titles 2015-02-10 21:51:57 +03:00
Andrey Sitnik 35b0b5f1c9 Add PostCSS class to API.md 2015-02-10 21:50:56 +03:00
Andrey Sitnik 2468a1d1b2 Start API.md 2015-02-10 21:27:12 +03:00