Commit graph

48 commits

Author SHA1 Message Date
Olivier Goffart
4a6de71c59 Revert "Change doc URL for the release"
This reverts commit 0ddca89f3b.

The release is done, go back to master
2022-07-06 11:54:09 +02:00
Olivier Goffart
8dfec21b30 docs: Actually fix md links containing anchors 2022-07-06 10:10:20 +02:00
Olivier Goffart
9f78674124 Fix links to enums in the docs
The JS was fixing links to `*.md` files, but not `*.md#foo`
2022-07-06 09:39:54 +02:00
Olivier Goffart
0ddca89f3b Change doc URL for the release 2022-07-06 09:32:32 +02:00
Olivier Goffart
c82cd24f36 Revert "slint-docs-preview.html: adjust URL for the release"
This reverts commit a621365468.
2022-05-09 18:14:51 +02:00
Olivier Goffart
a621365468 slint-docs-preview.html: adjust URL for the release 2022-05-09 17:33:59 +02:00
Olivier Goffart
3e2f4a60ba Revert "slint-docs-preview.html: Update URL for the release"
This reverts commit c1b6ac258b.
2022-05-09 15:48:31 +02:00
Olivier Goffart
c1b6ac258b slint-docs-preview.html: Update URL for the release 2022-05-09 14:52:10 +02:00
Olivier Goffart
ed7eb6f540 Revert "Update URL in docs for release"
This reverts commit 79a1bd5d6e.

Release is done 🎉
2022-05-04 13:53:31 +02:00
Olivier Goffart
79a1bd5d6e Update URL in docs for release 2022-05-04 12:02:36 +02:00
Olivier Goffart
dee7d9c556 Documentation: add a edit link to .slint snippet that open the code editor 2022-04-20 16:49:05 +02:00
Simon Hausmann
f1e7f876f9 Make the showing/hiding of language snippets explicit in the markup
Use a data attribute instead of relying on the structure of rustdoc and myst-parser/sphinx.
2022-04-04 10:01:26 +02:00
Simon Hausmann
1eaee7809d Show/hide the language specific example blocks in the recipes 2022-04-04 10:01:26 +02:00
Simon Hausmann
f1088611fb Rename slint,no_run into slint,no-preview for the code fence tags 2022-04-04 09:58:09 +02:00
Simon Hausmann
ed5b76e7fc Improve syntax highlighting in the language reference
Highlight all Slint code and don't do the preview on snippets where it
doesn't make sense.

Some snippets, such as the bare statement or expression snippets, are
now highlighted, but they are continued to be excluded from the doctest.
2022-04-04 09:58:09 +02:00
Olivier Goffart
5a3f2551ad Docs preview: keep the browser default canvas size by default
Setting it to 0 will then use the winit default that are way too big

And in this case, the preferred size is still respected
2022-04-01 16:18:59 +02:00
Simon Hausmann
079a8a75d6 Fix sizes of some of the preview canvas elements in the docs
Don't fix the canvas to 100/100 physical pixels, as not all examples fit into that. Instead
let the GL backend resize according to constraints,
and add some missing sizes to some examples.
2022-03-21 16:53:30 +01:00
Olivier Goffart
1aaa48c6a6 Revert "Update URL for the release"
This reverts commit c04c0946f3.

Release was done
2022-03-10 09:47:30 +01:00
Olivier Goffart
c04c0946f3 Update URL for the release 2022-03-10 08:48:42 +01:00
Olivier Goffart
af328037c0 Revert "Update the URL in the generated docs in preparation for the release"
This reverts commit d5726a9269.

The release is done: go back to nightly
2022-02-10 09:28:14 +01:00
Olivier Goffart
d5726a9269 Update the URL in the generated docs in preparation for the release 2022-02-10 07:32:35 +01:00
Simon Hausmann
e339b057cd Fix url to wasm interpreter in doc snapshots 2022-02-09 18:49:24 +01:00
Simon Hausmann
1f74f30c42 Prevent the doc preview slint instances from being collected by the garbage collector
We need to keep the VRc alive
2022-02-09 17:55:05 +01:00
Simon Hausmann
1cdbc88762 Fix non-interactive doc preview
Only the last shown preview was interactive. This was because we started the winit event loop for each preview,
which kind of invalidates the previous instance in winit.

Instead, create all components, call show() on each instance to register the window with winit
and spin the event loop with its exception magic only once.
2022-02-09 17:55:05 +01:00
Olivier Goffart
1425ef63de Change the Url from sixtyfps.io to slint-ui.com
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +01:00
Olivier Goffart
0d8142c93a Fix snapshot URL 2022-02-04 15:50:21 +01:00
Olivier Goffart
7f7b620a35 Update the injected scripts to the new name 2022-02-02 12:26:55 +01:00
Olivier Goffart
03534039d6 Replace more .60 by .slint
Mainly an automated change with
    git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"

and some manual checks
2022-02-02 10:12:31 +01:00
Olivier Goffart
4206c8d542 Revert "Update documentation link for release"
This reverts commit 20c6f24b65.

The release was done, now go back to snapshot in docs snapshots
2022-01-21 10:53:57 +01:00
Olivier Goffart
20c6f24b65 Update documentation link for release 2022-01-21 09:38:17 +01:00
Olivier Goffart
a3df480650 Revert "Adjust the URL in the documentation to the released version"
This reverts commit 2904b7ad6d.

The release was done
2021-11-24 15:18:23 +01:00
Olivier Goffart
2904b7ad6d Adjust the URL in the documentation to the released version 2021-11-24 14:13:30 +01:00
Olivier Goffart
043a58a5f0 Revert "Set the documentation URL to the latest release"
This reverts commit ec61c969f0.
2021-10-22 16:50:48 +02:00
Olivier Goffart
ec61c969f0 Set the documentation URL to the latest release 2021-10-22 16:06:07 +02:00
Olivier Goffart
aad9921ed2 Revert "Update link of the interpreter in the documentation"
This reverts commit 2fffeba7cb.
2021-10-06 15:55:05 +02:00
Olivier Goffart
2fffeba7cb Update link of the interpreter in the documentation 2021-10-06 14:55:32 +02:00
Olivier Goffart
ea104ed203 Revert "Change the version number in docs-preview.html"
This reverts commit 8fee7d6486.

Revert now that the release is done
2021-09-09 10:45:13 +02:00
Olivier Goffart
8fee7d6486 Change the version number in docs-preview.html 2021-09-09 08:55:51 +02:00
Olivier Goffart
daddce2b5d Revert "Change the version number in docs-preview.html"
This reverts commit 84298fd95a.

The release is done, master branch now points to snapshots again
2021-08-19 10:47:13 +02:00
Olivier Goffart
84298fd95a Change the version number in docs-preview.html 2021-08-19 09:57:13 +02:00
Tobias Hunger
aea4ecca99 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
Olivier Goffart
c296a00286 Preview in documentation: make sure the preview is not duplicated for C++ 2021-08-13 13:27:03 +02:00
Olivier Goffart
f6e2b97aab Prospective fix for the double preview in the C++ docs 2021-08-12 20:37:31 +02:00
Olivier Goffart
ff441d3db6 Improve a bit the preview in the documentation with nightly rustdoc
The example are in a layout so "float:right" doesn't have an effect in that div
Instread, just put the preview inside the example.

This also remove the "Preview:" text
2021-08-12 13:57:36 +02:00
Olivier Goffart
bdeb64c518 Fix documentation preview and hightlighting of .60 code with nightly rustdoc
rustdoc changed the html generated. The code used to be in a `<code>`, now it is
in a `<pre>`
So this should wotk with both stable rust and nightly rust
2021-08-11 18:24:44 +02:00
Simon Hausmann
31ac05341a rust docs: Don't use depreacted highlightjs.highlightBlock, use highlightElement instead 2021-07-12 16:05:51 +02:00
Simon Hausmann
163625fcd3 C++ docs: finish re-organzing the C++ docs entry
Instead of repeating the table of contents, provide a proper intro
page - based on the Github README - and group the remaining content
into Getting Started, Reference and Integration sections.
2021-07-10 08:13:13 +02:00
Simon Hausmann
be47f708d9 Cleanup: Move docs/html to docs/resources 2021-07-08 07:01:51 +02:00