Skip to content

Commit 3b80e52

Browse files
Hyzualnterray
andauthored
feat: Tuleap docs rebranding (#1726)
part of story #45211: Tuleap 17.0 new theme How to test: - Rebuild the CSS with the following command: $ npm i && npm run build - Rebuild the HTML with the following command: $ make watch-html-tuleap-org - Inspect the docs - How-to guides & User guides use the new orange theme color (links and header have this color) - The logo image on the top-left is updated. - The favicon is updated (you can check the various versions with the "Favicon Detector" extension for Firefox). - The illustrations on the front page use the new logo. - The font is updated to "Public Sans Variable". Why? We do not have a satisfactory way to cache-bust assets like CSS and JS. I used manual renaming ("style" -> "style-2") to avoid cache issues, but I know it's a broken process. It's nonetheless better than nothing. I did not bother with webmanifest images, the favicons should be sufficient. Only "woff2" format is included for Public Sans font. woff2 is considered Baseline since about 2018, it was only IE11 that kept us using TTF and woff format. I used SVG files for front page illustrations so they can be cached. The only exception was the developer guide image, because it uses a CSS class to change the gradient colors, so it must be inline. We could also "hardcode" the color directly to the SVG "stop-color" attributes and make it an external file, I guess the CSS class is more maintainable. Co-authored-by: Nicolas Terray <nicolas.terray@enalean.com>
1 parent 87a9405 commit 3b80e52

26 files changed

+107
-108
lines changed

languages/en/_themes/tuleap_org/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header>
22
<div class="header-content">
33
<a class="header-logo" href="https://www.tuleap.org">
4-
<img class="header-logo-image-orange-black" src="{{ pathto('_static/img/logo-tuleap-flat-orange-black.svg', 1) }}" alt="Tuleap">
4+
<img class="header-logo-image-orange-black" src="{{ pathto('_static/img/logo-tuleap.svg', 1) }}" alt="Tuleap">
55
</a>
66

77
<i class="fas fa-bars header-burger"></i>

languages/en/_themes/tuleap_org/index.html

Lines changed: 20 additions & 6 deletions
Large diffs are not rendered by default.

languages/en/_themes/tuleap_org/layout.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
1616
{% endblock %}
1717

18-
<link rel="icon" type="image/x-icon" href="{{ pathto('_static/img/favicon.png', 1) }}">
18+
<link rel="icon" type="image/x-icon" sizes="48x48" href="{{ pathto('_static/img/favicon/favicon.ico', 1) }}">
19+
<link rel="icon" type="image/png" sizes="96x96" href="{{ pathto('_static/img/favicon/favicon-96x96.png', 1) }}">
20+
<link rel="icon" type="image/svg+xml" sizes="any" href="{{ pathto('_static/img/favicon/favicon.svg', 1) }}">
1921

20-
<link rel="stylesheet" href="{{ pathto('_static/assets/style.css', 1) }}" type="text/css">
22+
<link rel="stylesheet" href="{{ pathto('_static/assets/style-2.css', 1) }}" type="text/css">
2123
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css">
2224

2325
{% if not embedded %}
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading
-2.11 KB
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)