Skip to content

Commit 616c5c4

Browse files
fvarruiclaude
andcommitted
Add the JavaPackager logo to the docs and the README
The new logo replaces the default app icon in the docs site navbar and introduction, and heads the README. Favicons (ICO, 32 px PNG), a 192 px icon, an Apple touch icon and a social card (og:image) are generated from it, and the site colors follow the logo's orange. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent bcc5ad8 commit 616c5c4

10 files changed

Lines changed: 50 additions & 20 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
# JavaPackager
1+
<p align="center">
2+
<img src="docs/static/img/logo.png" alt="JavaPackager logo" width="160">
3+
</p>
24

3-
[![Maven Central](https://img.shields.io/maven-central/v/io.github.javapackager/javapackager)](https://central.sonatype.com/artifact/io.github.javapackager/javapackager)
4-
[![GPL-3.0](https://img.shields.io/badge/license-GPL--3.0-%250778B9.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
5-
[![Docs](https://img.shields.io/badge/docs-javapackager.github.io-8a5a2b)](https://javapackager.github.io/JavaPackager/)
5+
<h1 align="center">JavaPackager</h1>
6+
7+
<p align="center">
8+
<a href="https://central.sonatype.com/artifact/io.github.javapackager/javapackager"><img src="https://img.shields.io/maven-central/v/io.github.javapackager/javapackager" alt="Maven Central"></a>
9+
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/badge/license-GPL--3.0-%250778B9.svg" alt="GPL-3.0"></a>
10+
<a href="https://javapackager.github.io/JavaPackager/"><img src="https://img.shields.io/badge/docs-javapackager.github.io-b55d00" alt="Docs"></a>
11+
</p>
612

713
JavaPackager is a hybrid plugin for **Maven** and **Gradle** that packages Java applications as native Windows, macOS and GNU/Linux executables, and generates installers for them: Inno Setup, MSI, DMG, PKG, DEB, RPM and AppImage, with an optional customized JRE.
814

‎docs/content/intro.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar_label: Introduction
44
title: JavaPackager
55
---
66

7+
<img src={require('/img/logo.png').default} alt="JavaPackager logo" className="intro-logo" />
8+
79
JavaPackager is a hybrid plugin for **Maven** and **Gradle** that packages Java applications as native Windows, macOS and GNU/Linux executables, and generates installers for them.
810

911
With a single plugin and a few lines of configuration you get:

‎docs/docusaurus.config.js‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ import {themes as prismThemes} from 'prism-react-renderer';
55
const config = {
66
title: 'JavaPackager',
77
tagline: 'Package Java apps as native Windows, macOS and GNU/Linux apps and installers, with Maven or Gradle',
8-
favicon: 'img/logo.png',
8+
favicon: 'img/favicon.ico',
9+
10+
headTags: [
11+
{tagName: 'link', attributes: {rel: 'icon', type: 'image/png', sizes: '32x32', href: '/JavaPackager/img/favicon-32x32.png'}},
12+
{tagName: 'link', attributes: {rel: 'icon', type: 'image/png', sizes: '192x192', href: '/JavaPackager/img/icon-192.png'}},
13+
{tagName: 'link', attributes: {rel: 'apple-touch-icon', sizes: '180x180', href: '/JavaPackager/img/apple-touch-icon.png'}},
14+
],
915

1016
url: 'https://javapackager.github.io',
1117
baseUrl: '/JavaPackager/',
@@ -48,6 +54,7 @@ const config = {
4854
themeConfig:
4955
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
5056
({
57+
image: 'img/social-card.png',
5158
colorMode: {
5259
respectPrefersColorScheme: true,
5360
},

‎docs/src/css/custom.css‎

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/* JavaPackager docs theme: coffee tones taken from the default app icon */
1+
/* JavaPackager docs theme: the orange of the logo's box (darker in light mode, so links are readable on white) */
22

33
:root {
4-
--ifm-color-primary: #8a5a2b;
5-
--ifm-color-primary-dark: #7c5127;
6-
--ifm-color-primary-darker: #754c25;
7-
--ifm-color-primary-darkest: #603f1e;
8-
--ifm-color-primary-light: #98632f;
9-
--ifm-color-primary-lighter: #9f6831;
10-
--ifm-color-primary-lightest: #b47a3f;
4+
--ifm-color-primary: #b55d00;
5+
--ifm-color-primary-dark: #a35400;
6+
--ifm-color-primary-darker: #9a4f00;
7+
--ifm-color-primary-darkest: #7f4100;
8+
--ifm-color-primary-light: #c76600;
9+
--ifm-color-primary-lighter: #d06b00;
10+
--ifm-color-primary-lightest: #ec7a00;
1111
--ifm-code-font-size: 95%;
1212
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1313
}
1414

1515
[data-theme='dark'] {
16-
--ifm-color-primary: #d9a066;
17-
--ifm-color-primary-dark: #d38f4b;
18-
--ifm-color-primary-darker: #d0873e;
19-
--ifm-color-primary-darkest: #b06d2b;
20-
--ifm-color-primary-light: #dfb181;
21-
--ifm-color-primary-lighter: #e2b98e;
22-
--ifm-color-primary-lightest: #ebcfb1;
16+
--ifm-color-primary: #f0a818;
17+
--ifm-color-primary-dark: #e09a0f;
18+
--ifm-color-primary-darker: #d4920e;
19+
--ifm-color-primary-darkest: #ae780b;
20+
--ifm-color-primary-light: #f2b235;
21+
--ifm-color-primary-lighter: #f3b743;
22+
--ifm-color-primary-lightest: #f5c66b;
2323
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
2424
}
2525

@@ -28,3 +28,18 @@
2828
display: block;
2929
overflow-x: auto;
3030
}
31+
32+
/* logo on the introduction page */
33+
.intro-logo {
34+
float: right;
35+
width: 160px;
36+
margin: 0 0 1rem 1.5rem;
37+
}
38+
39+
@media (max-width: 600px) {
40+
.intro-logo {
41+
float: none;
42+
display: block;
43+
margin: 0 auto 1rem;
44+
}
45+
}
27 KB
Loading

‎docs/static/img/favicon-32x32.png‎

2.66 KB
Loading

‎docs/static/img/favicon.ico‎

17.1 KB
Binary file not shown.

‎docs/static/img/icon-192.png‎

46 KB
Loading

‎docs/static/img/logo.png‎

119 KB
Loading

‎docs/static/img/social-card.png‎

170 KB
Loading

0 commit comments

Comments
 (0)