-
-
Notifications
You must be signed in to change notification settings - Fork 253
feat(arch-linux): init #2043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/mediawiki-lib-module
Are you sure you want to change the base?
feat(arch-linux): init #2043
Conversation
a347cca to
ee87d5b
Compare
|
PR is now up to every page aside from:
|
uncenter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there is still a bunch of duplicated input styles?
If you spot any duplicated styles that aren't being annoyingly overwritten by something on the page (like the .pun #brdX regions), do lemme know o7 |
8ac3259 to
b8c797e
Compare
|
This is a reminder for me to change the mediawiki location once that's published, because I'm going to forget :P |
226cf68 to
447f01f
Compare
|
This may have rebased this onto the wrong branch. Could you try rebasing onto origin/main again? |
Also fix up arch wiki guidance. Signed-off-by: Toria <ninetailedtori@uwu.gal> Fix issues. Now I just need to sort out the fmt issues. We can't split regexp onto multiple lines or it breaks the usercss in stylus, which is unfortunate. Signed-off-by: Toria <ninetailedtori@uwu.gal> This fixes a few things - firstly, this style only works on Arch's manpage. Perhaps it's worth generating its own category, and including ALL manpage supports, but we could actually do it all under one thing. Signed-off-by: Toria <ninetailedtori@uwu.gal> Let's do this with a major rework. Let's add support to all manpages to this one file, to keep it neat and organised. Signed-off-by: Toria <ninetailedtori@uwu.gal> Rework - let's do a rework to include it all under an archlinux category! Signed-off-by: Toria <ninetailedtori@uwu.gal> Rework wiki theme to fit mediawiki. This requires: catppuccin#1866. manpage for arch has been finalized and perfected. Signed-off-by: Toria <ninetailedtori@uwu.gal> Remove README (this is autogenerated, no need to move.) Signed-off-by: Toria <ninetailedtori@uwu.gal> Initial merge of PR catppuccin#1870. Being edited by me, don't mind the state of it rn, feel free to report bugs to me! Signed-off-by: Toria <ninetailedtori@uwu.gal> Cleanup! Simplify some of the css, reformat. Signed-off-by: Toria <ninetailedtori@uwu.gal> Whoops, typo! Signed-off-by: Toria <ninetailedtori@uwu.gal> Move generics into global domain changes. Fix unnecessary redefinitions. Signed-off-by: Toria <ninetailedtori@uwu.gal> Push a few changes to table colouring. Accidentally typo'd a change. Signed-off-by: Toria <ninetailedtori@uwu.gal> Big rework electric booga2 Move label, fix some bugs of overwriting, still needs some table and heading definitions to move as well. I *should've* fixed most things, but oh well. Also, border-color: surface0 -> surface2 now! Signed-off-by: Toria <ninetailedtori@uwu.gal> Veeeeeeery big update, working on EVERYTHING!!! Signed-off-by: Toria <ninetailedtori@uwu.gal> S...spaces? spaces??? Signed-off-by: Toria <ninetailedtori@uwu.gal> deno fmt Signed-off-by: Toria <ninetailedtori@uwu.gal> Fix a few things: timestamp, rss-icon, colors of h3. Need to still do selective rss-icon colours. Signed-off-by: Toria <ninetailedtori@uwu.gal> Fix rss-icon theming. Signed-off-by: Toria <ninetailedtori@uwu.gal> Rework of some of the colours Especially links css structure. Still tryna work out some bugs, oddly enough bbs overwrites a ton. Signed-off-by: Toria <ninetailedtori@uwu.gal> Add usercontent. Final commit for tonight! Signed-off-by: Toria <ninetailedtori@uwu.gal> Checklist and rbox support. I know, should be in bed rn qwq Signed-off-by: Toria <ninetailedtori@uwu.gal> Quick fix to links, quick change to li a for bbs. Add colours to sticky and closed labels as well. Signed-off-by: Toria <ninetailedtori@uwu.gal> Fix link backgrounds borking on bbs. Signed-off-by: Toria <ninetailedtori@uwu.gal> Add support for downloads.archlinux. Just needed h5! Signed-off-by: Toria <ninetailedtori@uwu.gal> Add errorlist for search errors. Fix selections. Can't seem to fix cursor-based focus selections though. Needs debugging. Signed-off-by: Toria <ninetailedtori@uwu.gal> Remove cursor setting - we shouldn't touch it in our userstyles. Signed-off-by: Toria <ninetailedtori@uwu.gal> Remove padding from button. Aesthetic choice, should push these upstream. Signed-off-by: Toria <ninetailedtori@uwu.gal> Exclude gitlab.archlinux.org in global Issue was domain(archlinux.org) scope, now uses negative lookahead regex to solve issues. Signed-off-by: Toria <ninetailedtori@uwu.gal> Whoops, missed the commit. Signed-off-by: Toria <ninetailedtori@uwu.gal> Fixing a dicy issue with regex, everything works now! Signed-off-by: Toria <ninetailedtori@uwu.gal> Fix regex to ACTUALLY work! Apparently you can't numeric modifier before lookaheads and behinds because of various logic reasons...wish you could skip when doing lookaheads, like look 2 ahead/behind etc... Signed-off-by: Toria <ninetailedtori@uwu.gal> Comment changes, form input spec. comment: // -> /**/ form input: button text color -> link color (form inputs follow link button style.) Signed-off-by: Toria <ninetailedtori@uwu.gal> Working on an initial change. This won't make sense just yet. Signed-off-by: Toria <ninetailedtori@uwu.gal>
remove container from mw for now, add vector-pinned-container settings to inherit directly on the page (flows a lot better, fitting in line with our mw style.) Signed-off-by: Toria <ninetailedtori@uwu.gal>
447f01f to
f53c088
Compare
Moving stuff to lib/mediawiki to better organise miniserve in the meantime. Remove unnecessary note now that issue has been patched. Signed-off-by: Toria <ninetailedtori@uwu.gal>
uncenter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of duplication between the first @-moz-document and for bbs.archlinux.com. Can we avoid that? Does the regex for the first one not include bbs?
This is what I would recommend doing.
You could do a |
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Co-authored-by: uncenter <uncenter@uncenter.dev>
Co-authored-by: uncenter <uncenter@uncenter.dev>
I'm going to do the wrapper, tragically there's no solution. I tried refactoring to remove dupes outright and it broke as like last time I tested. I'll wrap the whole thing I think. |
Co-authored-by: uncenter <uncenter@uncenter.dev>
Did you try making mixins and then just applying those in the right places? I see no reason why that wouldn't work if done correctly. |
Signed-off-by: Toria <ninetailedtori@uwu.gal>
|
Generally we should avoid regex if possible. Hard to read, hard to maintain, often there are better solutions :) |
|
Fwiw here is a good playground that I like to use: https://regex101.com/r/wrKYCM/1 |
That's what I've been using, have been for years! xD |
Also slower, so you're completely right on that. It's just in my regex mania I've completely forgotten to see if I could make it easier with just prefixing xD |
Actually, this was my entire plan xD |
Yeah there isn't any reason we need to use \w over |
Just saying I put the test strings for each of the URLs in there so it's easier. |
note: security.archlinux.org or aur.archlinux.org icons might not work if content-security-policy blocks it. Signed-off-by: Toria <ninetailedtori@uwu.gal>
…tion. Signed-off-by: Toria <ninetailedtori@uwu.gal>
…t! Gotta do mixins next. Signed-off-by: Toria <ninetailedtori@uwu.gal>
Ya, that's what I've been doing! :3 it is annoying though, I have to then test it twice, because stylus regex isn't fully with the same accepted tokens as it is in that tester, so I have to check every time what sites are recognised. xD anyway rn I'm doing mixins, so will be big update soon! |
TOC variables should NOT be used, and possibly the other archwiki variables in the wiki, but am awaiting response on whether this will change: https://gitlab.archlinux.org/archlinux/archwiki/-/issues/91#note_387552 Signed-off-by: Toria <ninetailedtori@uwu.gal>
I might be actually godly at this now...knock on wood... Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
Signed-off-by: Toria <ninetailedtori@uwu.gal>
cd5f44e to
0c3dd38
Compare
…fixing on this, hover box AND alternating colours don't seem to match up with this yet unfortunately. Signed-off-by: Toria <ninetailedtori@uwu.gal>
Closes #1870, closes #1381.
🎉 Theme for Arch Linux 🎉
Honestly, this is a major refactor of the existing arch-wiki theme into an umbrella "Arch Linux" userstyle, including:
💬 Additional Comments 💬
This is based off of the old PR that died, #1381, but will be moving the wiki to use MediaWiki variables in the library module e.g. #1895, once we can confirm it working as it should on arch's wiki (no leftover overriding on their end). All other sites will be done by me, aside from the AUR one which was done by someone else (though it'll be edited by me as well, to fall in line with the new style of formatting).
Requires: #1866
🗒 Checklist 🗒
/styles/archlinuxcontaining the contents of the/templatedirectory.userstyles.ymlfile with information about the new userstyle.catppuccin.user.less- all the CSS for the userstyle, based on the template.