More Adjustments
This commit is contained in:
parent
3fe499764b
commit
e2d208ac0a
19
convert.py
19
convert.py
|
|
@ -24,10 +24,8 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
|
||||||
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>' \
|
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>'
|
||||||
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">
|
||||||
|
|
@ -44,11 +42,11 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
|
||||||
<p class="title">
|
<p class="title">
|
||||||
{title}
|
{title}
|
||||||
</p>
|
</p>
|
||||||
<div class="logo">
|
<div class="logo"><a href="/">
|
||||||
<img src="YREA.svg" height="48">
|
<img src="YREA.svg" height="48">
|
||||||
<span></span>
|
<span></span>
|
||||||
<img src="sls.svg" height="42">
|
<img src="sls.svg" height="42">
|
||||||
</div>
|
</a></div>
|
||||||
<p class="nav">
|
<p class="nav">
|
||||||
{f'{prev_link} |' if prev_page else ''}
|
{f'{prev_link} |' if prev_page else ''}
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
|
|
@ -63,10 +61,11 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
|
||||||
<footer>
|
<footer>
|
||||||
<div>
|
<div>
|
||||||
<small>
|
<small>
|
||||||
<span>© 2025 Kyler Olsen</span> |
|
<span>© 2025 Kyler Olsen</span>
|
||||||
{f'{prev_link} |' if prev_page else ''}
|
<a href="https://purplecello.org/contact.html">Contact</a> |
|
||||||
|
{f'{prev_link}' if prev_page else ''}
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
{f'| {next_link}' if next_page else ''}
|
{f'{next_link}' if next_page else ''}
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
@ -128,4 +127,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)
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
Title: Specs Home
|
Title: Docs Home
|
||||||
Prev:
|
Prev:
|
||||||
Next: Overview
|
Next: Overview
|
||||||
---
|
---
|
||||||
|
|
||||||
# YREA SLS
|
# YREA SLS Documentation
|
||||||
|
|
||||||
Sections:
|
**Sections**:
|
||||||
1. [[Overview]]
|
1. [[Overview]]
|
||||||
2. [[Lexical Structure]]
|
2. [[Lexical Structure]]
|
||||||
3. [[Primitive Types]]
|
3. [[Primitive Types]]
|
||||||
|
|
@ -19,7 +19,7 @@ Sections:
|
||||||
10. [[Generic Programming]]
|
10. [[Generic Programming]]
|
||||||
11. [[Advanced Topics]]
|
11. [[Advanced Topics]]
|
||||||
|
|
||||||
Appendices:
|
**Appendices**:
|
||||||
- A. [[Standard Library]]
|
- A. [[Standard Library]]
|
||||||
- B. [[Complete Trait Reference]]
|
- B. [[Complete Trait Reference]]
|
||||||
- C. [[Complete Operator Reference]]
|
- C. [[Complete Operator Reference]]
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ ul, ol {
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: 'Consolas', 'Courier New', Courier, monospace;
|
font-family: 'Consolas', 'Courier New', Courier, monospace;
|
||||||
background-color: #cad5ee;
|
background-color: #dddddd;
|
||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
@ -64,7 +64,7 @@ pre {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
background-color: #cad5ee;
|
background-color: #eeeeee;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,12 +99,16 @@ header > div > .title {
|
||||||
grid-area: t;
|
grid-area: t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header > div >.logo > a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
header > div > .logo {
|
header > div > .logo {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
grid-area: l;
|
grid-area: l;
|
||||||
}
|
}
|
||||||
|
|
||||||
header > div > .logo > span {
|
header > div > .logo > a > span {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
|
|
@ -122,6 +126,11 @@ footer {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
padding-left: 5vw;
|
padding-left: 5vw;
|
||||||
padding-right: 5vw;
|
padding-right: 5vw;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue