diff --git a/docs/beamlines/contacts.md b/docs/beamlines/contacts.md
deleted file mode 100644
index d21182b..0000000
--- a/docs/beamlines/contacts.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-title: Beamline Contacts
-description: Table of all beamlines and their phone numbers
-template: main.html
----
-
- | **Location** | **Source** | **Beamline** | **Hutch Phone Nr.** |
- | :----------- | :------------- | :---------------- | :----------------------------------------------------------------------- |
- | X01DD | Bend BE | NEMO[^1] | [5144](tel: +41 56 310 5144) |
- | X01DA | Bend BS2 | Debye[^1] | [5307](tel: +41 56 310 5307) |
- | X02SA | Undulator U15 | I-TOMCAT | EH1: [5312](tel: +41 56 310 5312)
EH2: [5322](tel: +41 56 310 5322) |
- | X02DA | Bend BS2 | S-TOMCAT | [5192](tel: +41 56 310 5192) |
- | X03MA | Undulator UE38 | ADRESS | tbd |
- | X03DA | Bend BN | -- | -- |
- | X04SA | Undulator U14 | ADDAMS | [5083](tel: +41 56 310 5083) |
- | X04DB | Bend BN | VUV | tbd |
- | X05LA | Undulator UE90 | QUEST | tbd |
- | X05DA | Bend BN | OPTICS[^2] | tbd |
- | X06SA | Undulator U19 | PX-I | tbd |
- | X06DA | Bend BS2 | PX-III | tbd |
- | X07MA | Undulator UE38 | PHOENIX & X-Treme | tbd |
- | X07DB | Bend BN | NanoXAS | tbd |
- | X07DA | Bend BN | PolLux | [5474](tel: +41 56 310 5474) |
- | X08SA | Undulator U17 | microXAS | tbd |
- | X08DA | Bend BN | -- | -- |
- | X08DB | Bend BN | DISCO | [5144](tel: +41 56 310 5144) |
- | X09LA | Undulator U70 | XIL & PEARL | tbd |
- | X09DA | Bend BN | NAPP | tbd |
- | X10SA | Undulator U19 | PX-II | tbd |
- | X10DA | Bend BS2 | SuperXAS | tbd |
- | X11MA | 2xUE36 | SIM | [5978](tel: +41 56 310 5978) |
- | X11DA | Bend BN | -- | -- |
- | X12SA | Undulator U17 | cSAXS | tbd |
- | X12DA | Bend BN | -- | -- |
-
- [^1]: Accelerator Diagnostics Beamline
- [^2]: No User Operation
-
-*[BE]: homogenous bending permanent magnet of dispersion suppressor cell (1.1 T)
-*[BN]: homogenous bending permanent magnet of standard unit cell (1.4 T)
-*[BS2]: longitudinal gradient super-bending permanent magnet of standard unit cell (2 T)
-*[BS5]: longitudinal gradient super-bending super-conducting magnet of standard unit cell (3-5 T)
\ No newline at end of file
diff --git a/docs/beamlines/data/BN.png b/docs/beamlines/data/BN.png
new file mode 100644
index 0000000..98d4a0a
Binary files /dev/null and b/docs/beamlines/data/BN.png differ
diff --git a/docs/beamlines/overview.md b/docs/beamlines/overview.md
new file mode 100644
index 0000000..7fbf782
--- /dev/null
+++ b/docs/beamlines/overview.md
@@ -0,0 +1,44 @@
+---
+title: Beamline Contacts
+description: Table of all beamlines and their phone numbers
+template: main.html
+---
+
+[X01DD](sourcepoints.md#x01dd){ data-preview }
+
+| **Location: Source** | **Beamline** | **Hutch Phone Nr.** |
+| :------------------------ | :---------------- | :----------------------------------------------------------------------- |
+| X01DD: Bend BE | NEMO[^1] | [5144](tel: +41 56 310 5144) |
+| X01DA: Bend BS2 | Debye[^1] | [5307](tel: +41 56 310 5307) |
+| X02SA: Undulator U15 | I-TOMCAT | EH1: [5312](tel: +41 56 310 5312)
EH2: [5322](tel: +41 56 310 5322) |
+| X02DA: Bend BS2 | S-TOMCAT | [5192](tel: +41 56 310 5192) |
+| X03MA: Undulator UE38 | ADRESS | tbd |
+| X03DA: Bend BN | -- | -- |
+| X04SA: Undulator U14 | ADDAMS | [5083](tel: +41 56 310 5083) |
+| X04DB: Bend BN | VUV | tbd |
+| X05LA: Undulator UE90 | QUEST | tbd |
+| X05DA: Bend BN | OPTICS[^2] | tbd |
+| X06SA: Undulator U19 | PX-I | tbd |
+| X06DA: Bend BS2 | PX-III | tbd |
+| X07MA: Undulator UE38 | PHOENIX & X-Treme | tbd |
+| X07DB: Bend BN | NanoXAS | tbd |
+| X07DA: Bend BN | PolLux | [5474](tel: +41 56 310 5474) |
+| X08SA: Undulator U17 | microXAS | tbd |
+| X08DA: Bend BN | -- | -- |
+| X08DB: Bend BN | DISCO | [5144](tel: +41 56 310 5144) |
+| X09LA: Undulator U70 | XIL & PEARL | tbd |
+| X09DA: Bend BN | NAPP | tbd |
+| X10SA: Undulator U19 | PX-II | tbd |
+| X10DA: Bend BS2 | SuperXAS | tbd |
+| X11MA: 2xUE36 | SIM | [5978](tel: +41 56 310 5978) |
+| X11DA: Bend BN | -- | -- |
+| X12SA: Undulator U17 | cSAXS | tbd |
+| X12DA: Bend BN | -- | -- |
+
+ [^1]: Accelerator Diagnostics Beamline
+ [^2]: No User Operation
+
+*[BE]: homogenous bending permanent magnet of dispersion suppressor cell (1.1 T)
+*[BN]: homogenous bending permanent magnet of standard unit cell (1.4 T)
+*[BS2]: longitudinal gradient super-bending permanent magnet of standard unit cell (2 T)
+*[BS5]: longitudinal gradient super-bending super-conducting magnet of standard unit cell (3-5 T)
\ No newline at end of file
diff --git a/docs/beamlines/sourcepoints.md b/docs/beamlines/sourcepoints.md
new file mode 100644
index 0000000..c898d1c
--- /dev/null
+++ b/docs/beamlines/sourcepoints.md
@@ -0,0 +1,12 @@
+---
+title: Beamline Sourcepoints SLS
+description: Beamline Sourcepoints SLS
+template: main.html
+
+hide:
+ - toc
+ - navigation
+---
+
+# X01DD
+blabla
\ No newline at end of file
diff --git a/docs/javascripts/tooltip-init.js b/docs/javascripts/tooltip-init.js
new file mode 100644
index 0000000..1373157
--- /dev/null
+++ b/docs/javascripts/tooltip-init.js
@@ -0,0 +1,15 @@
+document$.subscribe(({ document }) => {
+ const elements = document.querySelectorAll("[data-image-tooltip]")
+
+ elements.forEach(el => {
+ const img = el.getAttribute("data-image-tooltip")
+
+ if (el._tooltipInitialized) return
+ el._tooltipInitialized = true
+
+ window.document$.app?.tooltip?.create(el, {
+ html: `
`,
+ interactive: true
+ })
+ })
+})
\ No newline at end of file
diff --git a/mkdocs.yml b/mkdocs.yml
index 3438a11..4007160 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -28,6 +28,10 @@ markdown_extensions:
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
+ - material.extensions.preview:
+ targets:
+ include:
+ - beamlines/sourcepoints.md
plugins:
@@ -37,11 +41,11 @@ plugins:
enable_creation_date: false
type: datetime
- privacy:
- exclude:
+ assets_exclude:
- "https://gfa-status.web.psi.ch/**"
- "https://duo.psi.ch/**"
- # links_attr_map:
- # target: _blank
+ links_attr_map:
+ target: _blank
docs_dir: docs
@@ -52,7 +56,8 @@ extra_css:
extra_javascript:
- javascripts/pkgs/tablesort.min.js
- javascripts/tablesort.js
-# - 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
+# - javascripts/tooltip-init.js
+# - 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
theme:
name: 'material'
@@ -60,6 +65,7 @@ theme:
logo: _images/LogoCAS.svg
features:
- navigation.tabs
+ # - navigation.instant.preview
# - navigation.instant
# - navigation.instant.progress
- content.action.edit
@@ -210,7 +216,7 @@ nav:
# - 'Post Mortem' : machine/postmortem.md
- 'JCM minutes' : machine/jcm.md
- 'Beamlines':
- - 'Overview' : beamlines/contacts.md
+ - 'Overview' : beamlines/overview.md
- 'DUO List' : beamlines/duolist.md
- 'UOM minutes' : beamlines/uom.md
- 'SU Permits' : beamlines/SUpermits.md