Skip to content

Commit caf2f74

Browse files
committed
EN, CZ : texts : sectionList link added. sectionList has subchapters
1 parent 0861bbe commit caf2f74

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

cs/sectionList.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@
22

33
**HelpViewer** automaticky sestaví z nadpisů (h1-6, # ... ######), seznam částí (🔖) a nabídne jej uživateli k rychlému a pohodlnému procházení textem kapitoly.
44

5+
## Viditelnost
56
- Pokud dokument obsahuje pouze hlavní nadpis (h1 / #), žádný seznam se nezobrazí.
67
- Přehled je dostupný, pokud se v dokumentu nachází alespoň jeden další nadpis.
78

9+
## Formát jmen záložek
10+
811
Záložky jsou automaticky pojmenovávány v tomto formátu: #h-(úroveň)-(pořadí).
912
- úroveň je číslo od 1 do 6 podle úrovně nadpisu (h1 = 1, ..., h6 = 6)
1013
- pořadí je index od 0, který určuje pořadí výskytu nadpisů dané úrovně v rámci celé kapitoly
1114

12-
Určování pořadí:
15+
## Určení pořadí záložek
16+
1317
- Počítadlo je oddělené pro každou úroveň (h1 má svůj vlastní čítač, h2 jiný atd.)
1418
- Pořadí se přiděluje při načítání dokumentu zleva doprava, shora dolů.
15-
- ⚠ Pokud do dokumentu vložíte nový nadpis (např. mezi dvě stávající), automaticky převezme index nadpisu, který byl na jeho místě. Nadpisy následující za ním se o jedno pořadí posunou.
19+
20+
## Změny v nadpisech dokumentů
21+
22+
⚠ Pokud do dokumentu vložíte nový nadpis (např. mezi dvě stávající), automaticky převezme index nadpisu, který byl na jeho místě. Nadpisy následující za ním se o jedno pořadí posunou.
1623

1724
Tímto je zajištěno, že záložky zůstanou konzistentní a předvídatelné, i když se struktura dokumentu v budoucnu změní.

cs/texts.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
HelpViewer předpokládá, že text bude ve znakové sadě **UTF-8 no BOM (65001)**.
44

5-
V rámci textu kapitol můžete použít veškerou standardní syntaxi **[md][MDSyntax]** dokumentu jako například **#** značku s nadpisy až do úrovně 6 (tedy například **###### Nadpis**).
5+
V rámci textu kapitol můžete použít veškerou standardní syntaxi **[md][MDSyntax]** dokumentu jako například **#** značku s nadpisy až do úrovně 6 (tedy například **###### Nadpis**). Tyto nadpisy pak **HelpViewer** použije, aby automaticky sestavil [seznam částí][SecList] (🔖).
66

77
Také můžete md kód v případě potřeby prokládat s html nebo javascript kódem.
88

@@ -127,4 +127,5 @@ Ukázka:
127127
Zde je zobrazen další popis dané problematiky.
128128
</details>
129129

130-
[MDSyntax]: https://www.markdownguide.org/basic-syntax/ "MD syntaxe"
130+
[MDSyntax]: https://www.markdownguide.org/basic-syntax/ "MD syntaxe"
131+
[SecList]: sectionList.md "Seznam částí"

en/sectionList.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@
22

33
**HelpViewer** automatically assembles a list of sections (🔖) based on the document's headings (h1-h6, i.e. # ... ######), providing users with a quick and convenient way to navigate through the chapter.
44

5+
## Visibility conditions
6+
57
- If the document contains only a main heading (h1 / #), the list will not be shown.
68
- The list becomes available as soon as there is at least one additional heading of any level (h1-h6).
79

10+
## Naming Format of Anchors
11+
812
Headings are automatically named in the following format: #h-(level)-(order).
913
- level is a number from 1 to 6 indicating the heading level (h1 = 1, ..., h6 = 6)
1014
- order is a zero-based index that reflects the heading’s position among headings of the same level across the entire chapter.
1115

12-
Determining the order:
16+
## Determining Anchor Order
17+
1318
- Each heading level has its own counter (h1, h2, ..., h6 are tracked separately).
1419
- Headings are indexed in the order they appear - left to right, top to bottom.
15-
- ⚠ If a new heading is inserted between two existing ones, it inherits the index of the heading that originally occupied that position. All subsequent headings at the same level are automatically shifted.
20+
21+
## Handling Changes in Document Headings
22+
23+
⚠ If a new heading is inserted between two existing ones, it inherits the index of the heading that originally occupied that position. All subsequent headings at the same level are automatically shifted.
1624

1725
This ensures that anchors remain consistent and predictable, even as the document structure evolves.

en/texts.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
HelpViewer predicts all texts will be coded in **UTF-8 no BOM (65001)** code page.
44

5-
In chapter text you can use all the standard syntax of **[md][MDSyntax]** document as e.g. **#** tag for heading even to lovel 6 (e.g. **###### Heading**).
5+
In chapter text you can use all the standard syntax of **[md][MDSyntax]** document as e.g. **#** tag for heading even to lovel 6 (e.g. **###### Heading**). These headings are used by **HelpViewer** to build [sub chapters structure][SecList] (🔖) automatically.
66

77
You can also intersperse the md code with html or javascript code if needed.
88

@@ -128,3 +128,4 @@ There is extended description of given point.
128128
</details>
129129

130130
[MDSyntax]: https://www.markdownguide.org/basic-syntax/ "MD syntax"
131+
[SecList]: sectionList.md "Sections List"

0 commit comments

Comments
 (0)