Update documentation (again)

This commit is contained in:
luk3yx 2025-02-27 18:26:47 +13:00
parent 1ff48c0258
commit d14f7fe796
5 changed files with 7 additions and 4 deletions

1
.gitattributes vendored
View File

@ -1,4 +1,3 @@
.* export-ignore
doc export-ignore
*.py export-ignore
mkdocs.yml export-ignore

View File

@ -169,7 +169,7 @@ if __name__ == '__main__':
elements = fetch_elements()
print('Done.')
with open('doc/elements.md', 'w') as f:
with open('elements.md', 'w') as f:
f.write('# Auto-generated elements list\n\n')
f.write('This is probably broken.')
for element_name, variants in elements.items():

View File

@ -17,4 +17,4 @@ gui.VBox{
## Alternatives
If you don't want hidden elements to take up any space, see the documentation
for [gui.Nil](layout-elements.md#guinil).
for [`gui.Nil`](layout-elements.md#guinil).

View File

@ -1,4 +1,4 @@
## Padding, spacing, and backgrounds
# Padding, spacing, and backgrounds
All elements can have a `padding` value, which will add the specified amount of
padding around the element. The "root" element of the form (the one returned by

View File

@ -9,3 +9,7 @@ gui.Image{
tooltip = "Air",
}
```
There is also a [`gui.Tooltip`](elements.md#guitooltip) element which lets you
change the background colour of the tooltip. As with `gui.Style`, it is
invisible and won't affect padding.