Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add js memory tutorial #2421

Merged
merged 10 commits into from
Mar 28, 2023
Merged
Prev Previous commit
Next Next commit
code review feedback
  • Loading branch information
FloVanGH committed Mar 28, 2023
commit 0f1e7ab606a55d567d34a0fd68f372860841ce86
6 changes: 5 additions & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
- name: "C++ Tutorial Docs"
run: mdbook build
working-directory: docs/tutorial/cpp
- name: "NodeJS Tutorial Docs"
run: mdbook build
working-directory: docs/tutorial/node
- name: "Slint Language Documentation"
run: cargo xtask slintdocs --show-warnings
- name: "Node docs"
Expand All @@ -102,8 +105,9 @@ jobs:
docs/site
docs/tutorial/rust/book/html
docs/tutorial/cpp/book/html
docs/tutorial/node/book/html
- name: "Check for docs warnings in internal crates"
run: cargo +nightly doc --workspace --no-deps --all-features --exclude slint-node --exclude mcu-board-support --exclude printerdemo_mcu --exclude carousel --exclude test-* --exclude plotter
- name: Clean cache # Don't cache docs to avoid them including removed classes being published
run: |
rm -rf target/doc target/cppdocs target/slintdocs api/node/docs docs/tutorial/rust/book docs/tutorial/cpp/book
rm -rf target/doc target/cppdocs target/slintdocs api/node/docs docs/tutorial/rust/book docs/tutorial/cpp/book docs/tutorial/node/book
2 changes: 2 additions & 0 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ <h2>Documentation</h2>
/>
<strong>Using Slint in a NodeJS Project (Beta)</strong>
<a class="btn" href="node">NodeJS Documentation</a>
<br />
<a class="btn" href="tutorial/node">NodeJS Tutorial</a>
</li>
</ul>
</section>
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial/node/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
In this tutorial, we use JavaScript as the host programming language. We also support other programming languages like
[Rust](https://slint-ui.com/docs/rust/slint/) or [C++](https://slint-ui.com/docs/cpp/).
FloVanGH marked this conversation as resolved.
Show resolved Hide resolved

You will need a development environment with [node.js 16](https://nodejs.org/download/release/v16.19.1/) and [npm](https://www.npmjs.com/) installed.
You will need a development environment with [node.js 16](https://nodejs.org/download/release/v16.19.1/) and [npm](https://www.npmjs.com/) installed. More recent
versions of NodeJS are currently not supported, check [Issue #2220](https://github.com/slint-ui/slint/issues/2220).
FloVanGH marked this conversation as resolved.
Show resolved Hide resolved

We're going to use `slint-ui` as `npm` dependency.

Expand Down Expand Up @@ -40,5 +41,4 @@ and a window will appear with the green "Hello World" greeting.

![Screenshot of initial tutorial app showing Hello World](https://slint-ui.com/blog/memory-game-tutorial/getting-started.png "Hello World")

Feel free to use your favorite IDE for this purpose.
We just keep it simple here for the purpose of this blog.x
Feel free to use your favorite IDE for this purpose.