Commit Graph

18 Commits

Author SHA1 Message Date
underscorediscovery
d0666f5a14 docs: add logo to sidebar, fix footer positioning, and switch to em units for responsive consistency 2019-02-06 02:18:24 +00:00
aaronduino
3274b6f0b6 fix: document Fiber.abort null behavior and add Fiber.try/error docs
Add documentation for Fiber.abort accepting null message without raising an error, and introduce new Fiber.try method and error property for capturing runtime errors from fibers.
2017-09-17 04:38:35 +00:00
Rob Warner
4f931f7eb8 fix: correct word order in runtime error documentation sentence 2016-05-04 17:17:20 +00:00
Mathieu Gagnon
daac291a06 fix: add missing constructor to Foo class in error-handling doc sample
The code example in the error-handling documentation was missing a constructor
for the Foo class, which would cause a runtime error when calling Foo.new().
This fix adds the required `construct new() {}` block to make the sample
executable and focus on the intended method-not-found error demonstration.
2016-02-11 23:06:51 +00:00
Bob Nystrom
909c242a03 chore: reorganize doc site structure by moving core docs under modules/ and removing category metadata
Restructure the documentation hierarchy to prepare for documenting additional built-in modules. Move all core library documentation from `doc/site/core/` to `doc/site/modules/core/`, rename `modules.markdown` to `modularity.markdown`, remove `^category` metadata lines from all affected pages, update cross-reference links to use relative paths under the new structure, and add a TODO placeholder to the Class class page.
2015-11-08 21:31:22 +00:00
Bob Nystrom
efcc4d07c7 docs: reorganize language guide into linear narrative with renamed sections and navigation links 2015-11-07 19:09:04 +00:00
Bob Nystrom
2f013b3538 style: standardize example output markers across core docs and classes page 2015-10-18 22:56:52 +00:00
Bob Nystrom
6bda720b71 feat: replace all :::dart code fence markers with :::wren in documentation
Add a custom Pygments lexer plug-in for Wren syntax highlighting, update contributing docs with setup instructions for the lexer, and switch every `:::dart` annotation across all doc/site markdown files to `:::wren` so code examples render with the correct language grammar.
2015-09-22 14:59:54 +00:00
Bob Nystrom
aa72900a9e feat: replace IO class with System class and remove separate IO module
- Delete wren_io.c, wren_io.h, and io.wren source files
- Remove multi-arity print overloads and IO.read/IO.time methods
- Add System class with print, printAll, write, writeAll methods to core.wren
- Update all documentation examples and README to use System.print instead of IO.print
2015-09-15 14:46:09 +00:00
Bob Nystrom
e19ff59cce feat: replace new keyword with this constructor syntax and ClassName.new() calls across core library and docs
Replace all uses of the `new` reserved word with explicit `this new()` constructor definitions and `ClassName.new()` instantiation calls in builtin/core.wren. Update all documentation files (classes.markdown, fiber.markdown, fn.markdown, sequence.markdown, error-handling.markdown, expressions.markdown, fibers.markdown, functions.markdown) to reflect the new constructor syntax, removing `new` keyword examples and replacing them with `ClassName.new()` patterns and `this new()` definitions.
2015-07-10 16:18:22 +00:00
Bob Nystrom
5382fa05d7 feat: allow empty argument list methods in calls, definitions, and docs
- Compile empty `()` as a valid method signature distinct from no parentheses
- Update `call()`, `clear()`, `run()`, `try()`, and `yield()` to use empty argument lists
- Revise documentation across multiple files to reflect new signature semantics
2015-02-27 07:08:36 +00:00
Bob Nystrom
e564621bd5 docs: add initial modules documentation and update error/variable terminology
Create new modules.markdown guide explaining Wren's module system, import syntax, and top-level scoping. Update error-handling.markdown to use "Top-level variable" instead of "Global variable" in error messages. Revise variables.markdown to clarify top-level variable visibility and link to the new modules page. Add "Modules" link to the site navigation template.
2015-02-18 15:55:09 +00:00
Bob Nystrom
98d358142d docs: reflow all markdown files to 80-char width and add control-flow page with branching/looping content 2015-01-04 07:27:02 +00:00
Brian Slesinsky
09f97b1b51 fix: correct printed error output in error-handling doc example to match source code 2015-01-02 22:12:53 +00:00
Bob Nystrom
722ca8f61d docs: expand contributing guide with MIT license and GitHub links, reword error handling and performance sections 2015-01-02 04:45:15 +00:00
Bob Nystrom
0a54f68ad3 docs: add comprehensive error-handling documentation covering syntax and runtime errors with examples 2015-01-02 00:02:02 +00:00
Bob Nystrom
6ed15da597 feat: add category metadata to doc pages and switch code blocks to dart syntax
Add `^category` front matter to all language, types, and reference doc pages for site navigation restructuring. Replace `:::wren` and `:::java` code block annotations with `:::dart` across multiple files. Create new stub pages for core-libraries, embedding-api, and contributing under the reference category. Remove the old embedding and getting-involved stub pages.
2014-04-15 04:23:46 +00:00
Bob Nystrom
d791dd0d7c docs: add Getting Started page with setup instructions and interactive mode examples
Add a comprehensive Getting Started guide covering Unix/Mac installation via git clone and make, interactive mode usage with code examples, and script execution with a Mandelbrot fractal demo. Also update the site navigation template to link the new page, add placeholder pages for Embedding, Error Handling, and Getting Involved, fix the index page link from "usage.html" to "embedding.html", and reorder the types section in the nav to list Fibers before Functions.
2014-04-09 14:53:30 +00:00