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