Compare commits

..
4 Commits
Author SHA1 Message Date
Vojta b497825295 Print improvement
Don't pagebreak inside callouts
2025-06-08 22:43:11 +02:00
Vojta 360d1d9ebe Adjust index page 2025-06-08 21:09:26 +02:00
Vojta 77eec532a5 Print pagebreaks, inline width images 2025-06-07 13:12:59 +02:00
Vojta 83a00a467a Fix nested callout 2025-06-07 11:30:13 +02:00
8 changed files with 79 additions and 13 deletions

No files matched your search

+10 -3
View File
@@ -23,6 +23,14 @@ export default defineConfig({
src: "./src/assets/fi_16.png"
},
social: [{ icon: 'github', label: 'GitHub', href: 'https://git.vojtechstruhar.com/Vojta/fi-notes' }],
head: [
{
tag: "script",
attrs: {
src: "/scripts/load-images-before-print.js"
}
}
],
customCss: [
"remark-github-alerts/styles/github-colors-light.css",
"remark-github-alerts/styles/github-colors-dark-class.css",
@@ -30,8 +38,9 @@ export default defineConfig({
"katex/dist/katex.min.css",
"./src/styles/theme.css",
"./src/styles/footnotes-fix.css",
"./src/styles/pixelated-logo.css",
"./src/styles/images-adjustment.css",
"./src/styles/scroll-fix.css",
"./src/styles/print-improvements.css",
],
sidebar: [
{
@@ -85,8 +94,6 @@ export default defineConfig({
"szmgr/pgv09_minimalizace_energie",
"szmgr/pgv10_zpracovani_obrazu_pomoci_pde",
"szmgr/pgv_zpracovani_obrazu_intro",
]
},
@@ -0,0 +1,8 @@
function loadAllImages() {
document.querySelectorAll('img[loading="lazy"]').forEach(img => {
img.setAttribute('loading', 'eager');
});
}
// Before printing (manually or via browser)
window.addEventListener('beforeprint', loadAllImages);
+5 -4
View File
@@ -3,12 +3,13 @@ title: FI Notes
description: Notes (mostly in Czech) from the Faculty of Informatics of Masaryk University in Brno.
---
Notes (mostly in Czech) from the [Faculty of Informatics of Masaryk University](https://www.fi.muni.cz) in Brno. Source files are available on GitHub. Contributions are welcome!
# Contents
Notes (mostly in Czech) from the [Faculty of Informatics of Masaryk University](https://www.fi.muni.cz) in Brno. Source files are [available on GitHub](https://github.com/cafour/fi). Contributions are welcome!
> [!NOTE]
> Work in progress!
> This is just a Astro + Starlight markdown port of [Adam's original notes](https://fi.cafour.cz/szmgr/).
> Only MGR materials are here, his website has everything. All credit goes to Adam.
# Contents
- [SZMGR Státní zkouška (magisterský studijní program)](/szmgr)
@@ -121,9 +121,9 @@ description: "TODO"
> <br>
> Každý trojúhelník má 3 hrany a každá hrana je sdílena dvěma trojúhelníky, takže $E = \frac{3}{2} F$.
> <br>
> **💡 TIP**\
> > [!TIP]
> > Intuitivně: pokud jsme neúsporní, pak máme tři hrany pro každý trojúhelník ($3F$), každou hranu ale "přilepíme" k nějakému dalšímu trojúhelníku, takže každou hranu máme zbytečně dvakrát ($2E$), proto $3F = 2E$, tedy $E = \frac{3}{2} F$.
> <br>
>
> Z Euler-Poincaré plyne, že
> <br>
> ```math
@@ -776,7 +776,7 @@ Inverzní funkce je velice užitečná, ale poměrně složitá, takže doufám,
[^edge-detection]: [Wikipedia: Edge detection](https://en.wikipedia.org/wiki/Edge_detection)
[^fourier]: [Wikipedia: Fourier transform](https://en.wikipedia.org/wiki/Fourier_transform)
[^fft]: [Wikipedia: Fast Fourier transform](https://en.wikipedia.org/wiki/Fast_Fourier_transform)
[^samping]: [Wikipedia: Sampling (signal processing)](<https://en.wikipedia.org/wiki/Sampling_(signal_processing)>)
[^sampling]: [Wikipedia: Sampling (signal processing)](<https://en.wikipedia.org/wiki/Sampling_(signal_processing)>)
[^scaling]: [Wikipedia: Image scaling](https://en.wikipedia.org/wiki/Image_scaling)
[^n-s]: [Wikipedia: Nyquist–Shannon sampling theorem](https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem)
[^geometric-transform]: [Wikipedia: Geometric transformation](https://en.wikipedia.org/wiki/Geometric_transformation)
+43
View File
@@ -0,0 +1,43 @@
.site-title img {
image-rendering: pixelated;
}
img[alt="width=30%"] {
width: 30%;
display: inline;
}
img[alt="width=69%"] {
width: 69%;
display: inline;
}
img[alt="width=49%"] {
width: 49%;
display: inline;
}
img[alt="width=200"] {
width: 200px;
margin: auto;
}
img[alt="width=300"] {
width: 300px;
margin: auto;
}
img[alt="width=400"] {
width: 400px;
margin: auto;
}
img[alt="width=500"] {
width: 500px;
margin: auto;
}
img[alt="width=600"] {
width: 600px;
margin: auto;
}
img[alt="width=700"] {
width: 700px;
margin: auto;
}
-3
View File
@@ -1,3 +0,0 @@
.site-title img {
image-rendering: pixelated;
}
+10
View File
@@ -0,0 +1,10 @@
@media print {
h2,
h3 {
break-after: avoid-page;
}
.markdown-alert, .markdown-alert * {
break-inside: avoid-page;
}
}