<file_sep>/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export function main(a: number, b: number): number;
export function __wbindgen_malloc(a: number): number;
export function __wbindgen_realloc(a: number, b: number, c: number): number;
export const __wbindgen_export_2: WebAssembly.Table;
export function _dyn_core__ops__function__Fn__A_B_C___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1b2d34fa518d1c63(a: number, b: number, c: number, d: number, e: number): void;
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h865f8314fae12818(a: number, b: number): void;
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8def9f92d8da3f0b(a: number, b: number, c: number): void;
export function __wbindgen_exn_store(a: number): void;
export function wasm_bindgen__convert__closures__invoke2_mut__h6a09d8bda3045c96(a: number, b: number, c: number, d: number): void;
export function __wbindgen_start(): void;
<file_sep>+++
title = "demo"
weight = 1
+++

<script type="module">
import init from "./tour.js";

init('./tour_bg.wasm');
</script>
<file_sep># The URL the site will be built for
# base_url = "https://docs.iced.rs"
base_url = "https://iced-rs.github.io/iced-rs-docs"
title = "iced-rs"
description = ""

# Whether to automatically compile all Sass files in the sass directory
compile_sass = true

# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true

# theme = ""

[markdown]
# Whether to do syntax highlighting
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true

[extra]
# Put all your custom variables here
code_dir = "git remote add origin git@github.com:iced-rs/iced-rs-docs.git/tree/main/code/"
repo_url = "git remote add origin <EMAIL>:iced-rs/iced-rs-docs.git"
<file_sep>fn main() {
    //<test-section>
    println!("Hello, friend!");
    //</test-section>

    println!("Hello, end!");

    //<another-section>
    let _thing = vec![1, 2, 3];
    let _another_thing = vec![1, 2, 3];
    let _yup = match 1 {
        _ => (),
    };
    //</another-section>
}
<file_sep># iced.rs docs

## How to get started
- Install [zola](https://www.getzola.org/)
- clone repo
- cd into repo
- `zola serve`
- docs are located in `content/docs`
- every new markdown file in `/content/docs/` should automatically appear on `/docs`.
- any headers should automatically appear automatically in the Table of Contents with anchor tags

## how to add example code to to the docs
- code examples are in `code`
- create `cargo new some-new-example`
- add `some-new-example` to the workspace members in `code/Cargo.toml`
- write your code
- add a comment `//<section-name>` before your example snippet
- add a comment `//</section-name>` after your example snippet
- in your `content/docs/some_feature.md` include your code sample with:
    ```jinja
    {{ code(path="some-new-example/src/main.rs", section="section-name") }}
    ```

## Issues
- No source for tour
- Tour doesn't work with zola server (should be fixed on next update)
- links are being html escaped
- wasm tour is kind of hacked together
    - https://github.com/hecrj/iced/tree/master/web
    - then some copy and pasting of a JS lib into the `tour.js` file

## TODOs
<file_sep>+++
title = "hello world"
weight = 1
+++

## Install
`cargo install iced`

## Basic App

An example of a simple `iced` application....
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet.

{{ code(path="hello-world/src/main.rs", section="test-section") }}

Some more text.

{{ code(path="hello-world/src/main.rs", section="another-section") }}

This is the end.

# outro
## thing
### other thing
<file_sep>+++
title = "List of docs."
sort_by = "weight"
template = "docs.html"
page_template = "doc-page.html"
insert_anchor_links = "right"
+++
<file_sep><div class="example-code">

```rust
{% set source_file = "code/" ~ path -%}
{% set open_symbol = "//<" ~ section ~ ">" -%}
{% set close_symbol = "//</" ~ section ~ ">" -%}
{{ load_data(path=source_file) | split(pat=open_symbol) | nth(n=1) | split(pat=close_symbol) | nth(n=0) }}
```
{% set source_code_link = config.extra.code_dir ~ path -%}
<a href="{{ source_code_link }}">link to source</a>

</div>
<file_sep>+++
title = "Demo"
sort_by = "weight"
template = "tour.html"
page_template = "tour-page.html"
+++

<iframe src="./demo" height="800" style="border:1px solid black; width:100%;">
</iframe>
