Commit Graph

129 Commits

Author SHA1 Message Date
Cadence Ember 63d37d5e4f
Fix: "Cache-busting" for static files 2022-10-30 23:56:25 +13:00
Cadence Ember d3c5498d47
"Cache-busting" for static files 2022-10-30 23:51:15 +13:00
Cadence Ember 8b200d621a
Link out to NIWA's wikis where available 2022-10-30 23:15:26 +13:00
Cadence Ember 3c7a2f8453
Rewrite search suggestions module 2022-10-24 18:13:54 +13:00
Cadence Ember d8d4e4375e
Fix imports in wiki name downloader 2022-10-24 18:13:14 +13:00
Cadence Ember bf055836cc
Add download wiki names script 2022-10-24 00:22:47 +13:00
Cadence Ember e709b3cea5
New configuration: feature_search_suggestions
Default true. Set this to false to disable search suggestions for the
whole instance.
2022-10-23 00:35:34 +13:00
Cadence Ember 07db44e732 Add search suggestions 2022-10-23 00:26:27 +13:00
blankie 71705d6e74
Fix used in links that have a namespace in file pages
Example: /ben10/wiki/File:OS_Timespan.png
fe60579a53/includes/Title.php (L1266)
2022-10-13 22:55:36 +13:00
Cadence Ember 722b0589cb
Update minimum wikiname length to 1
Example: https://m.fandom.com/no/wiki/Forside
2022-10-13 22:54:46 +13:00
Cadence Ember 9c05e95f07
Test for proxy links with class image 2022-10-13 22:53:05 +13:00
blankie 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
Cadence Ember 5b4efdd292
Add a funny redirect that I can make use of later 2022-10-13 22:40:14 +13:00
Cadence Ember 4968dc2a49
strict proxy false in test as requested by blankie 2022-10-10 22:54:05 +13:00
Cadence Ember 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
Cadence Ember 58d6a652d8
Style tweaks to file page, add copyright notice 2022-10-10 21:59:33 +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 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
blankie 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
Cadence Ember ade7878f7b
Redirect to actual wiki main page 2022-10-09 22:54:59 +13:00
Cadence Ember 59332fd9d1
Pass siteinfo through code; show sitename in title 2022-10-09 22:50:50 +13:00
Cadence Ember 9aba3ad432
Refactor siteinfo/license fetching 2022-10-09 20:54:49 +13:00
Cadence Ember 6b176e3f8f
Migrate config.rkt to Typed Racket 2022-10-04 22:00:44 +13:00
Cadence Ember 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
blankie 57e700cef5 Deduplicate the wiki name regex 2022-10-04 08:19:05 +00:00
Cadence Ember ece762fc5b
Unify "out: <url>" logging to a function 2022-10-04 21:13:07 +13:00
Cadence Ember 10cdd260e0
Close response after error in proxy 2022-10-04 21:00:33 +13:00
blankie 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
blankie ec55426077
Display real category title
Fixes https://lists.sr.ht/~cadence/breezewiki-discuss/%3CCN5B6AUHFUSC.1H7B7SEFDRDK9%40archer%3E
2022-09-27 07:33:48 +13:00
Cadence Ember 3d8feaba9a
Warn if canonical_origin not present in production 2022-09-17 23:12:06 +12:00
Cadence Ember 4d8746e85e
Case insensitive environment variables 2022-09-17 22:55:25 +12:00
Cadence Ember b57fd99c7d
Support environment variables for configuration 2022-09-17 22:51:42 +12:00
Cadence Ember 711a8225fb
Add global search on home page 2022-09-17 22:36:04 +12:00
Cadence Ember 82978e7c13
Remove table colour override
This is no longer necessary because the table colours are okay because
the page theme is now correctly set.
2022-09-17 22:34:44 +12:00
Cadence Ember a9acfc34a2 Display correct license information 2022-09-17 01:56:03 +12:00
Cadence Ember 37318b8c50 Style updates
- Fix code block font
- Use sans-serif font (don't know how I missed this)
- Smaller font size on cell phones
2022-09-17 00:58:06 +12:00
Cadence Ember 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
Cadence Ember 33ee6a0624
Also display the content on category pages 2022-09-11 23:21:37 +12:00
Cadence Ember 4ad22ca9c1
Move syntax definitions to a new file 2022-09-11 19:38:20 +12:00
Cadence Ember e4bc962b05
Link to automatic redirection tutorial on homepage 2022-09-11 19:05:34 +12:00
Cadence Ember 951a5fe651
Fix wiki home redirection 2022-09-09 23:41:49 +12:00
Cadence Ember 229ec1ee0c
Don't display new editor encouragement 2022-09-09 23:33:01 +12:00
Cadence Ember 660ec56e73
Mobile layout improvements
- Images must fit within the screen
- Attempt to make horizontal page footers vertical on mobile
2022-09-09 23:17:21 +12:00
Cadence Ember 62e1cb33c8
Prevent footer overlapping on mobile 2022-09-09 21:59:19 +12:00
Cadence Ember 31037c9852
fix previous commit 2022-09-09 16:24:26 +12:00
Cadence Ember 7a4bfe4180
Redirect /wikiname to its homepage 2022-09-09 15:42:20 +12:00
Cadence Ember 0a27f6d87f
Improve homepage, add testimonials 2022-09-08 14:50:29 +12:00
Cadence Ember 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
Cadence Ember 78399a3474
Add strict_proxy option to proxy links to images
Default true.
2022-09-08 00:16:24 +12:00
Cadence Ember 3505925f7e
Increase table font size 2022-09-05 23:50:52 +12:00