Commit graph

30 commits

Author SHA1 Message Date
Olivier Goffart
805ffd216b Document the two way binding 2020-09-24 09:33:08 +02:00
Olivier Goffart
cbd8c6aefc Documentation for the newly added struct type 2020-09-17 13:14:01 +02:00
Olivier Goffart
3c6f378982 Document that signals can have parameter 2020-09-09 11:35:38 +02:00
Simon Hausmann
5cd5d5ab62 Avoid overlapping text in the preview of the first langref example
On my screen the "world" is drawn over the "hello", which looks bad.

Use scalable pixels instead of physical pixels, in an effort to decrease the
chances of overlap while maintaining simplicity in the example.
2020-09-04 10:12:34 +02:00
Olivier Goffart
8a7afbc238 Documents the elements 2020-09-02 18:57:24 +02:00
Simon Hausmann
fd9aea97eb Fix markdown table rendering in C++ docs
This reverts commit 0bb904e10a and
re-introduces the markdown table support extension. The resulting table
by default is too wide in the "responsive" read-the-docs theme, but with
a CSS tweak it becomes readable.

Markdown tables are much easier to deal with and this way we can also
include references within the tables.
2020-09-02 17:06:41 +02:00
Simon Hausmann
fbb1064107 Small doc fixup 2020-09-01 14:28:38 +02:00
Olivier Goffart
159d8b615a Some adjustment to the examples in langref 2020-09-01 14:27:00 +02:00
Olivier Goffart
e80580b5d7 fixup doc 2020-09-01 13:42:19 +02:00
Olivier Goffart
16e4de05b5 Document GridLayout 2020-09-01 13:31:41 +02:00
Simon Hausmann
c1aa4b28c6 Add support for children insertion points for components
Sometimes re-usable components need to act as containers that allow the
user to place other items inside. The component needs to be able to
control the placement of these user-provided elements. That is what the
new

    $children

expression inside elements does.
2020-08-28 15:05:21 +02:00
Olivier Goffart
10e8d7ffb9 Replace the regexp-based lexer with a custom lexer
The regexp crate is huge and takes more than a third of the size of the
wasm-interpreter.
2020-08-28 13:34:43 +02:00
Simon Hausmann
0bb904e10a Fix broken type table in language reference embedded in C++ docs
Recommonmark doesn't grok markdown tables. There's an extension for that, but it
doesn't do support line breaks (or requires manually breaking lines).

So instead this uses a HTML table for now, which
looks identical in github and rust and okay'ish in sphinx/C++.
2020-08-26 13:51:53 +02:00
Olivier Goffart
c8f094461f Small changes to langref 2020-08-26 13:42:13 +02:00
Simon Hausmann
25156d9aa3 Table'ify the types in the language reference 2020-08-20 15:51:38 +02:00
Simon Hausmann
6ebe008768 Add a table to the Rust docs for the mapping from .60 property types 2020-08-20 15:25:28 +02:00
Simon Hausmann
1e24cc3cd4
Fix typo
Oops :)
2020-08-20 13:31:56 +02:00
Simon Hausmann
fee5a0d716 Some work on the language reference 2020-08-20 10:41:36 +02:00
Olivier Goffart
0199b70cea if statements 2020-08-04 17:36:20 +02:00
Olivier Goffart
283387bc44 Add the self and parent implicit id 2020-08-04 15:58:40 +02:00
Olivier Goffart
b259a09338 Rename the types float32 and int32 to float and int 2020-08-03 16:15:41 +02:00
Olivier Goffart
678f426bfd Review of langref.md 2020-07-31 16:12:37 +02:00
Simon Hausmann
84406cc70b Add support for renaming imports
This is very useful to avoid name clashes.
2020-07-23 10:12:45 +02:00
Simon Hausmann
c38fa4cf90 Add support for import statements when loading types
This is the counter part of the export statement and right now it's
implemented as a dumb recursive file loader. This can be extended in
thefuture to support cycles between files (but not types), if
theresolution of types is done lazily.
2020-07-23 09:44:26 +02:00
Olivier Goffart
fd1760e931 Document states and transitions 2020-07-22 09:51:13 +02:00
Simon Hausmann
3e21aafab9 Add support for direct export for convenience 2020-07-22 08:45:49 +02:00
Simon Hausmann
921a41b07c Add support for explicit exports from files
Using an ES module inspired syntax, this allows free naming and control
over exported names.
2020-07-22 08:40:30 +02:00
Olivier Goffart
170564ecea Implement % as a unit 2020-07-16 11:24:46 +02:00
Olivier Goffart
24033ecdc3 Support for logical_lenght type 2020-07-15 11:53:19 +02:00
Olivier Goffart
41d68b6c33 Some documentation 2020-06-18 17:16:34 +02:00