Skip to content

Commit 2248976

Browse files
committed
Initial commit
0 parents  commit 2248976

File tree

3 files changed

+140
-0
lines changed

3 files changed

+140
-0
lines changed

.github/workflows/ExportPluto.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Export Pluto notebooks
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
workflow_dispatch:
8+
9+
# When two jobs run in parallel, cancel the older ones, to make sure that the website is generated from the most recent commit.
10+
concurrency:
11+
group: pluto-export
12+
cancel-in-progress: true
13+
14+
# This action needs permission to write the exported HTML file to the gh-pages branch.
15+
permissions:
16+
contents: write
17+
# (all other permission fields default to "none")
18+
19+
jobs:
20+
build-and-deploy:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout this repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install Julia
27+
uses: julia-actions/setup-julia@v2
28+
with:
29+
version: "1" # This will automatically pick the latest Julia version
30+
31+
- name: Cache Julia artifacts & such
32+
uses: julia-actions/cache@v2
33+
with:
34+
cache-registries: "true"
35+
36+
# We set up a folder that Pluto can use to cache exported notebooks. If the notebook file did not change, then Pluto can take the exported file from cache instead of running the notebook.
37+
- name: Set up notebook state cache
38+
uses: actions/cache@v4
39+
with:
40+
path: pluto_state_cache
41+
key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }}
42+
restore-keys: |
43+
${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}
44+
45+
46+
- name: Run & export Pluto notebooks
47+
run: |
48+
julia -e 'using Pkg
49+
Pkg.activate(mktempdir())
50+
Pkg.add([
51+
Pkg.PackageSpec(name="PlutoSliderServer", version="0.3.2-0.3"),
52+
])
53+
54+
import PlutoSliderServer
55+
56+
PlutoSliderServer.github_action(".";
57+
Export_cache_dir="pluto_state_cache",
58+
Export_baked_notebookfile=false,
59+
Export_baked_state=false,
60+
# more parameters can go here
61+
)'
62+
63+
64+
- name: Deploy to gh-pages
65+
uses: JamesIves/github-pages-deploy-action@releases/v4
66+
with:
67+
token: ${{ secrets.GITHUB_TOKEN }}
68+
branch: gh-pages
69+
folder: .
70+
single-commit: true

Index.jl

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
### A Pluto.jl notebook ###
2+
# v0.20.5
3+
4+
using Markdown
5+
using InteractiveUtils
6+
7+
# ╔═╡ a8e07fb5-9671-471e-8f00-fe572dc5704d
8+
begin
9+
using HypertextLiteral: @htl
10+
end
11+
12+
# ╔═╡ 4e470eb8-6a34-4ba4-8037-ed11cbf9e4e3
13+
md"""
14+
# Tutorials
15+
"""
16+
17+
# ╔═╡ a3ca4555-6c63-4933-ba2f-84e585c35941
18+
@htl("""<script src="https://juliaquantumcontrol.github.io/QuantumControl.jl/dev/assets/topbar/topbar.js"></script>""")
19+
20+
# ╔═╡ 821cf12f-afdf-481e-9f06-9ae9b34d0f20
21+
md"""
22+
This is a test
23+
"""
24+
25+
# ╔═╡ cfcf868a-7254-4fb5-a096-89780f275322
26+
27+
28+
# ╔═╡ 00000000-0000-0000-0000-000000000001
29+
PLUTO_PROJECT_TOML_CONTENTS = """
30+
[deps]
31+
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
32+
33+
[compat]
34+
HypertextLiteral = "~0.9.5"
35+
"""
36+
37+
# ╔═╡ 00000000-0000-0000-0000-000000000002
38+
PLUTO_MANIFEST_TOML_CONTENTS = """
39+
# This file is machine-generated - editing it directly is not advised
40+
41+
julia_version = "1.11.4"
42+
manifest_format = "2.0"
43+
project_hash = "60bb17116de90af65672383384a5610ccd921125"
44+
45+
[[deps.HypertextLiteral]]
46+
deps = ["Tricks"]
47+
git-tree-sha1 = "7134810b1afce04bbc1045ca1985fbe81ce17653"
48+
uuid = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
49+
version = "0.9.5"
50+
51+
[[deps.Tricks]]
52+
git-tree-sha1 = "6cae795a5a9313bbb4f60683f7263318fc7d1505"
53+
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
54+
version = "0.1.10"
55+
"""
56+
57+
# ╔═╡ Cell order:
58+
# ╠═4e470eb8-6a34-4ba4-8037-ed11cbf9e4e3
59+
# ╠═a8e07fb5-9671-471e-8f00-fe572dc5704d
60+
# ╠═a3ca4555-6c63-4933-ba2f-84e585c35941
61+
# ╟─821cf12f-afdf-481e-9f06-9ae9b34d0f20
62+
# ╟─cfcf868a-7254-4fb5-a096-89780f275322
63+
# ╟─00000000-0000-0000-0000-000000000001
64+
# ╟─00000000-0000-0000-0000-000000000002

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Review of Landau Zener Transitions
2+
3+
This is a repository containing [Pluto](https://github.com/fonsp/Pluto.jl) notebook that is **automatically converted to HTML** by a GitHub action, and published to GitHub pages!
4+
5+
See the GitHub pages deployment of this repository:
6+
https://goerz-research.github.io/2025-02-04_Landau_Zener/LandauZener.html

0 commit comments

Comments
 (0)