1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Use json instead of json5 for syntax highlight in docs

Looks like website only recognizes javascript & json, and is not aware
of jsonc or json5.

Will result in small regression on Github web view - comments will show
up as red (since comments are not part of json format), but syntax
highlight would work both on website and on Github.

Alternative is using javascript for syntax highlight, however syntax
highlighter for json looks better on both website and Github (since it
uses separate highlighting for json keys, separate from strings in
values)
This commit is contained in:
Ivan Savenko
2024-12-04 16:50:01 +00:00
parent 9e07b5c5de
commit 879aaba980
38 changed files with 154 additions and 154 deletions

View File

@@ -8,7 +8,7 @@ VCMI allows overriding HoMM3 .def files with .json replacement. Compared to .def
## Format description
```json5
```json
{
// Base path of all images in animation. Optional.
// Can be used to avoid using long path to images
@@ -64,7 +64,7 @@ This json file will allow replacing .def file for a button with png images. Butt
3. Blocked state. Button is blocked and can not be interacted with. Note that some buttons are never blocked and can be used without this image
4. Highlighted state. This state is used by only some buttons and only in some cases. For example, in main menu buttons will appear highlighted when mouse cursor is on top of the image. Another example is buttons that can be selected, such as settings that can be toggled on or off
```json5
```json
{
"basepath" : "interface/MyButton", // all images are located in this directory
@@ -82,7 +82,7 @@ This json file will allow replacing .def file for a button with png images. Butt
This json file allows defining one animation sequence, for example for adventure map objects or for town buildings.
```json5
```json
{
"basepath" : "myTown/myBuilding", // all images are located in this directory