Pepperminty-Wiki
Pepperminty-Wiki copied to clipboard
Redirect pages do not work.
I have a redirect page to an index of sub-pages in my wiki, the contents as follows:
# REDIRECT [Redirecting to index of Exocortex pages...](?action=list&filter=Exocortex&redirect=yes)
However, when I load this page in my web browser it does not redirect. The page just loads and I have to manually click on the "Redirecting to index of Exocortex pages..." hyperlink on the page.
Did I use the redirect
directive correctly?
Ah, I've tracked down your issue. Try enabling the redirect_absolute_enable
setting.
And no, you aren't using the redirect
GET parameter correctly. The redirect
GET param is allowed for the view
action only - as I have just discovered the redirect
GET param was not documented at all! I have corrected this - it will be a thing in the next release I really need to get around to releasing :P
Closing, but I can always re-open if this doesn't fix your issue.
redirect_absolute_enable
is already turned on. However, Pepperminty keeps defaulting to &redirect=no
even though I explicitly have it set to yes
on the page.
woah, I'll investigate further then.
Hmmm.
- Have you cleared your browser's cache and restarted it?
- If that doesn't help, can you give me the output of the
debug
action please?
- Not yet, working on something else that needs a bunch of tabs.
- Where would I find the output of the debug action?
- Try that first when you have the chance.
-
yourwiki.tld/?action=debug
Output of ?action=debug
:
(I'm having a great deal of difficulty finding a usable pastebin at the moment, my apologies.)
External Memory debug report
============================
Powered by Pepperminty Wiki version v0.24-beta2+caf6c1a.
This report may contain personal information.
Environment: (object) array(
'action' => 'debug',
'page' => 'Exocortex',
'page_safe' => 'Exocortex',
'page_filename' => 'datastore//Exocortex.md',
'is_history_revision' => false,
'history' =>
(object) array(
'revision_number' => -1,
'revision_data' => false,
),
'user' => 'drwho',
'is_logged_in' => true,
'is_admin' => true,
'is_secure' => true,
'user_data' =>
(object) array(
********* secret *********
********* secret *********
'watchlist' =>
array (
),
),
'storage_prefix' => 'datastore//',
'perfdata' =>
(object) array(
'pageindex_decode_time' => 22.013,
'idindex_decode_time' => 0.429,
),
)
Paths: (object) array(
'pageindex' => 'datastore//pageindex.json',
'searchindex' => 'datastore//invindex.sqlite',
'didyoumeanindex' => 'datastore//didyoumeanindex.sqlite',
'idindex' => 'datastore//idindex.json',
'statsindex' => 'datastore//statsindex.json',
'interwiki_index' => 'datastore//interwiki_index.json',
'cache_directory' => 'datastore//._cache',
'settings_file' => 'peppermint.json',
'extra_data_directory' => '._extra_data',
'upload_file_prefix' => 'Files/',
'recentchanges' => 'datastore//recent-changes.json',
)
Server information:
uname -a: Linux bibb 5.4.32-grsec-grsec-plus+ #1 SMP Sat Apr 18 03:13:45 UTC 2020 x86_64
Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Temporary directory: /tmp
Server: Apache
Web root: /home/virtadpt/keerthana.drwho.virtadpt.net
Web server user: virtadpt
PHP version: 7.4.15
index.php location: /home/virtadpt/keerthana.drwho.virtadpt.net/index.php
index.php file permissions: 0644
Current folder permissions: 0755
Storage directory permissions: 0775
Loaded extensions: Core, date, libxml, pcre, sqlite3, filter, hash, intl, json, mbstring, SPL, PDO, Reflection, session, pdo_sqlite, standard, mysqlnd, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, exif, fileinfo, ftp, gd, gettext, iconv, imap, mysqli, openssl, pcntl, pdo_mysql, zlib, posix, pspell, sodium, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, imagick, apcu, Zend OPcache
Settings:
-----
(object) array(
'firstrun_complete' => true,
'sitename' => 'External Memory',
'defaultpage' => 'Main Page',
'admindetails_name' => 'The Doctor',
'admindetails_email' => '[email protected]',
'favicon' => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAB3VBMVEXhERHbKCjeVVXjb2/kR0fhKirdHBziDg6qAADaHh7qLy/pdXXUNzfMAADYPj7ZPDzUNzfbHx/fERHpamrqMTHgExPdHx/bLCzhLS3fVFTjT0/ibm7kRkbiLi7aKirdISHeFBTqNDTpeHjgERHYJCTVODjYQkLaPj6/AADVOTnpbW3cIyPdFRXcJCThMjLiTU3ibW3fVVXaKyvcERH4ODj+8fH/////fHz+Fxf4KSn0UFD/CAj/AAD/Xl7/wMD/EhL//v70xMT/+Pj/iYn/HBz/g4P/IyP/Kyv/7Oz0QUH/9PT/+vr/ior/Dg7/vr7/aGj/QED/bGz/AQH/ERH/Jib/R0f/goL/0dH/qan/YWH/7e3/Cwv4R0f/MTH/enr/vLz/u7v/cHD/oKD/n5//aWn+9/f/k5P/0tL/trb/QUH/cXH/dHT/wsL/DQ3/p6f/DAz/1dX/XV3/kpL/i4v/Vlb/2Nj/9/f/pKT+7Oz/V1f/iIj/jIz/r6//Zmb/lZX/j4//T0//Dw/4MzP/GBj/+fn/o6P/TEz/xMT/b2//Tk7/OTn/HR3/hIT/ODj/Y2P/CQn/ZGT/6Oj0UlL/Gxv//f3/Bwf/YmL/6+v0w8P/Cgr/tbX0QkL+9fX4Pz/qNzd0dFHLAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfeCxINNSdmw510AAAA5ElEQVQYGQXBzSuDAQCA8eexKXOwmSZepa1JiPJxsJOrCwcnuchBjg4O/gr7D9zk4uAgJzvuMgcTpYxaUZvSm5mUj7TX7ycAqvoLIJBwStVbP0Hom1Z/ejoxrbaR1Jz6nWinbKWttGRgMSSjanPktRY6mB9WtRNTn7Ilh7LxnNpKq2/x5LnBitfz+hx0qxUaxhZ6vwqq9bx6f2XXvuUl9SVQS38NR7cvln3v15tZ9bQpuWDtZN3Lgh5DWJex3Y+z1KrVhw21+CiM74WZo83DiXq0dVBDYNJkFEU7WrwDAZhRtQrwDzwKQbT6GboLAAAAAElFTkSuQmCC',
'logo_url' => '',
'logo_position' => 'left',
'show_subpages' => true,
'subpages_display_depth' => 5,
'random_page_exclude' => '/^Files\\/.*$/i',
'random_page_exclude_redirects' => true,
'footer_message' => 'If you\'re not expected, you\'re not invited! So fuck off, okay?',
'editing_message' => '<a href=\'?action=help#20-parser-default\' target=\'_blank\'>Formatting help</a> (<a href=\'https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet\' target=\'_blank\'>Markdown Cheatsheet</a>)',
'editing_tags_autocomplete' => true,
'admindisplaychar' => '',
'protectedpagechar' => '🖕',
'editing' => true,
'anonedits' => false,
'maxpagesize' => 540000,
'parser' => 'parsedown',
'parser_cache' => true,
'parser_cache_min_size' => 1024,
'parser_ext_renderers_enabled' => true,
'parser_ext_renderers' =>
(object) array(
'nomnoml' =>
(object) array(
'name' => 'nomnoml',
'description' => 'The nomnoml UML diagram renderer. Requires the \'nomnoml\' npm package to be globally installed.',
'url' => 'http://nomnoml.com/',
'cli' => 'nomnoml {input_file} {output_file} 0',
'cli_mode' => 'file',
'output_format' => 'image/svg+xml',
'output_classes' =>
array (
0 => 'invert-when-dark',
),
),
'plantuml' =>
(object) array(
'name' => 'PlantUML',
'description' => 'The PlantUML diagram renderer. Supports many different diagram types. Requires plantuml to be installed.',
'url' => 'http://plantuml.com/',
'cli' => 'plantuml -tsvg -pipe',
'cli_mode' => 'pipe',
'output_format' => 'image/svg+xml',
),
'abc' =>
(object) array(
'name' => 'ABC Notation',
'description' => 'A simple music notation typesetter. Much easier to understand than Lilypond. Requires abcm2ps to be installed.',
'url' => 'https://abcnotation.com/',
'cli' => 'abcm2ps -g -O - -',
'cli_mode' => 'pipe',
'output_format' => 'image/svg+xml',
'output_classes' =>
array (
0 => 'invert-when-dark',
),
),
'latexserver' =>
(object) array(
'name' => 'Server-Side MathJax',
'description' => 'Client-side Mathjax via the \'enable_math_rendering\' setting not your thing? Try it server-side instead! Requires the \'mathjax-node-cli\' npm package to be globally installed. Note that you obviously don\'t want to include the latex math inside dolar signs $$ as the reference link tells you to.',
'url' => 'https://math.meta.stackexchange.com/q/5020/221181',
'cli' => 'tex2svg -- {input_text}',
'cli_mode' => 'substitution_pipe',
'output_format' => 'image/svg+xml',
'output_classes' =>
array (
0 => 'invert-when-dark',
),
),
'svginkscape' =>
(object) array(
'name' => 'Inkscape SVG',
'description' => 'Server-side SVG-to-PNG rendering with inkscape. Requires inkscape to be installed and in your PATH, of course.',
'url' => 'https://developer.mozilla.org/en-US/docs/Web/SVG/Element',
'cli' => 'inkscape {input_file} -e {output_file}',
'cli_mode' => 'file',
'output_format' => 'image/svg+xml',
'output_classes' =>
array (
),
),
),
'parser_ext_time_limit' => 10,
'parser_ext_allow_anon' => false,
'parser_toc_heading_level' => 2,
'interwiki_index_location' => '',
'clean_raw_html' => true,
'all_untrusted' => false,
'enable_math_rendering' => true,
'theme_colour' => '#fc1c1c',
'users' =>
(object) array(
'drwho' =>
(object) array(
********* secret *********
********* secret *********
'watchlist' =>
array (
),
),
),
'admins' =>
array (
0 => 'drwho',
),
'anonymous_user_name' => 'Anonymous',
'user_page_prefix' => 'Users',
'user_preferences_button_text' => '⚙ ',
'password_algorithm' => 'PASSWORD_DEFAULT',
'password_cost' => 13,
'password_cost_time' => 350,
'password_cost_time_interval' => 604800,
'password_cost_time_lastcheck' => 1660154604,
'new_password_length' => 32,
'require_login_view' => true,
'readingtime_enabled' => false,
'readingtime_language' => 'en',
'readingtime_action' => 'view',
'data_storage_dir' => 'datastore/',
'watchlists_enable' => false,
'delayed_indexing_time' => 0,
'nav_links' =>
array (
0 => 'user-status',
1 =>
array (
0 => 'Index',
1 => 'index.php?action=list',
),
2 =>
array (
0 => 'Notes',
1 => 'index.php?page=Random%20notes%20and%20stuff',
),
3 =>
array (
0 => 'Names',
1 => 'index.php?page=Names',
),
4 =>
array (
0 => 'Quotes',
1 => 'index.php?page=Quotes',
),
5 => 'search',
6 =>
array (
0 => 'New',
1 => 'index.php?action=edit&unknownpagename=yes',
),
7 =>
array (
0 => 'Abort',
1 => 'index.php?page={page}',
),
8 => 'menu',
9 =>
array (
0 => 'Edit',
1 => 'index.php?action=edit&page={page}',
),
),
'nav_links_extra' =>
(object) array(
'Moderator' =>
array (
0 =>
array (
0 => '◆ 🚫 Delete',
1 => 'index.php?action=delete&page={page}',
),
1 =>
array (
0 => '◆ 🚠 Move',
1 => 'index.php?action=move&page={page}',
),
2 =>
array (
0 => '◆ 🔐 Toggle Protection',
1 => 'index.php?action=protect&page={page}',
),
3 =>
array (
0 => '◆ 🔧 Edit master settings',
1 => 'index.php?action=configure',
),
),
'Wiki' =>
array (
0 =>
array (
0 => '📊 Statistics',
1 => '?action=stats',
),
1 =>
array (
0 => '👥 All Users',
1 => 'index.php?action=user-list',
),
),
'Navigation' =>
array (
0 =>
array (
0 => '🎫 All Tags',
1 => 'index.php?action=list-tags',
),
1 =>
array (
0 => '🎊 Random Page',
1 => '?action=random',
),
2 =>
array (
0 => '📅 Recent changes',
1 => '?action=recent-changes',
),
),
'Page' =>
array (
0 =>
array (
0 => '⌛ Page History',
1 => '?action=history&page={page}',
),
1 =>
array (
0 => '📤 Upload',
1 => 'index.php?action=upload',
),
2 =>
array (
0 => '🔭 Watch',
1 => 'index.php?action=watchlist-edit&do=add&page={page}',
),
),
),
'nav_links_bottom' =>
array (
0 =>
array (
0 => '?',
1 => 'index.php?action=credits',
),
1 =>
array (
0 => 'Help',
1 => 'index.php?action=help',
),
2 =>
array (
0 => 'Edit',
1 => 'index.php?action=edit&page={page}',
),
),
'anoncomments' => false,
'comment_max_length' => 5000,
'comment_min_length' => 10,
'comment_time_icon' => '🕗',
'history_max_revisions' => -1,
'history_revert_require_moderator' => true,
'upload_enabled' => true,
'upload_allowed_file_types' =>
array (
0 => 'image/jpeg',
1 => 'image/png',
2 => 'image/gif',
3 => 'image/webp',
4 => 'image/svg+xml',
5 => 'video/mp4',
6 => 'video/webm',
7 => 'audio/mp4',
8 => 'audio/mpeg',
9 => 'audio/flac',
10 => 'audio/ogg',
11 => 'application/pdf',
),
'preview_file_type' => 'image/png',
'default_preview_size' => 640,
'mime_extension_mappings_location' => '/etc/mime.types',
'mime_mappings_overrides' =>
(object) array(
'text/plain' => 'txt',
'audio/mpeg' => 'mp3',
),
'min_preview_size' => 1,
'max_preview_size' => 2048,
'avatars_show' => true,
'avatars_size' => 40,
'search_characters_context' => 75,
'search_characters_context_total' => 250,
'search_title_matches_weighting' => 10,
'search_tags_matches_weighting' => 5,
'search_didyoumean_enabled' => true,
'search_didyoumean_editdistance' => 2,
'search_didyoumean_cost_insert' => 1,
'search_didyoumean_cost_delete' => 1,
'search_didyoumean_cost_replace' => 1,
'search_didyoumean_seed_word' => ':peppermint:',
'dynamic_page_suggestion_count' => 0,
'similarpages_enabled' => false,
'similarpages_count' => 0,
'defaultaction' => 'view',
'email_debug_dontsend' => false,
'email_subject_utf8' => true,
'email_body_utf8' => true,
'email_verify_addresses' => true,
'updateurl' => 'https://raw.githubusercontent.com/sbrl/pepperminty-wiki/master/index.php',
'optimize_pages' => false,
'minify_pageindex' => true,
'http2_server_push' => true,
'http2_server_push_items' =>
array (
),
'max_recent_changes' => 512,
'export_allow_only_admins' => false,
'stats_update_interval' => 86400,
'stats_update_processingtime' => 100,
'sessionprefix' => 'pepperminty-wiki-pepperminty-wiki',
'sessionlifetime' => 604800,
'disable_peppermint_access_check' => false,
'css_theme_autoupdate_url' => 'https://starbeamrainbowlabs.com/labs/peppermint/themes/default/theme.css',
'css_theme_autoupdate_interval' => 86400,
'css_theme_autoupdate_lastcheck' => 0,
'css_theme_gallery_index_url' => 'https://starbeamrainbowlabs.com/labs/peppermint/themes/themeindex.json',
'css_theme_gallery_selected_id' => 'default',
'css' => '/**
* @id default
* @name Default
* @description The default theme.
* @author Starbeamrainbowlabs
* @author_link https://starbeamrainbowlabs.com/
* @minversion v0.20
*/
:root {
--bg-back: #eee8f2;
--bg-page: #faf8fb;
--bg-page-inset: hsl(270, 22%, 88%);
--bg-comments-1: hsl(31, 64%, 85%);
--bg-comments-2: hsla(27, 92%, 68%, 0.64);
--bg-comments-3: hsla(30, 84%, 72%, 0.54);
--bg-comments-4: hsla(32, 82%, 62%, 0.3);
--text-dark: #111111;
--text-light: hsl(0, 0%, 96%);
--text-bright: hsl(274, 40%, 41%);
--text-placeholder-light: hsla(0, 0%, 100%, 0.9);
--text-os-button: #514C4C;
--text-soft: rgba(33, 33, 33, 0.3);
--text-ultrasoft: rgba(50, 50, 50, 0.3);
--shadow: rgba(80, 80, 80, 0.5);
--checkerboard-bg: #eee;
--checkerboard-overlay: rgba(200, 200, 200, 0.2);
--accent-a0: hsl(253, 79%, 88%);
--accent-a0t: hsla(253, 79%, 88%, 0.3);
--accent-a1: #9e7eb4;
--accent-a2: #8a62a7;
--accent-a3: #442772;
--accent-a4: hsl(253, 79%, 88%);
--accent-b1: #ffa74d;
--accent-b2: #fb701a;
--accent-c1: #e60707;
--accent-c2: #820f0f; /*#8b1a1a*/
--accent-c3: hsl(0, 59%, 20%); /*#8b1a1a*/
--accent-d1: hsl(160, 73%, 26%);
--accent-d2: hsl(159, 76%, 23%);
--accent-d3: hsl(160, 80%, 70%);
--tag: #e2d5eb;
--file: white;
--addition: #09b400;
--deletion: #cf1c11;
--nochange: #847bc7;
/* #ffdb6d #36962c hsl(36, 78%, 80%) hsla(262, 92%, 68%, 0.42) */
}
@media (prefers-color-scheme: dark) {
:root {
--bg-back: hsl(270, 29%, 28%);
--bg-page: hsl(273, 15%, 16%);
--bg-page-inset: hsl(273, 20%, 20%);
--bg-comments-1: hsl(263, 25%, 16%);
--bg-comments-2: hsla(264, 45%, 16%, 0.64);
--bg-comments-3: hsla(266, 64%, 28%, 0.54);
--bg-comments-4: hsla(268, 82%, 32%, 0.3);
--text-dark: hsl(277, 38%, 89%);
--text-bright: hsl(274, 75%, 81%);
/* --text-light: hsl(0, 0%, 6%); */
--text-soft: hsla(0, 0%, 92%, 0.4);
--text-ultrasoft: hsla(0, 0%, 95%, 0.4);
--shadow: rgba(20, 20, 20, 0.5);
--accent-a0: hsl(253, 79%, 88%);
--accent-a1: #9e7eb4;
--accent-a2: #442772;
--accent-a3: hsl(274, 40%, 41%);
--accent-a4: hsl(253, 49%, 20%);
--accent-c1: hsl(5, 100%, 76%);
--accent-c2: hsl(4, 95%, 68%); /*#8b1a1a*/
--accent-c3: hsl(2, 90%, 58%);
--accent-d1: hsl(160, 73%, 46%);
--tag: hsl(273, 46%, 27%);
}
a { color: hsl(208, 67%, 67%); }
a:hover { color: hsl(214, 67%, 75%); }
a:active, a:focus { color: hsl(214, 87%, 85%); }
a:visited { color: hsl(264, 77%, 65%); }
.invert-when-dark { filter: invert(100%); }
}
/* TODO: Refactor to use the CSS grid */
body { margin: 2rem 0 0 0; background: var(--bg-back); line-height: 1.45em; color: var(--text-dark); font-family: sans-serif; }
nav { display: flex; background-color: var(--accent-a2); color: var(--accent-b1); }
nav.top { position: absolute; top: 0; left: 0; right: 0; box-shadow: inset 0 -0.6rem 0.8rem -0.5rem var(--shadow); }
nav.bottom { position: absolute; left: 0; right: 0; box-shadow: inset 0 0.8rem 0.8rem -0.5rem var(--shadow); }
nav.mega-menu { display: flex; flex-direction: row; padding-bottom: 0.4em; border-left: 3px solid var(--accent-a3); border-right: 3px solid var(--accent-a3); }
nav.mega-menu .category { padding: 0.3em 1em; }
nav.mega-menu strong { display: block; }
nav.mega-menu span { display: block; }
nav > span { flex: 1; line-height: 2; display: inline-block; margin: 0; padding: 0.3rem 0.5rem; }
nav:not(.mega-menu) > span { border-left: 3px solid var(--accent-a3); border-right: 3px solid var(--accent-a3); }
nav:not(.nav-more-menu) > span { text-align: center; }
nav:not(.nav-more-menu) a { text-decoration: none; color: inherit; }
nav:not(.nav-more-menu):not(.mega-menu) > span > a { font-weight: bolder; }
.nav-divider { color: transparent; }
.nav-more { position: relative; background-color: var(--accent-a3); min-width: 10em; }
.nav-more > label { font-weight: bold; }
label { cursor: pointer; }
.nav-more-menu { z-index: 10000; position: absolute; flex-direction: column; top: 2.6rem; right: 100000px; text-align: left; background-color: var(--accent-a2); border-top: 3px solid var(--accent-a3); border-bottom: 3px solid var(--accent-a3); }
input[type=checkbox]:checked ~ .nav-more-menu { right: -0.2rem; box-shadow: 0.4rem 0.4rem 1rem 0 var(--shadow); }
.nav-more-menu span { white-space: nowrap; }
.inflexible { flex: none; }
.off-screen { position: absolute; top: -1000px; left: -1000px;}
input[type=search] { width: 14rem; padding: 0.3rem 0.4rem; font-size: 1rem; color: var(--text-light); background: var(--accent-a0t); border: 0; border-radius: 0.3rem; }
input[type=search]::-webkit-input-placeholder { color: var(--text-placeholder-light); }
input[type=search]::-moz-placeholder { color: var(--text-placeholder-light); }
input:focus, textarea:focus { outline: 0.15em solid var(--accent-a0); }
input[type=button], input[type=submit] { cursor: pointer; }
.sidebar + .main-container nav.bottom { position: relative; }
.sidebar { position: relative; z-index: 100; margin-top: 0.6rem; padding: 1rem 3rem 2rem 0.4rem; background: var(--accent-a1); box-shadow: inset -0.6rem 0 0.8rem -0.5rem var(--shadow); }
.sidebar a { color: var(--accent-b1); }
.sidebar ul { position: relative; margin: 0.3rem 0.3rem 0.3rem 1rem; padding: 0.3rem 0.3rem 0.3rem 1rem; list-style-type: none; }
.sidebar li { position: relative; margin: 0.3rem; padding: 0.3rem; }
.sidebar ul:before { content: ""; position: absolute; top: 0; left: 0; height: 100%; border-left: 2px dashed var(--accent-a3); }
.sidebar li:before { content: ""; position: absolute; width: 1rem; top: 0.8rem; left: -1.2rem; border-bottom: 2px dashed var(--accent-a3); }
.preview { text-align: center; }
.preview:hover img, .preview:hover video, .preview:hover audio { max-width: 100%; background-color: var(--checkerboard-bg); background-image: linear-gradient(45deg, var(--checkerboard-overlay) 25%, transparent 25%, transparent 75%, var(--checkerboard-overlay) 75%, var(--checkerboard-overlay)), linear-gradient(45deg, var(--checkerboard-overlay) 25%, transparent 25%, transparent 75%, var(--checkerboard-overlay) 75%, var(--checkerboard-overlay)); background-size:2em 2em; background-position:0 0, 1em 1em; }
.image-controls ul { list-style-type: none; margin: 5px; padding: 5px; }
.image-controls li { display: inline-block; margin: 5px; padding: 5px; }
.link-display { margin-left: 0.5rem; }
.button { appearance: button; -moz-appearance: button; -webkit-appearance: button; text-decoration: none; font-size: 0.9em; }
audio, video, img { max-width: 100%; }
object { width: 100%; height: 90vh; }
figure:not(.preview) { display: inline-block; }
figure:not(.preview) > :first-child { display: block; }
figcaption { text-align: center; }
.avatar { vertical-align: middle; }
.printable { padding: 2rem; }
h1 { text-align: center; }
.sitename { margin-top: 5rem; margin-bottom: 3rem; font-size: 2.5rem; }
.logo { max-width: 4rem; max-height: 4rem; vertical-align: middle; }
.logo.small { max-width: 2rem; max-height: 2rem; }
main:not(.printable) { position: relative; z-index: 1000; padding: 2em 2em 0.5em 2em; background: var(--bg-page); box-shadow: 0 0.1rem 1rem 0.3rem var(--shadow); }
blockquote { padding-left: 1em; border-left: 0.2em solid var(--accent-a3); border-radius: 0.2rem; }
pre { white-space: pre-wrap; padding: 0.3em 0.5em; background: var(--bg-page-inset); border-radius: 0.25em; box-shadow: inset 0 0 0.5em var(--shadow); }
code { font-size: 1.1em; }
a { cursor: pointer; }
a:focus { outline-width: 0.1em; }
a.redlink:link { color: var(--accent-c1); }
a.redlink:visited { color: var(--accent-c2); }
a.redlink:active, a.redlink:focus { color: var(--accent-c3); }
a.interwiki_link::before { content: "\\\\1f6f8"; display: inline-block; margin-right: 0.25em; }
a.interwiki_link { color: var(--accent-d1); }
a.interwiki_link:visited { color: var(--accent-d2); }
a.interwiki_link:active { color: var(--accent-d3); }
.matching-tags-display { display: flex; margin: 0 -2em; padding: 1em 2em; background: hsla(30, 84%, 72%, 0.75); }
.matching-tags-display > label { flex: 0; font-weight: bold; color: var(--accent-a3); }
.matching-tags-display > .tags { flex: 2; }
.search-result { position: relative; }
.search-result::before { content: attr(data-result-number); position: relative; top: 3rem; color: var(--text-soft); font-size: 2rem; }
.search-result::after { content: "Rank: " attr(data-rank); position: absolute; top: 3.8rem; right: 0.7rem; color: var(--text-ultrasoft); }
.search-result > h2 { margin-left: 3rem; }
.search-result-badges { font-size: 1rem; font-weight: normal; }
.search-context { min-height: 3em; max-height: 20em; overflow: hidden; }
.editform { position: relative; }
textarea[name=content] { resize: none; }
.fit-text-mirror { position: absolute; top: 0; left: -10000vw; word-wrap: break-word; white-space: pre-wrap; }
.awesomplete { width: 100%; color: var(--text-dark); }
.awesomplete > ul::before { display: none; }
/* Overly specific to override library css */
.awesomplete > ul[role=listbox] { top: 2.5em; background: var(--accent-a2); }
main label:not(.link-display-label) { display: inline-block; min-width: 16rem; }
input[type=text]:not(.link-display), input[type=password], input[type=url], input[type=email], input[type=number], textarea { margin: 0.5rem 0; }
input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea, textarea[name=content] + pre, #search-box { padding: 0.5rem 0.8rem; background: var(--accent-a4); border: 0; border-radius: 0.3rem; font-size: 1rem; color: var(--text-bright); }
textarea { min-height: 10em; line-height: 1.3em; font-size: 1.25rem; }
textarea, textarea[name=content] + pre, textarea ~ input[type=submit], #search-box { width: calc(100% - 0.3rem); box-sizing: border-box; }
textarea ~ input[type=submit] { margin: 0.5rem 0; padding: 0.5rem; font-weight: bolder; }
.editform input[type=text] { width: calc(100% - 0.3rem); box-sizing: border-box; }
input.edit-page-button[type=\'submit\'] { width: 49.5%; box-sizing: border-box; }
input[type=radio] { transform: scale(2); }
input[type=submit].large { width: 100%; box-sizing: border-box; padding: 0.5em; font-size: 1.25em; font-weight: bolder; }
.preview-message { text-align: center; }
@media (min-width: 800px) {
.jump-to-comments { position: absolute; top: 3.5em; right: 2em; display: block; text-align: right; pointer-events: none; }
}
@media (max-width: 799px) {
.jump-to-comments { display: inline-block; }
.link-parent-page { display: inline-block; }
}
.jump-to-comments > a { pointer-events: all; }
.file-gallery { margin: 0.5em; padding: 0.5em; list-style-type: none; }
.file-gallery > li { display: inline-block; min-width: attr(data-gallery-width); padding: 1em; text-align: center; }
.file-gallery > li img, .file-gallery > li video, .file-gallery > li audio { display: block; margin: 0 auto; background-color: var(--file); }
.page-tags-display { margin: 0.5rem 0 0 0; padding: 0; list-style-type: none; }
.page-tags-display li { display: inline-block; margin: 0.5rem; padding: 0.5rem; background: var(--tag); white-space: nowrap; }
.page-tags-display li a { color: var(--accent-b2); text-decoration: none; }
.page-tags-display li::before { content: "\\\\A"; position: relative; top: 0.03rem; left: -0.9rem; width: 0; height: 0; border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; border-right: 0.5rem solid var(--tag); }
.page-list { list-style-type: none; margin: 0.3rem; padding: 0.3rem; }
.page-list li:not(.header) { margin: 0.3rem; padding: 0.3rem; }
.page-list li .size { margin-left: 0.7rem; color: var(--text-soft); }
.page-list li .editor { display: inline-block; margin: 0 0.5rem; }
.page-list li .tags { margin: 0 1rem; }
.tag-list { list-style-type: none; margin: 0.5rem; padding: 0.5rem; }
.tag-list li { display: inline-block; margin: 1rem; }
.mini-tag { background: var(--tag); margin: 0 0.4em; padding: 0.2rem 0.4rem; color: var(--accent-b2); text-decoration: none; }
.grid-large { display: grid; grid-template-columns: repeat(auto-fit, minmax(25em, 1fr)); grid-auto-rows: min-content; grid-gap: 1em; justify-content: center;}
.theme-item { justify-self: center; text-align: center; }
.theme-item label { min-width: auto; }
.help-section-header::after { content: "#" attr(id); float: right; color: var(--text-soft); font-size: 0.8rem; font-weight: normal; }
.stacked-bar { display: flex; }
.stacked-bar-part { break-inside: avoid; white-space: pre; padding: 0.2em 0.3em; }
.cursor-query { cursor: help; }
summary { cursor: pointer; }
.larger { color: var(--addition); }
.smaller, .deletion { color: var(--deletion); }
.nochange { color: var(--nochange); font-style: italic; }
.significant { font-weight: bolder; font-size: 1.1rem; }
.deletion, .deletion > .editor { text-decoration: line-through; }
.highlighted-diff { white-space: pre-wrap; }
.diff-added { background-color: rgba(31, 171, 36, 0.6); color: rgba(23, 125, 27, 1); }
.diff-removed { background-color: rgba(255, 96, 96, 0.6); color: rgba(191, 38, 38, 1); }
.newpage::before { content: "N"; margin: 0 0.3em 0 -1em; font-weight: bolder; text-decoration: underline dotted; }
.move::before { content: "\\\\1f69a"; font-size: 1.25em; margin: 0 0.1em 0 -1.1em; }
.upload::before { content: "\\\\1f845"; margin: 0 0.1em 0 -1.1em; }
.new-comment::before { content: "\\\\1f4ac"; margin: 0 0.1em 0 -1.1em; }
.reversion::before { content: "\\\\231b"; margin: 0 0.1em 0 -1.1em; }
.comments { padding: 1em 2em; background: var(--bg-comments-1); box-shadow: 0 0.1rem 1rem 0.3rem var(--shadow); }
.comments .not-logged-in { padding: 0.3em 0.65em; background: var(--bg-comments-2); border-radius: 0.2em; font-style: italic; }
.comments textarea { resize: vertical; }
.comment { margin: 1em 0; padding: 0.01em 0; background: var(--bg-comments-3); }
.comment-header { padding: 0 1em; }
.comment .name { font-weight: bold; }
.comment-body { padding: 0 1em; }
.comment-footer { padding-left: 1em; }
.comment-footer-item { padding: 0 0.3em; }
.comment-footer .delete-button { appearance: button; -moz-appearance: button; -webkit-appearance: button; text-decoration: none; color: var(--text-os-button); }
.permalink-button { text-decoration: none; }
.comments-list .comments-list .comment { margin: 1em; }
.reply-box-container.active { padding: 1em; background: var(--bg-comments-4); }
footer { padding: 2rem; }
/* Small screen adjustments */
@media (max-width: 480px) {
body {
margin: 0;
}
nav.top {
position: static;
flex-direction: column;
}
nav.mega-menu {
flex-direction: column;
}
nav.top > span:first-child {
border-top: 3px solid var(--accent-a3);
}
main:not(.printable) {
padding: 1em 1em 0.5em 1em;
}
.comments {
padding: 1em;
}
footer {
padding: 1em;
}
}
',
'css_custom' => '/* Enter your custom css here. */
.similar-page-suggestions {
display: none;
}
/* Original settings:
nav {
display: flex;
background-color: #154f76;
color: var(--accent-b1);
} */
nav {
display: flex;
background-color: #060023;
color: #2480ad;
}
nav > span {
padding: 0.3rem;
}
nav:not(.mega-menu) > span {
border-left: 3px solid var(--accent-a3);
border-right: initial;
}
nav:not(.nav-more-menu):not(.mega-menu) > span > a {
font-weight: initial;
}
.nav-more {
position: relative;
background-color: #060023;
min-width: 10em;
font-weight: initial;
}
.nav-more > label {
font-weight: initial;
}
.sitename {
margin-top: 3rem;
margin-bottom: 3rem;
font-size: 2.5rem;
}
body {
line-height: 1.00;
}
footer {
padding: initial;
display: none;
}
.page-tags-display li::before {
content: none;
}
.page-tags-display li a {
color: initial;
text-decoration: none;
}
h1 {
text-decoration-line: underline;
text-decoration-style: dotted;
}
.mini-tag {
margin: 0;
padding: 0;
background: none;
color: #000099;
}
',
'cli_enabled' => true,
'cli_prompt' => '[1m[31m#[0m ',
********* secret *********
'redirect_absolute_enable' => true,
'comment_enabled' => false,
'comment_hide_all' => true,
'avatars_gravatar_enabled' => true,
'cookie_secure' => 'auto',
'parser_mangle_external_links' => false,
'sidebar_show' => false,
'sidebar_maxdepth' => 1,
'parser_onebox_enabled' => true,
'parser_onebox_preview_length' => 250,
)
-----