Commit Graph

17 Commits

Author SHA1 Message Date
Cadence Ember
b7fe180790 Add JSONP support on other endpoints
Refactored the code to define and process endpoints rather than doing
it imperatively, which avoided a lot of duplicated code.
2025-11-17 15:18:54 +13:00
Cadence Ember
23a201cc84 Add JSONP mode and captcha
JSONP mode is on by default. It will fetch main wiki pages in the
browser, without the server needing to make any requests. To turn it
off, add [feature_json] enabled = false to config.ini.

Captcha is off by default. It is a custom solution and is still
experimental at this stage. If you turn it on, please monitor the logs
to see how it goes! config.ini options are as follows:

[captcha]
enabled = true|false
log = true|false
ip_header = <header name set by your reverse proxy, like x-forwarded-for>
2025-11-04 23:06:55 +13:00
Cadence Ember
e0fec5fa9c Add bind_host setting requested by Artemis 2023-03-08 22:53:07 +13:00
Cadence Ember
c7cce5479d Create archiver and offline code handlers
Somewhat messy. Will clean up gradually in future commits.
2023-02-06 23:56:03 +13:00
Cadence Ember
9afccbb9cd Support light/dark themes as per Fandom's styles 2022-11-30 00:03:54 +13:00
Cadence Ember
5b4efdd292 Add a funny redirect that I can make use of later 2022-10-13 22:40:14 +13:00
blankie
07074dccfc Add support for File: pages
Fixes https://lists.sr.ht/~cadence/breezewiki-discuss/%3Cb2835a70-5118-4df0-90c9-4333486a4b69%40nixnetmail.com%3E
2022-10-09 22:11:53 +07:00
Cadence Ember
711a8225fb Add global search on home page 2022-09-17 22:36:04 +12:00
Cadence Ember
7a4bfe4180 Redirect /wikiname to its homepage 2022-09-09 15:42:20 +12:00
Cadence Ember
4815db4063 Dispatch based on Host header (subdomain support) 2022-09-05 01:32:45 +12:00
Cadence Ember
20a4043889 Simplify files even more
- breezewiki.rkt now always sets up the hot-reload watcher
- dispatcher logic moved to dispatcher-tree.rkt
- dispatcher-tree is a macro that doesn't care about the order of its forms
2022-09-04 22:13:36 +12:00
Cadence Ember
13c1b0636b In breezewiki.rkt, start server in thread
This allows inspecting the program state using
(enter! "breezewiki.rkt") in the REPL.
2022-09-01 14:55:25 +12:00
Cadence Ember
fb00a2e443 More powerful static file handling 2022-08-31 00:45:37 +12:00
Cadence Ember
301636d597 Add homepage, architecture changes
* Create homepage
* Page data is automatically reloaded (except when compiling)
* Entrypoint is breezewiki.rkt for running and dist.rkt for compiling
* Include stack trace when sending error messages
2022-08-30 21:33:28 +12:00
Cadence Ember
b18a31df4a Use ini for configuration 2022-08-24 20:59:11 +12:00
Cadence Ember
73a5cb68c5 Look for paths relative to source files 2022-08-24 13:23:46 +12:00
Cadence Ember
1ae323fa5e Move the startup file 2022-08-23 22:43:44 +12:00