-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
137 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build-deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
targets: x86_64-unknown-linux-gnu,wasm32-unknown-unknown | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-all-crates: "true" | ||
save-if: ${{ github.ref == 'refs/heads/main' }} | ||
- uses: cargo-bins/cargo-binstall@main | ||
- name: Install CLI | ||
run: cargo binstall dioxus-cli -y --force | ||
|
||
- name: ⚙️ Build | ||
run: dx build --release --features print | ||
- name: Custom HTML page | ||
run: cp src/index_print.html dist/index.html | ||
- run: cat dist/index.html | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'dist' | ||
- name: 🚀 Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,6 +201,9 @@ body { | |
} | ||
|
||
/* More style */ | ||
code { | ||
padding: .125em .25em; | ||
} | ||
|
||
dl dt { | ||
font-weight: bold; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="UTF-8" /> | ||
|
||
<base href="https://ilaborie.github.io/slides-jug-summer-camp-24/" target="_blank" /> | ||
|
||
<title>Et si on écrivait nos Web Components en Rust ?</title> | ||
|
||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Quicksand:wght@300..700&display=swap"> | ||
<link rel="stylesheet" href="/pico.min.css"> | ||
<link rel="stylesheet" href="/pico.colors.min.css"> | ||
<link rel="stylesheet" href="/prismjs/prism.css"> | ||
<!-- <link rel="stylesheet" href="/xtermjs/xterm.css"> --> | ||
<link rel="stylesheet" href="/main.css"> | ||
<!-- <link rel="stylesheet" href="/livecode.css"> --> | ||
<link rel="stylesheet" href="/jugsummercamp.css"> | ||
<link rel="stylesheet" href="/print.css"> | ||
</head> | ||
|
||
<body> | ||
<div id="main"></div> | ||
<script type="module"> | ||
import init from "/./assets/dioxus/slides-jug-summer-camp-24.js"; | ||
init("/./assets/dioxus/slides-jug-summer-camp-24_bg.wasm").then(wasm => { | ||
if (wasm.__wbindgen_start == undefined) { | ||
wasm.main(); | ||
} | ||
}); | ||
</script> | ||
<script src="/prismjs/prism.js"></script> | ||
<!-- <script src="/xtermjs/xterm.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-attach.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-clipboard.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-fit.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-ligatures.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-unicode11.js"></script> --> | ||
<!-- <script src="/xtermjs/addon-web-links.js"></script> --> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
use dioxus::launch; | ||
use dioxus_logger::tracing::Level; | ||
use slides_jug_summer_camp_24::App; | ||
|
||
use slides_jug_summer_camp_24::App; | ||
fn main() { | ||
dioxus_logger::init(Level::DEBUG).expect("failed to init logger"); | ||
let level = if cfg!(debug_assertions) { | ||
Level::DEBUG | ||
} else { | ||
Level::INFO | ||
}; | ||
dioxus_logger::init(level).expect("failed to init logger"); | ||
|
||
launch(App); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters