Your one-stop-cake-shop for everything Freshly Baked has to offer

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

Labels

None yet.

requested-reviewers

None yet.

approved

None yet.

tested-working

None yet.

rejected

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:uuyqs6y3pwtbteet4swt5i5y/sh.tangled.repo.pull/3mbwyxbwgee22
+9
Diff #1
+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

History

2 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
feat(pm/wiki): add Public namespace
5/5 success
expand
expand 0 comments
pull request successfully merged
1 commit
expand
feat(pm/wiki): add Public namespace
1/5 failed, 4/5 success
expand
expand 0 comments