4

KDE websites infrastructure update and new websites

 3 years ago
source link: https://carlschwan.eu/2019/08/29/kde-websites-infrastructure-update-and-new-websites/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Since my latest post two months ago, a lot of things changed regarding the KDE websites. More and more KDE websites are switching to the Aether theme designed by Ken Vermette. You can follow the progress at the Phabricator task T10827.

New websites

  • All three wikis were updated to MediaWiki 1.31 and are now using the Aether MediaWiki theme. There are some visual glitches when using the dark theme version that can still be observed. They are usually very simple to fix, so please report them in bugs.kde.org.

All 3 kde wiki

  • The French speaking KDE websites was also updated to use the Aether Jekyll theme. It’s only an aesthetic change and some parts of the content still need to be updated. If you speak French and want to help, contact the French speaking KDE community in #kde-fr (IRC/Matrix) or via email.

Screenshot fr.kde.org

  • Choqok also got a new website.

Screenshot choqok.kde.org

Behind the scenes

Using a single codebase for the CSS theming

One of the big problems encountered was the multiplication of different versions of the CSS files. There is a CCS file used by konsole.kde.org and choqok.kde.org, one for all the MediaWiki instances, and one for kde.org. This was getting harder and harder to maintain, so I decided to create a single SASS codebase for all the KDE websites.

The code is located in the KDE Gitlab instance and uses Symfony Encore to generate all the CSS files from the SASS codebase.

For the moment, the CSS code is only split into multiple SASS modules and the tooling builds multiple versions using some generic components (breeze buttons) and other more specific components (MediaWiki dark theme).

Compiling the SASS files to CSS is done using the KDE Binary Factory and produces two versions of each file, one with versioning (e.g. boostrap.hi8yh2huh.css) which is intended for all the dynamics websites (MediaWiki, kde.org, …) and another one without versioning for the static websites (Hugo and Jekyll).

Using versioned assets in a MediaWiki skin

MediaWiki uses ResourceLoader to load assets, but in our case we want to use the Webpack generated manifest.json to load the versioned file. For this, I’m using a Symfony component asset that is doing most of the job for me.

Here is the code used:


$urlPackage = new UrlPackage(
    'https://cdn.kde.org/',
    new JsonManifestVersionStrategy('https://cdn.kde.org/aether-devel/version/manifest.json')
);

$out->addStyle( $urlPackage->getUrl('aether-devel/version/bootstrap.css'), 'all' );

I actually created a fork of the JsonManifestVersionStrategy class because of a bug in the library. I hope my change will be merged upstream.

New features in the Jekyll theme

The Jekyll theme got some nice new features added by various contributors.

And special thanks to Mark Winter for fixing a small typo.

Junior Job

There are multiple other websites in the pipeline and any help is welcome.

If you are interested in one of this tasks, join us in #kde-www in IRC/Matrix.

Websites Bof at Akademy

I’m going to Akademy and I will organize a BoF about the websites. It will take place Tuesday, 10th September 2019 in room U2-08b, just after the Plasma BoFs.

If you are interested and want to attend, you can put yourself in the list T11423.


Recommend

  • 45
    • www.tuicool.com 7 years ago
    • Cache

    KDE Connect – New Stuff II

    It’s time for another feature update for KDE Connect! You can now run commands on connected devices from the Plasmoid. The Dol...

  • 40
    • www.dvratil.cz 5 years ago
    • Cache

    January and February in KDE PIM

    Following the post about what happened in KDE PIM in November and December by Volker, let’s look into what the KDE PIM community has be...

  • 12

    New releases Kid3 Kid3is a handy but powerful music tagging program which lets you edit the ID3 tags and similar formats on MP3 and other music files. This month is has moved to be hosted b...

  • 9

    What is cooking on KDE websites this month (September)? September 28, 2020 - Carl Schwan This month a few cool things happened to the KDE websites. The wiki instance we u...

  • 16
    • carlschwan.eu 4 years ago
    • Cache

    A new look for KDE.org

    A new look for KDE.org April 18, 2020 This blog post is availabe in: en...

  • 7
    • www.kdab.com 3 years ago
    • Cache

    Fun and Scary Code from Qt and KDE

    This website uses cookiesWe use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social...

  • 6

    KDE Apps Mid-Year Update (KDE.news) [Posted June 27, 2022 by corbet] Here's an update on recent KDE application d...

  • 7
    • dot.kde.org 3 years ago
    • Cache

    KDE Apps Mid-Year Update

    The summer sun is here and new apps come with it -- unless you live in the southern hemisphere, in which case, congratulations! You got past the winter solstice, and it's all longer days and new app releases from here onwards. LabPlot 2.9....

  • 6
    • pointieststick.com 2 years ago
    • Cache

    This week in KDE: New Spectacle

    This week in KDE: New Spectacle Nate

  • 4

    Health of the KDE community (2023 Update) Back ...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK