Refactor documentation titles and styles

This commit is contained in:
Kyler Olsen 2025-10-28 00:12:37 -06:00
parent 6cf393121c
commit 3fe499764b
24 changed files with 618 additions and 33 deletions

View File

@ -23,14 +23,40 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
title = md.Meta["title"][0] # type: ignore title = md.Meta["title"][0] # type: ignore
prev_page = md.Meta["prev"][0] # type: ignore prev_page = md.Meta["prev"][0] # type: ignore
next_page = md.Meta["next"][0] # type: ignore next_page = md.Meta["next"][0] # type: ignore
prev_link = f'<a href="/{my_url_builder(prev_page, './', '.html')}">Prev</a>' \
if prev_page else ''
next_link = f'<a href="/{my_url_builder(next_page, './', '.html')}">Next</a>' \
if next_page else ''
html_page = f"""<!DOCTYPE html> html_page = f"""<!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>{title}</title> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YREA SLS | {title}</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
<link id="icon" rel="shortcut icon" href="sls-on-white.svg">
</head> </head>
<body> <body>
<header>
<div>
<p class="title">
{title}
</p>
<div class="logo">
<img src="YREA.svg" height="48">
<span></span>
<img src="sls.svg" height="42">
</div>
<p class="nav">
{f'{prev_link} |' if prev_page else ''}
<a href="/">Home</a>
{f'| {next_link}' if next_page else ''}
</p>
</div>
<hr/>
</header>
<main> <main>
{html} {html}
</main> </main>
@ -38,9 +64,9 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
<div> <div>
<small> <small>
<span>&copy; 2025 Kyler Olsen</span> | <span>&copy; 2025 Kyler Olsen</span> |
{f'<a href="/{my_url_builder(prev_page, './', '.html')}">Prev</a> |' if prev_page else ''} {f'{prev_link} |' if prev_page else ''}
<a href="/">Home</a> <a href="/">Home</a>
{f'| <a href="/{my_url_builder(next_page, './', '.html')}">Next</a>' if next_page else ''} {f'| {next_link}' if next_page else ''}
</small> </small>
</div> </div>
</footer> </footer>
@ -51,6 +77,12 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
print(f"Converted: {md_path}{html_path}") print(f"Converted: {md_path}{html_path}")
def convert_all(source_dir: Path, output_dir: Path): def convert_all(source_dir: Path, output_dir: Path):
for svg_file in source_dir.rglob("*.svg"):
rel_path = svg_file.relative_to(source_dir)
dest_path = output_dir / rel_path
dest_path.parent.mkdir(parents=True, exist_ok=True)
dest_path.write_bytes(svg_file.read_bytes())
print(f"Copied: {svg_file}{dest_path}")
for css_file in source_dir.rglob("*.css"): for css_file in source_dir.rglob("*.css"):
rel_path = css_file.relative_to(source_dir) rel_path = css_file.relative_to(source_dir)
dest_path = output_dir / rel_path dest_path = output_dir / rel_path
@ -69,13 +101,13 @@ def convert_all_watch_files(source_dir: Path, output_dir: Path):
class ChangeHandler(FileSystemEventHandler): class ChangeHandler(FileSystemEventHandler):
def on_modified(self, event): def on_modified(self, event):
if event.src_path.endswith(".md"): if event.src_path.endswith(".md"): # type: ignore
md_path = Path(event.src_path) md_path = Path(event.src_path) # type: ignore
rel_path = md_path.relative_to(source_dir) rel_path = md_path.relative_to(source_dir)
html_path = output_dir / rel_path.with_suffix(".html") html_path = output_dir / rel_path.with_suffix(".html")
convert_markdown_to_html(md_path, html_path) convert_markdown_to_html(md_path, html_path)
elif event.src_path.endswith(".css"): elif event.src_path.endswith(".css"): # type: ignore
css_path = Path(event.src_path) css_path = Path(event.src_path) # type: ignore
rel_path = css_path.relative_to(source_dir) rel_path = css_path.relative_to(source_dir)
dest_path = output_dir / rel_path dest_path = output_dir / rel_path
dest_path.parent.mkdir(parents=True, exist_ok=True) dest_path.parent.mkdir(parents=True, exist_ok=True)
@ -96,4 +128,4 @@ def convert_all_watch_files(source_dir: Path, output_dir: Path):
if __name__ == "__main__": if __name__ == "__main__":
convert_all(SOURCE_DIR, OUTPUT_DIR) convert_all(SOURCE_DIR, OUTPUT_DIR)
# convert_all_watch_files(SOURCE_DIR, OUTPUT_DIR) convert_all_watch_files(SOURCE_DIR, OUTPUT_DIR)

126
docs/YREA.svg Normal file
View File

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="245mm"
height="200mm"
viewBox="0 0 245 200"
version="1.1"
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="YREA.svg"
inkscape:export-filename="E:\kyler's s\YREA\YREA5.4-256.png"
inkscape:export-xdpi="26.540409"
inkscape:export-ydpi="26.540409">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="456.2612"
inkscape:cy="380.13276"
inkscape:document-units="mm"
inkscape:current-layer="text1420"
inkscape:document-rotation="0"
showgrid="false"
units="mm"
inkscape:pagecheckerboard="true"
width="280mm"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1920"
inkscape:window-height="1027"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Layer 4">
<circle
style="fill:#0000ff;stroke-width:9.26042;stroke-linecap:round;stroke-linejoin:round"
id="path1416"
cx="145"
cy="100"
r="100" />
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3">
<circle
style="fill:#ff0000;stroke-width:4.63021;stroke-linecap:round;stroke-linejoin:round"
id="path1404"
cx="130"
cy="100"
r="100"
inkscape:transform-center-x="59.720238"
inkscape:transform-center-y="2.2678571" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<circle
style="fill:#ffff00;stroke-width:9.26042;stroke-linecap:round;stroke-linejoin:round"
id="path1414"
cx="115"
cy="100"
r="100" />
</g>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<circle
style="fill:#000000;stroke-width:9.46963;stroke-linecap:round;stroke-linejoin:round"
id="path1402"
cx="100"
cy="100"
r="100" />
<g
aria-label="YREA"
transform="scale(1.0029344,0.99707419)"
id="text1420"
style="font-size:55.7289px;line-height:1.25;font-family:'AR DESTINE';-inkscape-font-specification:'AR DESTINE';text-align:center;text-anchor:middle;stroke-width:0.210641">
<path
d="m 55.48889,104.0758 v 13.76896 H 46.726827 V 104.0758 L 32.903447,82.74208 h 10.449169 l 7.728031,11.918584 7.728031,-11.918584 h 10.449169 z"
style="font-size:55.7289px;text-align:center;text-anchor:middle;fill:#ffffff;stroke-width:0.210641"
id="path839" />
<path
d="m 91.135794,117.84476 -6.857267,-10.55802 h -4.517088 v 10.55802 H 70.999375 V 93.245672 h 8.762064 v 5.279007 H 90.319453 V 91.504144 H 70.999375 V 82.74208 h 23.728321 q 1.306146,0 2.829983,1.523837 1.523837,1.523838 1.523837,2.829984 v 15.837019 q 0,1.63268 -1.360568,2.99325 -1.360569,1.36057 -2.993252,1.36057 l 6.802844,10.55802 z"
style="font-size:55.7289px;text-align:center;text-anchor:middle;fill:#ffffff;stroke-width:0.210641"
id="path841" />
<path
d="m 120.30639,104.67445 h -6.42189 v -8.762063 h 12.29955 z m 5.22458,13.17031 H 103.32649 V 82.74208 h 22.20448 l 5.87766,8.762064 h -19.26565 v 17.578546 h 19.26565 z"
style="font-size:55.7289px;text-align:center;text-anchor:middle;fill:#ffffff;stroke-width:0.210641"
id="path843" />
<path
d="m 157.69482,117.84476 v -5.27901 h -10.61243 l -3.42864,5.27901 h -10.44917 l 20.62623,-31.837314 q 2.12249,-3.265366 5.82323,-3.265366 2.77556,0 4.78921,2.068065 2.06806,2.013642 2.06806,4.789202 v 12.462813 h -8.81649 v -5.877659 l -5.00689,7.619189 h 13.82338 v 14.04107 z"
style="font-size:55.7289px;text-align:center;text-anchor:middle;fill:#ffffff;stroke-width:0.210641"
id="path845" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 11 Advanced Topics Title: 11 Advanced Topics
Prev: Generic Programming Prev: Generic Programming
Next: Standard Library Next: Standard Library
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 4 Basic Operations Title: 4 Basic Operations
Prev: Primitive Types Prev: Primitive Types
Next: Functions Next: Functions
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | C Complete Operator Reference Title: C Complete Operator Reference
Prev: Complete Trait Reference Prev: Complete Trait Reference
Next: Grammar Summary Next: Grammar Summary
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | B Complete Trait Reference Title: B Complete Trait Reference
Prev: Standard Library Prev: Standard Library
Next: Complete Operator Reference Next: Complete Operator Reference
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 6 Control Flow Title: 6 Control Flow
Prev: Functions Prev: Functions
Next: Data Structures Next: Data Structures
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 7 Data Structures Title: 7 Data Structures
Prev: Control Flow Prev: Control Flow
Next: Type System Next: Type System
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | G Examples & Tutorials Title: G Examples & Tutorials
Prev: Memory Management Prev: Memory Management
Next: Next:
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 5 Functions Title: 5 Functions
Prev: Basic Operations Prev: Basic Operations
Next: Control Flow Next: Control Flow
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 10 Generic Programming Title: 10 Generic Programming
Prev: Trait System Prev: Trait System
Next: Advanced Topics Next: Advanced Topics
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | D Grammar Summary Title: D Grammar Summary
Prev: Complete Operator Reference Prev: Complete Operator Reference
Next: Module System Next: Module System
--- ---

View File

@ -1,10 +1,10 @@
--- ---
Title: YREA SLS | Specs Home Title: Specs Home
Prev: Prev:
Next: Overview Next: Overview
--- ---
# Stack Language Specification # YREA SLS
Sections: Sections:
1. [[Overview]] 1. [[Overview]]

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 2 Lexical Structure Title: 2 Lexical Structure
Prev: Overview Prev: Overview
Next: Primitive Types Next: Primitive Types
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | F Memory Management Title: F Memory Management
Prev: Module System Prev: Module System
Next: Examples and Tutorials Next: Examples and Tutorials
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | E Module System Title: E Module System
Prev: Grammar Summary Prev: Grammar Summary
Next: Memory Management Next: Memory Management
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 1 Overview Title: 1 Overview
Prev: Index Prev: Index
Next: Lexical Structure Next: Lexical Structure
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 3 Primitive Types Title: 3 Primitive Types
Prev: Lexical Structure Prev: Lexical Structure
Next: Basic Operations Next: Basic Operations
--- ---

187
docs/sls-on-white.svg Normal file
View File

@ -0,0 +1,187 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="247.31175mm"
height="84.731728mm"
viewBox="0 0 247.31175 84.731727"
version="1.1"
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="sls-on-white.svg"
inkscape:export-filename="D:\other\other\logos\YTD\png\sls-512.png"
inkscape:export-xdpi="52.584644"
inkscape:export-ydpi="52.584644">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient904">
<stop
style="stop-color:#001847;stop-opacity:1"
offset="0"
id="stop900" />
<stop
style="stop-color:#375899;stop-opacity:1"
offset="1"
id="stop902" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient843"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094"
gradientUnits="userSpaceOnUse" />
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter850"
x="-7.6923783e-07"
width="1.0000015"
y="-2.727184e-06"
height="1.0000055">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="6.9010705e-05"
id="feGaussianBlur852" />
</filter>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient929"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient931"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient933"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient935"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient937"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient939"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="599.38016"
inkscape:cy="605.35495"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
fit-margin-top="12"
fit-margin-left="16"
fit-margin-right="16"
fit-margin-bottom="12"
inkscape:window-width="1920"
inkscape:window-height="1027"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(16.250258,12.000165)">
<rect
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:7.50403;stroke-linecap:round;stroke-linejoin:round"
id="rect941"
width="247.31175"
height="84.731728"
x="-16.250257"
y="-12.000165"
rx="30"
ry="30" />
<g
aria-label="Sls&gt;_"
id="text835"
style="font-size:16px;line-height:1.25;font-family:'EB Garamond';-inkscape-font-specification:'EB Garamond, @OpticalSize=5,wght=300,wdth=112.5';font-variation-settings:'Size' 5, 'wdth' 112.5, 'wght' 300;display:inline;opacity:1;fill:url(#linearGradient939);fill-opacity:1;stroke-width:0.264583;filter:url(#filter850)">
<path
d="m 16.408399,55.778398 q -5.943599,0 -9.7535993,-2.286 -3.8099999,-2.362199 -5.4863998,-6.172199 -1.67639993,-3.8862 -1.37159994,-8.5344 H 6.5023997 q -0.6096,4.8768 2.0573999,8.0772 2.6670004,3.1242 8.1533994,3.1242 5.4102,0 8.6868,-2.5146 3.3528,-2.5908 3.3528,-7.1628 0,-2.286 -0.9906,-4.1148 -0.9144,-1.8288 -3.3528,-3.429 -2.3622,-1.6002 -6.7818,-3.1242 Q 11.2268,27.432 8.1787996,23.7744 5.2069997,20.1168 5.2069997,14.6304 q 0,-6.4007997 4.9530003,-10.2107996 5.029199,-3.80999981 13.334999,-3.80999981 7.4676,0 11.5824,4.03859981 4.114799,3.9623999 3.809999,10.7441996 h -6.705599 q 0.3048,-4.1148 -2.3622,-6.5531997 -2.667,-2.4383999 -7.1628,-2.4383999 -4.6482,0 -7.6962,2.2097999 -3.048,2.1335997 -3.048,5.6387997 0,3.6576 2.3622,6.096 2.4384,2.3622 8.763,4.6482 5.7912,2.1336 9.144,5.486399 3.429,3.2766 3.429,9.0678 0,5.1816 -2.4384,8.8392 -2.4384,3.5814 -6.7818,5.486399 -4.2672,1.905 -9.9822,1.905 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient929);fill-opacity:1;stroke-width:0.264583"
id="path906" />
<path
d="m 64.795282,54.863998 q -3.2766,0 -4.8768,-1.9812 -1.6002,-2.057399 -0.9906,-5.410199 l 7.1628,-40.0811987 q 0.3048,-1.9049999 -1.524,-1.9049999 H 54.432083 L 55.422683,6.1035156e-7 h 11.201399 q 3.7338,0 5.1054,1.82879988964844 1.3716,1.7526 0.762,5.6387998 l -7.1628,39.9287987 q -0.3048,1.9812 1.524,1.9812 h 11.6586 l -0.9906,5.486399 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient931);fill-opacity:1;stroke-width:0.264583"
id="path908" />
<path
d="m 107.23857,55.778398 q -7.620004,0 -11.353804,-3.505199 -3.7338,-3.5814 -3.7338,-9.2202 h 6.6294 q 0,3.048 2.209804,5.1054 2.2098,1.9812 6.7056,1.9812 4.191,0 6.85799,-1.6764 2.7432,-1.7526 2.7432,-4.8006 0,-2.7432 -2.0574,-3.8862 -2.05739,-1.2192 -6.93419,-1.905 -5.4102,-0.6096 -8.763004,-3.2766 -3.3528,-2.667 -3.3528,-7.238999 0,-4.953 4.114804,-8.0772 4.1148,-3.1242 11.7348,-3.1242 6.24839,0 9.98219,3.1242 3.7338,3.048 3.429,8.458199 h -6.4008 q 0.0762,-2.666999 -2.1336,-4.343399 -2.2098,-1.6764 -5.56259,-1.6764 -3.6576,0 -6.1722,1.3716 -2.5146,1.3716 -2.5146,4.1148 0,2.133599 2.0574,3.581399 2.1336,1.3716 6.7056,1.8288 3.65759,0.4572 6.47699,1.6002 2.8194,1.0668 4.4196,3.2766 1.6002,2.1336 1.6002,5.715 0,5.8674 -4.6482,9.2202 -4.6482,3.352799 -12.03959,3.352799 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient933);fill-opacity:1;stroke-width:0.264583"
id="path910" />
<path
d="m 139.09005,48.767999 23.622,-20.7264 0.0762,-0.533399 -16.383,-19.7357997 h 8.4582 l 16.764,20.4215987 -23.3172,20.574 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient935);fill-opacity:1;stroke-width:0.264583"
id="path912" />
<path
d="m 179.70453,60.731398 1.0668,-5.8674 h 34.29 l -1.143,5.8674 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient937);fill-opacity:1;stroke-width:0.264583"
id="path914" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

175
docs/sls.svg Normal file
View File

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="247.31175mm"
height="84.731728mm"
viewBox="0 0 247.31175 84.731727"
version="1.1"
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="sls.svg">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient904">
<stop
style="stop-color:#001847;stop-opacity:1"
offset="0"
id="stop900" />
<stop
style="stop-color:#375899;stop-opacity:1"
offset="1"
id="stop902" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient843"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094"
gradientUnits="userSpaceOnUse" />
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter850"
x="-7.6923783e-07"
width="1.0000015"
y="-2.727184e-06"
height="1.0000055">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="6.9010705e-05"
id="feGaussianBlur852" />
</filter>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient929"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient931"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient933"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient935"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient937"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient904"
id="linearGradient939"
gradientUnits="userSpaceOnUse"
x1="0.75595236"
y1="30.238094"
x2="215.44643"
y2="30.238094" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="599.38016"
inkscape:cy="605.35495"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
fit-margin-top="12"
fit-margin-left="16"
fit-margin-right="16"
fit-margin-bottom="12"
inkscape:window-width="1920"
inkscape:window-height="1027"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(16.250258,12.000165)">
<g
aria-label="Sls&gt;_"
id="text835"
style="font-size:16px;line-height:1.25;font-family:'EB Garamond';-inkscape-font-specification:'EB Garamond, @OpticalSize=5,wght=300,wdth=112.5';font-variation-settings:'Size' 5, 'wdth' 112.5, 'wght' 300;display:inline;opacity:1;fill:url(#linearGradient939);fill-opacity:1;stroke-width:0.264583;filter:url(#filter850)">
<path
d="m 16.408399,55.778398 q -5.943599,0 -9.7535993,-2.286 -3.8099999,-2.362199 -5.4863998,-6.172199 -1.67639993,-3.8862 -1.37159994,-8.5344 H 6.5023997 q -0.6096,4.8768 2.0573999,8.0772 2.6670004,3.1242 8.1533994,3.1242 5.4102,0 8.6868,-2.5146 3.3528,-2.5908 3.3528,-7.1628 0,-2.286 -0.9906,-4.1148 -0.9144,-1.8288 -3.3528,-3.429 -2.3622,-1.6002 -6.7818,-3.1242 Q 11.2268,27.432 8.1787996,23.7744 5.2069997,20.1168 5.2069997,14.6304 q 0,-6.4007997 4.9530003,-10.2107996 5.029199,-3.80999981 13.334999,-3.80999981 7.4676,0 11.5824,4.03859981 4.114799,3.9623999 3.809999,10.7441996 h -6.705599 q 0.3048,-4.1148 -2.3622,-6.5531997 -2.667,-2.4383999 -7.1628,-2.4383999 -4.6482,0 -7.6962,2.2097999 -3.048,2.1335997 -3.048,5.6387997 0,3.6576 2.3622,6.096 2.4384,2.3622 8.763,4.6482 5.7912,2.1336 9.144,5.486399 3.429,3.2766 3.429,9.0678 0,5.1816 -2.4384,8.8392 -2.4384,3.5814 -6.7818,5.486399 -4.2672,1.905 -9.9822,1.905 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient929);fill-opacity:1;stroke-width:0.264583"
id="path906" />
<path
d="m 64.795282,54.863998 q -3.2766,0 -4.8768,-1.9812 -1.6002,-2.057399 -0.9906,-5.410199 l 7.1628,-40.0811987 q 0.3048,-1.9049999 -1.524,-1.9049999 H 54.432083 L 55.422683,6.1035156e-7 h 11.201399 q 3.7338,0 5.1054,1.82879988964844 1.3716,1.7526 0.762,5.6387998 l -7.1628,39.9287987 q -0.3048,1.9812 1.524,1.9812 h 11.6586 l -0.9906,5.486399 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient931);fill-opacity:1;stroke-width:0.264583"
id="path908" />
<path
d="m 107.23857,55.778398 q -7.620004,0 -11.353804,-3.505199 -3.7338,-3.5814 -3.7338,-9.2202 h 6.6294 q 0,3.048 2.209804,5.1054 2.2098,1.9812 6.7056,1.9812 4.191,0 6.85799,-1.6764 2.7432,-1.7526 2.7432,-4.8006 0,-2.7432 -2.0574,-3.8862 -2.05739,-1.2192 -6.93419,-1.905 -5.4102,-0.6096 -8.763004,-3.2766 -3.3528,-2.667 -3.3528,-7.238999 0,-4.953 4.114804,-8.0772 4.1148,-3.1242 11.7348,-3.1242 6.24839,0 9.98219,3.1242 3.7338,3.048 3.429,8.458199 h -6.4008 q 0.0762,-2.666999 -2.1336,-4.343399 -2.2098,-1.6764 -5.56259,-1.6764 -3.6576,0 -6.1722,1.3716 -2.5146,1.3716 -2.5146,4.1148 0,2.133599 2.0574,3.581399 2.1336,1.3716 6.7056,1.8288 3.65759,0.4572 6.47699,1.6002 2.8194,1.0668 4.4196,3.2766 1.6002,2.1336 1.6002,5.715 0,5.8674 -4.6482,9.2202 -4.6482,3.352799 -12.03959,3.352799 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient933);fill-opacity:1;stroke-width:0.264583"
id="path910" />
<path
d="m 139.09005,48.767999 23.622,-20.7264 0.0762,-0.533399 -16.383,-19.7357997 h 8.4582 l 16.764,20.4215987 -23.3172,20.574 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient935);fill-opacity:1;stroke-width:0.264583"
id="path912" />
<path
d="m 179.70453,60.731398 1.0668,-5.8674 h 34.29 l -1.143,5.8674 z"
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:76.2px;font-family:'DM Mono';-inkscape-font-specification:'DM Mono, Italic';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:url(#linearGradient937);fill-opacity:1;stroke-width:0.264583"
id="path914" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | A Standard Library Title: A Standard Library
Prev: Advanced Topics Prev: Advanced Topics
Next: Complete Trait Reference Next: Complete Trait Reference
--- ---

View File

@ -27,7 +27,7 @@ h1 {
} }
a { a {
color: blue; color: #375899;
} }
/* p { /* p {
@ -45,10 +45,11 @@ ul, ol {
code { code {
font-family: 'Consolas', 'Courier New', Courier, monospace; font-family: 'Consolas', 'Courier New', Courier, monospace;
background-color: #cccccc; background-color: #cad5ee;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
border-radius: 3px; border-radius: 3px;
break-inside: avoid;
} }
pre > code { pre > code {
@ -63,17 +64,54 @@ pre {
border-style: solid; border-style: solid;
border-radius: 3px; border-radius: 3px;
padding: 4px; padding: 4px;
background-color: #cccccc; background-color: #cad5ee;
overflow-x: auto;
} }
blockquote { blockquote {
border-color: black; border-color: black;
border-left-color: #001847;
border-width: 1px; border-width: 1px;
border-left-width: 5px; border-left-width: 8px;
border-style: solid; border-style: solid;
border-radius: 3px; border-radius: 3px;
padding-left: 8px; padding-left: 8px;
background-color: #ccccff; background-color: #9cbdff;
}
header {
text-align: center;
padding: 0;
padding-left: 20vw;
padding-right: 20vw;
}
header > div {
display: grid;
grid-template-areas: 't l n';
grid-template-columns: 1fr 2fr 1fr;
grid-template-rows: 1fr;
justify-content: space-between;
}
header > div > .title {
text-align: left;
grid-area: t;
}
header > div > .logo {
margin: 0;
grid-area: l;
}
header > div > .logo > span {
display: inline-block;
width: 4px;
}
header > div > .nav {
text-align: right;
grid-area: n;
} }
footer { footer {
@ -84,6 +122,11 @@ footer {
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
header {
padding-left: 5vw;
padding-right: 5vw;
}
main { main {
padding-left: 5vw; padding-left: 5vw;
padding-right: 5vw; padding-right: 5vw;
@ -93,4 +136,26 @@ footer {
padding-left: 5vw; padding-left: 5vw;
padding-right: 5vw; padding-right: 5vw;
} }
ol, ul {
padding-left: 24px;
}
blockquote {
margin-left: 24px;
margin-right: 24px;
}
header > div {
grid-template-areas: 'l' 't' 'n';
grid-template-columns: 1fr;
grid-template-rows: 2fr 1fr 1fr;
justify-content: center;
}
header > div > .title, header > div > .nav {
text-align: center;
margin-top: 4px;
margin-bottom: 4px;
}
} }

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 9 Trait System Title: 9 Trait System
Prev: Type System Prev: Type System
Next: Generic Programming Next: Generic Programming
--- ---

View File

@ -1,5 +1,5 @@
--- ---
Title: YREA SLS | 8 Type System Title: 8 Type System
Prev: Data Structures Prev: Data Structures
Next: Trait System Next: Trait System
--- ---