bumped version number, fixed back button, build command struct docs

This commit is contained in:
2026-03-17 21:48:17 +11:00
parent 7460d784b6
commit 44c37f84e6
5 changed files with 20 additions and 8 deletions

View File

@@ -55,13 +55,16 @@ class DocsApp(App):
async def on_button_pressed(self, event: Button.Pressed):
if event.button.id == "back":
await self.query_one(MarkdownViewer).back()
async def on_ready(self):
await self.query_one(MarkdownViewer).go(self.inital_markdown_path)
def compose(self) -> ComposeResult:
with open(self.inital_markdown_path, "r") as f:
markdown = f.read()
yield Header()
yield MarkdownViewer(markdown)
yield MarkdownViewer("")
with Horizontal(id="bottom"):
yield Button(label="Back", id="back", flat=True, variant="error")