Skip to content

Commit

Permalink
[WIP] add help for rrm
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriiNazarenkoTine committed Apr 29, 2024
1 parent a47ac2d commit deabec7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = rr-manager
SPK_VERS = 2.0
SPK_REV = 35
SPK_REV = 36
SPK_ICON = src/rr-manager.png

DSM_UI_DIR = app
Expand Down Expand Up @@ -81,6 +81,7 @@ rr-manager_extra_install:
install -m 644 src/app/rr-manager.js $(STAGING_DIR)/app/rr-manager.js
install -m 644 src/app/rr-manager.widget.js $(STAGING_DIR)/app/rr-manager.widget.js
install -m 644 src/app/helptoc.conf $(STAGING_DIR)/app/helptoc.conf
install -m 644 src/app/index.conf $(STAGING_DIR)/app/index.conf
install -m 755 -d $(STAGING_DIR)/app/help
for language in enu fre; do \
install -m 755 -d $(STAGING_DIR)/app/help/$${language}; \
Expand Down
14 changes: 11 additions & 3 deletions src/app/helptoc.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"app": "SYNOCOMMUNITY.RRManager.AppInstance",
"title": "app:index_title",
"content": "simpleapp_index.html",
"toc": []
"title": "app:app_name",
"content": "simpleapp_index.html",
"helpset":"help",
"stringset":"texts",
"toc": [
{
"title": "app:app_name",
"content": "simpleapp_index.html"
"nodes":[]
}
]
}
10 changes: 10 additions & 0 deletions src/app/index.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"app": "SYNOCOMMUNITY.RRManager.AppInstance",
"title": "app:app_name",
"desc": "app:description",
"stringset": "texts",
"keywords": [
"rr",
"RR Manager",
]
}
6 changes: 6 additions & 0 deletions src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ service_postinst ()
-e "s|@this_is_sharename@|${wizard_download_share}|g" \
"${SYNOPKG_PKGDEST}/app/config.txt"
fi

# shellcheck disable=SC2129
echo "Install Help files"
pkgindexer_add "${SYNOPKG_PKGDEST}/app/index.conf"
pkgindexer_add "${SYNOPKG_PKGDEST}/app/helptoc.conf"

exit 0
}

Expand Down

0 comments on commit deabec7

Please sign in to comment.