More Adjustments

This commit is contained in:
Kyler Olsen 2025-10-28 00:29:50 -06:00
parent 3fe499764b
commit e2d208ac0a
3 changed files with 25 additions and 17 deletions

View File

@ -24,10 +24,8 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
prev_page = md.Meta["prev"][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 ''
prev_link = f'<a href="/{my_url_builder(prev_page, './', '.html')}">Prev</a>'
next_link = f'<a href="/{my_url_builder(next_page, './', '.html')}">Next</a>'
html_page = f"""<!DOCTYPE html>
<html lang="en">
@ -44,11 +42,11 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
<p class="title">
{title}
</p>
<div class="logo">
<div class="logo"><a href="/">
<img src="YREA.svg" height="48">
<span></span>
<img src="sls.svg" height="42">
</div>
</a></div>
<p class="nav">
{f'{prev_link} |' if prev_page else ''}
<a href="/">Home</a>
@ -63,10 +61,11 @@ def convert_markdown_to_html(md_path: Path, html_path: Path):
<footer>
<div>
<small>
<span>&copy; 2025 Kyler Olsen</span> |
{f'{prev_link} |' if prev_page else ''}
<span>&copy; 2025 Kyler Olsen</span>
<a href="https://purplecello.org/contact.html">Contact</a> |
{f'{prev_link}' if prev_page else ''}
<a href="/">Home</a>
{f'| {next_link}' if next_page else ''}
{f'{next_link}' if next_page else ''}
</small>
</div>
</footer>
@ -128,4 +127,4 @@ def convert_all_watch_files(source_dir: Path, output_dir: Path):
if __name__ == "__main__":
convert_all(SOURCE_DIR, OUTPUT_DIR)
convert_all_watch_files(SOURCE_DIR, OUTPUT_DIR)
# convert_all_watch_files(SOURCE_DIR, OUTPUT_DIR)

View File

@ -1,12 +1,12 @@
---
Title: Specs Home
Title: Docs Home
Prev:
Next: Overview
---
# YREA SLS
# YREA SLS Documentation
Sections:
**Sections**:
1. [[Overview]]
2. [[Lexical Structure]]
3. [[Primitive Types]]
@ -19,7 +19,7 @@ Sections:
10. [[Generic Programming]]
11. [[Advanced Topics]]
Appendices:
**Appendices**:
- A. [[Standard Library]]
- B. [[Complete Trait Reference]]
- C. [[Complete Operator Reference]]

View File

@ -45,7 +45,7 @@ ul, ol {
code {
font-family: 'Consolas', 'Courier New', Courier, monospace;
background-color: #cad5ee;
background-color: #dddddd;
padding-left: 4px;
padding-right: 4px;
border-radius: 3px;
@ -64,7 +64,7 @@ pre {
border-style: solid;
border-radius: 3px;
padding: 4px;
background-color: #cad5ee;
background-color: #eeeeee;
overflow-x: auto;
}
@ -99,12 +99,16 @@ header > div > .title {
grid-area: t;
}
header > div >.logo > a {
text-decoration: none;
}
header > div > .logo {
margin: 0;
grid-area: l;
}
header > div > .logo > span {
header > div > .logo > a > span {
display: inline-block;
width: 4px;
}
@ -122,6 +126,11 @@ footer {
}
@media screen and (max-width: 768px) {
body {
font-size: 18px;
}
header {
padding-left: 5vw;
padding-right: 5vw;