Skip to content

Commit 141f95e

Browse files
committed
EN,CZ : branding : How to brand your help file and change visual appearance
1 parent ff7f45a commit 141f95e

File tree

6 files changed

+226
-0
lines changed

6 files changed

+226
-0
lines changed

cs/branding.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# 🏷️ Vizuální identita
2+
3+
Pro úpravu výchozí identity aplikace na Vaši vlastní vizuální identitu poskytuje **HelpViewer** nástroje, které jsou popsané v následujících podkapitolách.
4+
5+
Pro některé nástroje stačí přidání souborů do Vaší nápovědy. Pro jiné je nutná změna konfigurace, případně znalost CSS nebo javascriptu.
6+
7+
Aby se změny projevily pro uživatele, je nutné nápovědu vždy znovu přeložit (vydat novou verzi). Jinak se nové soubory nebo úpravy CSS/JS neprojeví.
8+
9+
## Snadné úpravy
10+
11+
### 🌅 Úvodní obrazovka
12+
13+
- Úvodní obrazovku představuje **README.md** soubor umístěný v kořeni jazykové verze nápovědy.
14+
- Tento soubor se otevírá jako první, když čtenář spustí nápovědu.
15+
16+
### 🌐 Vlastní ikona aplikace v záhlaví stránky (favicon)
17+
18+
- Do repozitáře nápovědy vložte soubor:
19+
**helpProjekt/_base/favicon.png**
20+
21+
### 📖 Ikony stromu témat
22+
23+
- Možnost změn ikon ve stromu témat je popsána v kapitole [Ikony stromu témat][TocIcon].
24+
25+
## Konfigurační úpravy
26+
27+
### 🎨 Náhrada nebo rozšíření kaskádového stylu
28+
29+
- Jak postupovat při nahrazení nebo rozšíření kaskádových stylů je popsáno v kapitole 🛠️ [Vlastní UI prohlížeče][customUI].
30+
- Pamatujte, že některé definice (např. názvy CSS tříd nebo hodnoty atributu id) lze měnit jen s určitými omezeními.
31+
- V souboru hvdata/data.zip:**main.css** se na začátku nachází pseudotřída **:root**, která obsahuje konstanty barevné palety. Pro úvodní úpravy Vám může postačovat právě změna hodnot zde.
32+
- V rámci pseudotřídy **:root**, kterou byste definovali v **plus.css** můžete dodatečně změnit písmo rozhraní celé aplikace.
33+
- CSS3 dovoluje definovat [vizuální efekty a přechody][CSS3Effects]. Dalším zdrojem může být i článek [Web Visual Effects with CSS3][CSS3Effects2].
34+
35+
#### 🖌️ Změna barev a písma
36+
37+
Níže je ukázka, jak nastavit globální proměnné pro barvy a písmo. Tyto proměnné pak můžete použít kdekoli v CSS přes `var()`.
38+
39+
```css
40+
:root {
41+
--color-bg: black;
42+
--color-fg: white;
43+
--font: "Segoe UI", Roboto, sans-serif; /* hlavní písmo */
44+
}
45+
46+
body {
47+
font-family: var(--font);
48+
background: var(--color-bg); /* použití proměnné */
49+
color: var(--color-fg, silver); /* použití proměnné se záložní hodnotou, pokud chybí */
50+
}
51+
```
52+
53+
Pokud je to možné, používejte přednostně CSS proměnné. Usnadňuje to budoucí změny barev, písma nebo dalších parametrů.
54+
55+
#### 🖱️ Definice vlastního kurzoru
56+
57+
- Vlastní kurzor můžete definovat v **plus.css** například takto:
58+
59+
```css
60+
:root {
61+
cursor: url('muj-kurzor.png'), auto;
62+
}
63+
```
64+
65+
Soubor **muj-kurzor.png** musí být v relativním umístění k **index.html** a nemůže být součástí nápověd nebo dat (nemůže být v ZIP archivu).
66+
67+
### 🧩 Pokročilé nástroje, programování
68+
69+
- Některé nástroje v dalších kapitolách mohou být omezené nebo nefunkční v závislosti na způsobu nasazení či konfiguraci ve vašem prostředí. Pro informace o stažení a instalaci balíčku se obraťte na svého systémového administrátora.
70+
- Nástroje vyžadují minimálně konfiguraci. U některých je potřeba doprogramování zdrojóvého kódu při spouštění nápovědy (helpProjekt/_base/**plus.js**).
71+
- Tyto pokročilé možnosti jak upravit identitu aplikace popisuje 🧩 [Dokumentace pro vývojáře][DGuide].
72+
- K dispozici je také automatizovaně generovaná dokumentace běžící instance, která je přístupná přes plugin 🧩 [Prohlížeč objektů][oexplorer] v 🐞 ladícím režimu. Ladící režim není standardně povolen v produkčním prostředí.
73+
- Aplikaci lze stáhnout jako:
74+
- 🚀 kompletní balíček (ZIP)
75+
- 📥 vlastní balíček (ZIP)
76+
- 🐳 [Docker/Podman kontejner][DCONT]
77+
78+
### 💧 Vodoznak
79+
80+
- Funkcionalitu zajišťuje plugin 🖥️ puiWatermark, který je nutno doplnit konfigurací.
81+
82+
### 🖼️ Vlastní ikony pro tlačítka
83+
84+
- Ikony tlačítek lze měnit konfiguračně u pluginů odvozených z 🖥️ puiButton. Každý plugin má konfigurační volbu ⚙️ CAPTION s výchozí hodnotou.
85+
- Pro změnu ikon bude možná potřeba v rámci souboru nápovědy šířit vlastní soubor písma (umístěte do adresáře **_base**).
86+
87+
### 💬 Texty a tooltipy
88+
89+
- Popisky a překlady aplikace jsou řízené lokalizací, která je součástí dat aplikace.
90+
- Více informací najdete v kapitolách:
91+
- 🌐 [Nový jazyk prohlížeče][DGuideLangCentral] - hlavní lokalizační data
92+
- 🌐 [Lokalizace pluginů][DGuideLangPlug] - lokalizační data jednotlivých pluginů
93+
- V rámci těchto změn stačí konfigurační úpravy. Zásah do kódu obvykle není potřeba.
94+
95+
#### © Copyright, ® registrováno a ™ ochranná známka
96+
97+
- Texty copyrightu, registrovaných vzorů, ochranných známek a výzvy je nutné do aplikace doplnit dle vlastních potřeb.
98+
- Žádná zvláštní podpora na úrovni programu pro tuto oblast není nyní implementována.
99+
- Zde je nutné programování a ruční změna nebo rozšíření balíčku aplikace.
100+
- Aplikace je šířena pod otevřenou licencí [MIT][MIT]. Kód můžete měnit a šířit komerčně i nekomerčně, ale musíte zachovat licenci **HelpViewer** a původní copyright ve vlastních balíčcích.
101+
102+
[TocIcon]: tocIcon.md "Ikony stromu témat"
103+
[customUI]: customUI.md "Vlastní UI prohlížeče"
104+
[DGuide]: ?d=hlp-dguide/Help-__.zip "Dokumentace pro vývojáře"
105+
[DGuideLangCentral]: ?d=hlp-dguide/Help-__.zip&p=newLangViewer.md "Nový jazyk prohlížeče"
106+
[DGuideLangPlug]: ?d=hlp-dguide/Help-__.zip&p=plugLocStrings.md "Lokalizace pluginů"
107+
[oexplorer]: ?d=hlp-dguide/Help-__.zip&p=oexplorer.md "Prohlížeč objektů"
108+
[DCONT]: https://github.com/HelpViewer/HelpViewer/pkgs/container/helpviewer "Kontejner"
109+
[CSS3Effects]: https://prismic.io/blog/css-image-effects "50 Creative CSS Image Effects for Engaging Websites"
110+
[CSS3Effects2]: https://leanpub.com/web-visual-effects-with-css3/read "Web Visual Effects with CSS3"
111+
[MIT]: https://github.com/HelpViewer/HelpViewer/blob/master/LICENSE "MIT licence"

cs/files.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ https://discord.gg/J2SjcmqHSZ|Uživatelská skupina
3232
-|-
3333
sectionList.md|Seznam částí
3434
print.md|Tisk
35+
branding.md|Vizuální identita

cs/tree.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Indexace|Indexace kapitoly a popis metadat||indexing.md
2323
📑 Seznam souborů|Seznam souborů (files.lst)||mdata/files.lst.md
2424
📇 Seznam klíčových slov|Seznam klíčových slov (keywords.lst)||mdata/keywords.lst.md
2525
📇 Vazba klíčové slovo - soubor|Vazba mezi klíčovými slovy a soubory (keywords-files.lst)||mdata/keywords-files.lst.md
26+
🏷️ Vizuální identita|Vlastní vizuální identita||branding.md
2627
Vydání verze nápovědy|Vydání verze nápovědy||publish.md
2728
🔑 Token|GitHub token||token.md
2829
🌐 Nový jazyk|Nový jazyk||newLang.md

en/branding.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# 🏷️ Branding your help file
2+
3+
To customize the default identity of the application to your own visual identity, **HelpViewer** provides tools that are described in the following subchapters.
4+
5+
For some tools, simply adding files to your help is sufficient. For others, configuration changes or knowledge of CSS or JavaScript is required.
6+
7+
For the changes to be visible to users, you must always recompile the help (release a new version). Otherwise, the new files or CSS/JS changes will not be visible.
8+
9+
## Easy modifications
10+
11+
### 🌅 Welcome screen
12+
13+
- The welcome screen is represented by the **README.md** file located at the root of the language version of the help.
14+
- This file opens first when the reader launches the help.
15+
16+
### 🌐 Custom application icon in the page header (favicon)
17+
18+
- Place the file in the help repository:
19+
**helpProject/_base/favicon.png**
20+
21+
### 📖 Topic tree icons
22+
23+
- The option to change icons in the topic tree is described in the chapter [TOC icons][TocIcon].
24+
25+
## Configuration edits
26+
27+
### 🎨 Replacing or extending cascading styles
28+
29+
- How to replace or extend cascading styles is described in the chapter 🛠️ [Viewer Custom UI][customUI].
30+
- Keep in mind that some definitions (e.g., CSS class names or id attribute values) can only be changed with certain restrictions.
31+
- In the file hvdata/data.zip:**main.css**, there is a pseudo-class **:root** at the beginning, which contains color palette constants. For initial adjustments, changing the values here may be sufficient.
32+
- Within the pseudo-class **:root**, which you would define in **plus.css**, you can additionally change the font of the entire application interface.
33+
- CSS3 allows you to define [visual effects and transitions][CSS3Effects]. Another source can be the article [Web Visual Effects with CSS3][CSS3Effects2].
34+
35+
#### 🖌️ Changing colors and fonts
36+
37+
Below is an example of how to set global variables for colors and fonts. You can then use these variables anywhere in CSS via `var()`.
38+
39+
```css
40+
:root {
41+
--color-bg: black;
42+
--color-fg: white;
43+
--font: "Segoe UI", Roboto, sans-serif; /* main font */
44+
}
45+
46+
body {
47+
font-family: var(--font);
48+
background: var(--color-bg); /* use of variable */
49+
color: var(--color-fg, silver); /* use of variable with fallback value if missing */
50+
}
51+
```
52+
53+
If possible, use CSS variables. This makes it easier to change colors, fonts, or other parameters in the future.
54+
55+
#### 🖱️ Defining a custom cursor
56+
57+
- You can define a custom cursor in **plus.css** as follows:
58+
59+
```css
60+
:root {
61+
cursor: url('my-cursor.png'), auto;
62+
}
63+
```
64+
65+
The file **my-cursor.png** must be in a relative location to **index.html** and cannot be part of help files or data (it cannot be in a ZIP archive).
66+
67+
### 🧩 Advanced tools, programming
68+
69+
- Some tools in the following chapters may be limited or non-functional depending on the deployment or configuration in your environment. For information on downloading and installing the package, contact your system administrator.
70+
- The tools require minimal configuration. Some require additional programming of the source code when running the help (helpProjekt/_base/**plus.js**).
71+
- These advanced options for modifying the application identity are described in 🧩 [Developer Guide][DGuide].
72+
- Automatically generated documentation of the running instance is also available and accessible via the 🧩 [Object explorer][oexplorer] plugin in 🐞 debug mode. Debug mode is not enabled by default in production environments.
73+
- The application can be downloaded as:
74+
- 🚀 complete package (ZIP)
75+
- 📥 custom package (ZIP)
76+
- 🐳 [Docker/Podman container][DCONT]
77+
78+
### 💧 Watermark
79+
80+
- Functionality is provided by the 🖥️ puiWatermark plugin, which must be supplemented with configuration.
81+
82+
### 🖼️ Custom icons for buttons
83+
84+
- Button icons can be changed in the configuration of plugins derived from 🖥️ puiButton. Each plugin has a configuration option ⚙️ CAPTION with a default value.
85+
- To change the icons, you may need to distribute your own font file within the help file (place it in the **_base** directory).
86+
87+
### 💬 Texts and tooltips
88+
89+
- Application labels and translations are controlled by localization, which is part of the application data.
90+
- For more information, see the following chapters:
91+
- 🌐 [New language for Viewer][DGuideLangCentral] - main localization data
92+
- 🌐 [Plugin localization][DGuideLangPlug] - localization data for individual plugins
93+
- These changes only require configuration adjustments. Code modifications are usually not necessary.
94+
95+
#### © Copyright, ® registered, and ™ trademark
96+
97+
- Copyright, registered design, trademark, and disclaimer texts must be added to the application according to your needs.
98+
- No special program-level support for this area is currently implemented.
99+
- Programming and manual modification or extension of the application package is required here.
100+
- The application is distributed under an open license [MIT][MIT]. You can modify and distribute the code commercially and non-commercially, but you must retain the **HelpViewer** license and the original copyright in your own packages.
101+
102+
[TocIcon]: tocIcon.md "TOC icons"
103+
[customUI]: customUI.md "Viewer Custom UI"
104+
[DGuide]: ?d=hlp-dguide/Help-__.zip "Documentation for developers"
105+
[DGuideLangCentral]: ?d=hlp-dguide/Help-__.zip&p=newLangViewer.md "New language for Viewer"
106+
[DGuideLangPlug]: ?d=hlp-dguide/Help-__.zip&p=plugLocStrings.md "Plugin localization"
107+
[oexplorer]: ?d=hlp-dguide/Help-__.zip&p=oexplorer.md "Object explorer"
108+
[DCONT]: https://github.com/HelpViewer/HelpViewer/pkgs/container/helpviewer "Container"
109+
[CSS3Effects]: https://prismic.io/blog/css-image-effects "50 Creative CSS Image Effects for Engaging Websites"
110+
[CSS3Effects2]: https://leanpub.com/web-visual-effects-with-css3/read "Web Visual Effects with CSS3"
111+
[MIT]: https://github.com/HelpViewer/HelpViewer/blob/master/LICENSE "MIT license"

en/files.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ https://discord.gg/J2SjcmqHSZ|User group
3232
-|-
3333
sectionList.md|Sections list
3434
print.md|Print
35+
branding.md|Branding your help file

en/tree.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Indexation|Chapter indexation and metadata description||indexing.md
2323
📑 File list|File list (files.lst)||mdata/files.lst.md
2424
📇 Keywords list|Keywords list (keywords.lst)||mdata/keywords.lst.md
2525
📇 Keyword - file connection|Keyword - file connection (keywords-files.lst)||mdata/keywords-files.lst.md
26+
🏷️ Branding|Branding your help file||branding.md
2627
Publishing of help|Publishing of help||publish.md
2728
🔑 Token|GitHub PAT token||token.md
2829
🌐 New language|New language||newLang.md

0 commit comments

Comments
 (0)