f216a1996a
Stop redirecting pages if there's a redirect=no parameter
2022-12-05 00:15:03 +13:00
9fd2b4699d
Optimise update-tree-wiki somewhat
2022-12-04 23:46:24 +13:00
9afccbb9cd
Support light/dark themes as per Fandom's styles
2022-11-30 00:03:54 +13:00
ef12faf72d
Uncollapse more wiki sections
2022-11-15 20:45:44 +13:00
aab52bd92b
Use <!DOCTYPE html> standards mode on all pages
2022-11-05 23:40:05 +13:00
e812f2082c
Deduplicate body-class logic into head-data struct
2022-10-31 19:39:19 +13:00
9c05e95f07
Test for proxy links with class image
2022-10-13 22:53:05 +13:00
2e6fa6088b
Proxy links with class image
...
Some images don't have an image-thumbnail class, for example:
https://breezewiki.pussthecat.org/minecraft/wiki/Enchanting%20Table#Usage
2022-10-13 09:46:17 +00:00
7a8a1cd40f
Remove noscript versions of images
...
Script versions are likely better quality, and BreezeWiki makes them
viewable without requiring scripts anyway.
2022-10-10 22:52:35 +13:00
5813c49261
Refactor Referrer-Policy header
...
- Change the variable to always-headers so it can be extended in the future
- New function build-headers that assists combining complex logic headers
together with less mess
- Also apply headers to the proxy
2022-10-09 23:45:55 +13:00
adc4b47b83
Set Referrer-Policy to no-referrer
...
Fandom sends a fake 404 to media if there's a Referer header that has an origin
that's not Fandom. However, we can choose not to send the header by setting
Referrer-Policy. See also:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
2022-10-09 10:45:48 +00:00
59332fd9d1
Pass siteinfo through code; show sitename in title
2022-10-09 22:50:50 +13:00
9aba3ad432
Refactor siteinfo/license fetching
2022-10-09 20:54:49 +13:00
79f04565c7
Rename wikiname-regex to px-wikiname
...
I find prefix notation more natural to represent the type/kind of the thing.
2022-10-04 21:19:13 +13:00
57e700cef5
Deduplicate the wiki name regex
2022-10-04 08:19:05 +00:00
ece762fc5b
Unify "out: <url>" logging to a function
2022-10-04 21:13:07 +13:00
2a56107e97
Fix wikis with numbers in the name
...
fe60579a53/extensions/wikia/CreateNewWiki/CreateWikiChecks.php (L112)
Fixes https://lists.sr.ht/~cadence/breezewiki-discuss/%3C814ef2a8-2e91-dcaf-f0c1-805cc1478198%40riseup.net%3E
2022-10-02 10:50:03 +07:00
a9acfc34a2
Display correct license information
2022-09-17 01:56:03 +12:00
0172034319
Match original light/dark page theme reliably
...
- Use keyword parameters for generate-wiki-page
- Apply body classes (including page theme) from original source
2022-09-17 00:56:05 +12:00
33ee6a0624
Also display the content on category pages
2022-09-11 23:21:37 +12:00
e6eabe9cf4
Proxy stylesheets too under strict_proxy
...
This also refactors the configuration system to use make-parameter,
because dynamic binding allows for testing code more easily.
2022-09-08 14:05:47 +12:00
78399a3474
Add strict_proxy option to proxy links to images
...
Default true.
2022-09-08 00:16:24 +12:00
9b3cd6dbe7
Debug xexpr in page-wiki
2022-09-05 13:38:16 +12:00
a5079b5a57
Refactor let
to define
where applicable
...
Racke style guide:
https://docs.racket-lang.org/style/Choosing_the_Right_Construct.html#%28part._.Definitions%29
2022-08-30 21:58:59 +12:00
db4691f56c
Style tweaks
...
* Animated slots click smoother
* Tables are readable on dark themed wikis
* External links are indicated more reliably
2022-08-30 21:26:37 +12:00
80f03aac18
Initial commit
...
* Viewing for wiki pages
* Searches
* Categories
* Logo
* Image proxy
* Config loaded from config.txt
* AGPL 3 license
2022-08-23 22:15:24 +12:00