feat(pm/wiki): add Public namespace #163

merged
opened by a.starrysky.fyi targeting main from private/minion/push-znnulvoxwzkq

Previously our Johnny Decimal templates wouldn't work with pages that started with Public:. Setting that up as a namespace will make it work again with no further modification. It'll also have the benefit of easily listing them and changing the UI around moving pages to be public

Changed files
+9
packetmix
systems
wiki
+9
packetmix/systems/wiki/wiki.nix
··· 224 224 225 225 $wgScribuntoDefaultEngine = 'luasandbox'; 226 226 227 + define("NS_PUBLIC", 3000); 228 + define("NS_PUBLIC_TALK", 3001); 229 + 230 + // Add namespaces. 231 + $wgExtraNamespaces[NS_PUBLIC] = "Public"; 232 + $wgExtraNamespaces[NS_PUBLIC_TALK] = "Public_talk"; 233 + 227 234 $wgNamespacesWithSubpages[NS_MAIN] = true; 235 + $wgNamespacesWithSubpages[NS_PUBLIC] = true; 228 236 229 237 $wgNamespacePreloadDoExpansion = false; // This can't expand {{PAGENAME}} (or like) correctly, making it very nearly useless 230 238 ··· 236 244 ]; 237 245 $wgSearchType = 'CirrusSearch'; 238 246 $wgNamespacesToBeSearchedDefault[NS_CATEGORY] = true; 247 + $wgNamespacesToBeSearchedDefault[NS_PUBLIC] = true; 239 248 240 249 $wgUrlProtocols[] = "rad:"; 241 250