Skip to content

Commit faa69fc

Browse files
feat(showcase): add assets
1 parent 6593d8c commit faa69fc

5 files changed

Lines changed: 113 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ confidential/
4242
!.vscode/extensions.json
4343
!.vscode/tasks.json
4444
onelab
45-
showcase
46-
!showcase/*.jl
4745
papers
4846
sprint
4947
*/fem_output

docs/showcase/slides/_quarto.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project:
2+
output-dir: _site
3+
4+
# CHANGE THIS ONE LINE ↓ to your GitHub "owner/repo"
5+
metadata:
6+
repo_nwo: "Electa-Git/LineCableModels.jl"
7+
8+
format:
9+
revealjs:
10+
theme: [default, assets/corporate.scss]
11+
slide-number: true
12+
controls: true
13+
progress: true
14+
transition: slide
15+
background-transition: fade
16+
# logo: assets/logo.svg # uncomment when you add a logo
17+
18+
execute:
19+
freeze: auto
20+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*-- scss:defaults --*/
2+
$font-family-sans-serif: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
3+
$body-bg: #0b132b; // dark brand bg
4+
$body-color: #e8edf2;
5+
$link-color: #00a3c4; // accent
6+
$presentation-heading-color: #e8edf2;
7+
8+
/*-- scss:rules --*/
9+
.reveal .footer { font-size: .75rem; opacity: .8; }
10+
.reveal .slide-logo { max-height: 1.2rem; right: 1rem; bottom: 1rem; position: fixed; }
11+
Lines changed: 17 additions & 0 deletions
Loading

docs/showcase/slides/index.qmd

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: "Julia Showcase (Hello World)"
3+
format: revealjs
4+
# Thebe config to make code blocks live via Binder
5+
include-in-header:
6+
text: |
7+
<script type="text/x-thebe-config">
8+
{
9+
"requestKernel": true,
10+
"binderOptions": {
11+
"repo": "{{< meta repo_nwo >}}",
12+
"ref": "HEAD",
13+
"repoProvider": "github"
14+
},
15+
"kernelOptions": { "name": "julia", "path": "." },
16+
"selector": ".thebe-cell"
17+
}
18+
</script>
19+
<script src="https://unpkg.com/thebe@0.8.2/lib/index.js"></script>
20+
<link rel="stylesheet" href="https://unpkg.com/thebe@0.8.2/lib/thebe.css">
21+
<script>
22+
window.addEventListener('DOMContentLoaded', () => {
23+
if (window.thebe) {
24+
try { thebe.bootstrap(); } catch (e) { console.warn('Thebe bootstrap deferred', e); }
25+
}
26+
});
27+
</script>
28+
---
29+
30+
# Hello
31+
32+
Rendered at build time (no Binder needed):
33+
34+
```{julia}
35+
println("Hello, world from Julia $(VERSION)")
36+
```
37+
38+
---
39+
40+
# Live cell (click “Activate”)
41+
42+
After the deck loads, hit **Activate** (Thebe) → Binder spins up a Julia kernel → run:
43+
44+
```{julia} #| class: thebe-cell
45+
# Minimal "computation" to prove execution
46+
sum(i^2 for i in 1:10), prod(i for i in 1:5)
47+
```
48+
49+
---
50+
51+
# Your package hook (optional live)
52+
53+
Uncomment and replace with your package to smoke-test imports.
54+
55+
```{julia} #| class: thebe-cell
56+
# using YourPackage
57+
# YourPackage.versioninfo()
58+
"ready"
59+
```
60+
61+
---
62+
63+
# Footer
64+
65+
© 2025 YourCorp

0 commit comments

Comments
 (0)