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

@@ -105,11 +105,24 @@ def build(args):
f.write("```\n")
f.write("`Using \"python\" as the syntax highlighting language seems to work well with Ground.`")
with open(os.path.join(docs_folder, "myStruct_struct.md"), "w") as f:
f.write("# -myStruct\n")
f.write("Describe your struct briefly. (Comments are example values)\n\n")
f.write("```python\n")
f.write("struct -myStruct\n")
f.write("\tinit &myField -string # \"example value\"\n")
f.write("\tinit &myField2 -int # 1234\n")
f.write("\tinit &myField3 -bool # true\n")
f.write("endstruct\n")
f.write("```")
with open(os.path.join(build_dir, "SUMMARY.md"), "w") as f:
f.write("# mylib\n")
f.write("Introduce your module here!\n\nThis file will serve as an index page for all your docs.\n\n")
f.write("## Subtitle (use this for categories)\n")
f.write("## Functions\n")
f.write("- [mylib_MyFunction](docs/my_function.md)\n\n")
f.write("## Structs\n")
f.write("- [-myStruct](docs/myStruct_struct.md)\n\n")
f.write("## Changelog\n")
f.write("### v0.0.1 (latest)\n")
f.write("- Initial release.\n")