Commit graph

16 commits

Author SHA1 Message Date
Simon Hausmann
ef1a605953 Add support for showing warning diagnostics in the online editor 2021-04-30 15:43:05 +02:00
Simon Hausmann
9dcbf4b5ad Revert "Change docs to point to the 0.0.6 version of the wasm interpreter"
This reverts commit 944c6e44af because
we're past the release and should pointer back to master builds.
2021-04-27 17:43:45 +02:00
Simon Hausmann
944c6e44af Change docs to point to the 0.0.6 version of the wasm interpreter
... in time for the release
2021-04-27 17:07:38 +02:00
Olivier Goffart
c1b136b626 For the master documentation, use the master version of the interpreter 2021-02-03 15:50:34 +01:00
Olivier Goffart
60c80f4e9a Get ready to publish the docs with the preview. 2021-01-29 17:14:14 +01:00
Olivier Goffart
359f42c5f7 Prepare the compiler to be async
This will allow the online editor to load imports from URL asynchroniously later

Since currently the compiler is only working on a single thread, and that we
never await on a future that could block, it is allowed to use the spin_on executor
2020-10-30 15:00:04 +01:00
Olivier Goffart
263df7dc63 Remove the www from all sixtyfps.io URL 2020-10-29 11:06:06 +01:00
Olivier Goffart
0c253efb0d Some changes in the rust documentation and its README 2020-10-20 18:02:28 +02:00
Simon Hausmann
603abeabed Fix up links to markdown files from within other markdown files in the Rust docs
Our language reference .md file contains a refernce to
builtin_elements.md. Since rustdoc doesn't further process the embedded
markdown file, the .md link remains as-is and is broken. But we can fix
it up using a small snippet of JavaScript.

Fixes #87
2020-10-14 10:27:50 +02:00
Simon Hausmann
9c23d9b571 Alternate fix for image loading in docs preview
Revert commit 9f488bba3b for now and
instead resort to an absolute url to the image. This way we
don't have to use the wrong base url.
2020-10-13 09:44:25 +02:00
Simon Hausmann
9f488bba3b Try to get the image loading work in the embedded doc preview
By specifying the CORS-friendly github raw url as base url for the interpreter,
we can load images using relative paths.

According to the inspector the image is loaded successfully,
so what seems to be left to fix is an event loop related issue.
2020-10-13 09:31:42 +02:00
Simon Hausmann
67f387e628 Prepare for relative resource loading from the web
Pass the base url as path to the interpreter
2020-10-08 20:42:46 +02:00
Simon Hausmann
6278a7168a Include the example preview also in the C++ documentation
The template system used by Sphinx makes this rather easy, just the selector for the
HTML element to inject to needs to be extended.
2020-09-04 11:44:08 +02:00
Simon Hausmann
a539dab848 Improve placement of live preview
As the commented out code suggested, place the preview canvas as a floating element
into the code box, along with a label.
2020-09-04 10:12:34 +02:00
Simon Hausmann
7690ab6b6d Reindent/Reformat the docs integration html
That'll make further edits easier to read in the diffs.
2020-09-04 10:12:34 +02:00
Olivier Goffart
ef16733a88 Attempt to render the documentation example.
Need polishing
2020-08-27 19:34:17 +02:00