Commit Graph
33 Commits
Author SHA1 Message Date
Zef Hemel 1910ffce3e Index handling refinements 2025-06-12 13:52:13 +02:00
Marek S. ŁukasiewiczandGitHub f2f4937854 Utility function to handle empty query results and templates (#1386)
* Add global Lua function 'some'

Moved documentation for 'each' function to non-standard section.

* Revert "Add optional argument to template.each for empty collection output (#1359)"

This reverts commit b73dadec67.

* Reimplement #1359 using 'some' function
2025-05-12 07:33:49 +02:00
wbhoustonandGitHub c0f68f0906 Add notes on Space Lua Pattern Matching (#1366) 2025-05-02 07:36:04 +02:00
Marek S. ŁukasiewiczandGitHub b73dadec67 Add optional argument to template.each for empty collection output (#1359)
When omitted, the function outputs empty string for empty table as before.
The feature was motivated by the Maintenance page in v1 that showed messages
instead of just empty blocks (ported over).
2025-04-30 11:01:39 +02:00
Marek S. ŁukasiewiczandGitHub b9488b45c8 Fix table constructor in editor.filterBox example (close #1344) (#1360)
Also added description field from FilterOption, others didn't seem relevant
2025-04-30 11:01:00 +02:00
Marek S. ŁukasiewiczandGitHub 971e19f591 Add Lua features for integers (#1363)
* Parse hexadecimal numeric constants in Lua

Fix lua grammar to not require a "+" after "e" in numbers.
Add tests for parsing correct number value.

* Implement bitwise operators in Lua

They throw an error when called on fractional values,
like Lua 5.4 but with a hint to round them manually.
2025-04-30 10:58:45 +02:00
Zef Hemel 3356a3bc5f Update Datastore API documentation to reflect key format changes from string to list for keys in set, get, and delete operations. 2025-04-28 18:52:09 +02:00
Zef Hemel 34557e0575 Update documentation for consistency and clarity
- Revised multiple documentation files to correct references and improve clarity, including updates to the Command Palette, Document Editor, and various Markdown files.
- Removed outdated references to "Slash Templatese" and replaced them with "Slash Templates" for consistency.
- Enhanced explanations regarding meta pages and shortcuts, ensuring accurate guidance for users.
2025-04-17 12:04:20 +02:00
Zef Hemel 2ac30edb2f Update configuration documentation and remove deprecated templates
- Enhanced the `Config.md` documentation to clarify built-in configuration options and the use of the `config.set` API.
- Removed outdated `Page Template.md` and `Slash Template.md` files to streamline documentation and avoid confusion.
- Updated references in various documentation files to reflect the removal of deprecated templates and ensure consistency across the site.
2025-04-17 11:55:09 +02:00
Zef Hemel e1a6643d9a Website documentation work 2025-04-06 21:49:15 +02:00
Zef Hemel 4b52da3d86 Missing API docs 2025-04-03 18:09:51 +02:00
Zef Hemel db62692d5a - Start of a migration guide
- Included a warning at the top of the SilverBullet documentation indicating that it is for version 2, which is still in progress.
- Provided a link to version 1 for users preferring a stable version and included a note about active development on v2.
2025-03-30 21:21:33 +02:00
Zef Hemel 45b767fd3c Lua widgets: html can now also be a DOM node
Encoding some more space lua priorities and documenting them
2025-03-28 17:38:32 +01:00
Zef Hemel 64e537732b Debug: Reset Client is now called System: Wipe Client
Merged two datastores into one (for both state and files), this will trigger a resync on upgrade
2025-03-28 12:17:17 +01:00
Zef Hemel 6e551cd245 Lua: cron:secondPassed event 2025-03-21 17:38:25 +01:00
Zef Hemel b1421dc030 Update table.find API 2025-03-21 16:48:30 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel e6aa89020a Lua: table.find 2025-03-21 16:11:00 +01:00
Zef Hemel bafd2974e1 Lua API docs update 2025-03-18 18:20:49 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
KitAmbraidandGitHub 31792a3a43 space lua: os.date add support for %U, %V and %W (#1250) 2025-02-22 12:00:54 +01:00
Zef Hemel 5111b5a380 http.request Lua syscall 2025-02-13 21:12:00 +01:00
Zef Hemel fb7be2a45a Changelog updates and Lua fixes 2025-02-09 18:37:21 +01:00
Zef Hemel 8eebb8dd67 Expose index.extractFrontmatter as syscall 2025-02-07 15:39:51 +01:00
Zef Hemel a169406d37 Lua: huge API breaking change: converted all snake_case APIs to camelCase 2025-02-06 10:04:45 +01:00
Zef Hemel 41d5743673 Load .lua files with dofile 2025-01-19 16:23:08 +01:00
Zef Hemel 6078452a6c Breaking Lua API changes:
* tpl -> template.new
* define_command -> command.define
* define_event_listener -> event.listen
* tag -> index.tag

Updated in the docs
2025-01-19 14:32:11 +01:00
Zef Hemel 72b4ecdc36 Blacklist shell syscalls in Lua for now (security) 2025-01-19 13:02:01 +01:00
Zef Hemel 83550c1623 Exposing Objects indexing as syscalls 2025-01-17 10:41:02 +01:00
Zef Hemel b398a6b2ff Docs fixes 2025-01-16 20:52:30 +01:00
Zef Hemel 38983b49c5 AI generated API docs 2025-01-16 20:41:52 +01:00
Zef Hemel 8b2e76ee51 Lua API docs 2025-01-16 20:05:13 +01:00
Zef Hemel 5604f6d8c2 Lua: tweaks and docs 2025-01-14 20:26:47 +01:00