]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mdhelp: add (full) screenshot of Configuration -> Base mdhelp: remove additional...
authorMark Clarkstone <hello@markclarkstone.co.uk>
Thu, 14 Apr 2016 01:38:00 +0000 (02:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 14 Apr 2016 07:46:40 +0000 (09:46 +0200)
docs/class/config.md
docs/class/imagecache.md
docs/docresources/configbaseall.png [new file with mode: 0644]
docs/property/config_channelicon_path.md [new file with mode: 0644]
docs/property/config_channelname_scheme.md [new file with mode: 0644]
docs/property/config_picon_path.md [new file with mode: 0644]
docs/property/config_picon_servicetype.md [new file with mode: 0644]
src/config.c

index 6bbcaebd8bfa99430235233ca0f6eaf3a8a5cf09..29dc1e1e17c26859f8d70e7268f0c46620b4b08b 100644 (file)
@@ -1,6 +1,4 @@
-##Configuration - General
-
 This tabs allow configuration of several general parameters that affect
 the core Tvheadend functionality.
 
-!['General' Tab Screenshot 1](docresources/configgeneraltab.png)
+!['General Base' Tab Screenshot 1](docresources/configbaseall.png)
index aaf020068e936c3a2fa3696482c1c32e86cff58d..140d2f540500b32a0f9b63b046ae6cfa4a1464ea 100644 (file)
@@ -1,5 +1,3 @@
-##Configuration - Image Cache
-
 This will cache any channel icons or other images (such as EPG metadata)
 to be served from the local webserver. This can be useful for
 multi-client systems and, generally, to reduce hits on upstream
diff --git a/docs/docresources/configbaseall.png b/docs/docresources/configbaseall.png
new file mode 100644 (file)
index 0000000..42d85d0
Binary files /dev/null and b/docs/docresources/configbaseall.png differ
diff --git a/docs/property/config_channelicon_path.md b/docs/property/config_channelicon_path.md
new file mode 100644 (file)
index 0000000..5d700c8
--- /dev/null
@@ -0,0 +1,8 @@
+: The following placeholders are available:
+
+Placeholder | Function
+:----------:| --------
+**%C**      | The transliterated channel name in ASCII (safe characters, no spaces, etc. - so `Das Erste HD` will be `Das_Erste_HD`, but `WDR Köln` will be `WDR_Koln`)
+**%c**      | The channel name (URL encoded ASCII)
+
+Example: `file:///tmp/icons/%C.png` or `http://example.com/%c.png`
diff --git a/docs/property/config_channelname_scheme.md b/docs/property/config_channelname_scheme.md
new file mode 100644 (file)
index 0000000..b05f231
--- /dev/null
@@ -0,0 +1,26 @@
+: 
+
+Note that you must correctly set the *channel icon path* (above) for 
+this option to take effect/generate icon filenames. You may need to use 
+the *[Reset Icon]* button in 
+*Configuration -> Channel / EPG -> Channels* to trigger filename 
+(re-)generation.
+
+Scheme                 | Description
+-----------------------|-------------------
+No Scheme              | Use service name "as is" to generate the filename.
+All lower-case         | Generate lower-case filenames.
+Service name picons    | Generate lower-case filenames using picon formatting.
+
+When using *No Scheme* or *All lower-case* - spaces are replaced with 
+underscores `_` and non-alphanumeric characters are URL encoded.
+
+When using the *service name picon scheme* - some characters will be 
+replaced:
+
+Char                   | Replacement
+-----------------------|----------------------
+`*`                    | star
+`+`                    | plus
+` ` (space)            | None (it's removed).  
+
diff --git a/docs/property/config_picon_path.md b/docs/property/config_picon_path.md
new file mode 100644 (file)
index 0000000..aba81a4
--- /dev/null
@@ -0,0 +1,6 @@
+This can be named however you wish, as either a local (file://) or 
+remote (http://) location - however, remember that it’s pointing to a 
+directory as the picon names are automatically generated from the 
+service parameters frequency, orbital position, etc.).
+
+Example: `file:///home/hts/picons`
diff --git a/docs/property/config_picon_servicetype.md b/docs/property/config_picon_servicetype.md
new file mode 100644 (file)
index 0000000..204141a
--- /dev/null
@@ -0,0 +1,4 @@
+:
+If your picon pack uses filenames that start with "1_0_1_xxxx" you'll want to 
+use the *force service type to 1* setting. If your filenames use the 
+standard naming scheme e.g "1_0_19_xxxx" leave it as standard.
index 6a5b5f7d43f7e13fb157e2b37b539458d1227bf3..af44f32c37928931acf107cd2cdd9b16fdbfbae5 100644 (file)
@@ -1968,12 +1968,40 @@ config_muxconfpath_notify ( void *o, const char *lang )
 #endif
 }
 
+static char *
+config_channelicon_path_doc(const struct property *p, const char *lang) 
+{
+     extern const char *tvh_doc_config_channelicon_path_property[];
+     return prop_md_doc(tvh_doc_config_channelicon_path_property, lang);
+}
+
+static char *
+config_channelname_scheme_doc(const struct property *p, const char *lang) 
+{
+     extern const char *tvh_doc_config_channelname_scheme_property[];
+     return prop_md_doc(tvh_doc_config_channelname_scheme_property, lang);
+}
+
+static char *
+config_picon_path_doc(const struct property *p, const char *lang) 
+{
+     extern const char *tvh_doc_config_picon_path_property[];
+     return prop_md_doc(tvh_doc_config_picon_path_property, lang);
+}
+
+static char *
+config_picon_servicetype_doc(const struct property *p, const char *lang) 
+{
+     extern const char *tvh_doc_config_picon_servicetype_property[];
+     return prop_md_doc(tvh_doc_config_picon_servicetype_property, lang);
+}
+
 extern const char *tvh_doc_config_class[];
 
 const idclass_t config_class = {
   .ic_snode      = &config.idnode,
   .ic_class      = "config",
-  .ic_caption    = N_("Configuration"),
+  .ic_caption    = N_("Configuration - Base"),
   .ic_event      = "config",
   .ic_perm_def   = ACCESS_ADMIN,
   .ic_doc        = tvh_doc_config_class,
@@ -2019,6 +2047,8 @@ const idclass_t config_class = {
       .type   = PT_STR,
       .id     = "full_version",
       .name   = N_("Last updated from"),
+      .desc   = N_("The version of Tvheadend that last updated the "
+                   "config."),
       .off    = offsetof(config_t, full_version),
       .opts   = PO_RDONLY | PO_HIDDEN | PO_EXPERT,
       .group  = 1
@@ -2037,7 +2067,7 @@ const idclass_t config_class = {
       .id     = "uilevel",
       .name   = N_("User interface level"),
       .desc   = N_("Sets the default interface view level (next to the "
-                   "help button)."),
+                   "Help button)."),
       .off    = offsetof(config_t, uilevel),
       .list   = config_class_uilevel,
       .group  = 1
@@ -2056,8 +2086,8 @@ const idclass_t config_class = {
     {
       .type   = PT_BOOL,
       .id     = "ui_quicktips",
-      .name   = N_("User interface quick tips"),
-      .desc   = N_("Allow to show the quick tips for the form fields."),
+      .name   = N_("User interface quick tips (tooltips)"),
+      .desc   = N_("Enable/disable interface quick tips."),
       .off    = offsetof(config_t, ui_quicktips),
       .opts   = PO_ADVANCED,
       .group  = 1
@@ -2068,7 +2098,7 @@ const idclass_t config_class = {
       .name   = N_("Use HTTP digest authentication"),
       .desc   = N_("Digest access authentication is intended as a security trade-off. "
                    "It is intended to replace unencrypted HTTP basic access authentication. "
-                   "This option should be enabled for the standard usage."),
+                   "This option should be enabled for standard usage."),
       .off    = offsetof(config_t, digest),
       .opts   = PO_ADVANCED,
       .group  = 1
@@ -2190,7 +2220,7 @@ const idclass_t config_class = {
       .type   = PT_STR,
       .id     = "theme_ui",
       .name   = N_("Theme"),
-      .desc   = N_("The default theme for web interface to use if the user "
+      .desc   = N_("The default web interface to use if the user's "
                    " theme isn't set in the Access Entries tab."),
       .list   = theme_get_ui_list,
       .off    = offsetof(config_t, theme_ui),
@@ -2249,7 +2279,7 @@ const idclass_t config_class = {
       .id     = "prefer_picon",
       .name   = N_("Prefer picons over channel name"),
       .desc   = N_("If both a picon and a channel-specific "
-      "(e.g. channelname.jpg) icon are defined, use the picon."),
+      "(e.g. channelname.jpg) icon are defined, prefer the picon."),
       .off    = offsetof(config_t, prefer_picon),
       .opts   = PO_ADVANCED,
       .group  = 6,
@@ -2257,12 +2287,13 @@ const idclass_t config_class = {
     {
       .type   = PT_STR,
       .id     = "chiconpath",
-      .name   = N_("Channel icon path (see Help)"),
+      .name   = N_("Channel icon path"),
       .desc   = N_("Path to an icon for this channel. This can be "
                    "named however you wish, as either a local "
                    "(file://) or remote (http://) image. "
                    "See Help for more infomation."),
       .off    = offsetof(config_t, chicon_path),
+      .doc    = config_channelicon_path_doc,
       .opts   = PO_ADVANCED,
       .group  = 6,
     },
@@ -2273,6 +2304,7 @@ const idclass_t config_class = {
       .desc   = N_("Scheme to generate the the channel icon names "
                    "(all lower-case, service name picons etc.)."),
       .list   = config_class_chiconscheme_list,
+      .doc    = config_channelname_scheme_doc,
       .off    = offsetof(config_t, chicon_scheme),
       .opts   = PO_ADVANCED,
       .group  = 6,
@@ -2280,10 +2312,11 @@ const idclass_t config_class = {
     {
       .type   = PT_STR,
       .id     = "piconpath",
-      .name   = N_("Picon path (see Help)"),
+      .name   = N_("Picon path"),
       .desc   = N_("Path to a directory (folder) containing your picon "
                    "collection. See Help for more detailed "
                    "information."),
+      .doc    = config_picon_path_doc,
       .off    = offsetof(config_t, picon_path),
       .opts   = PO_ADVANCED,
       .group  = 6,
@@ -2295,6 +2328,7 @@ const idclass_t config_class = {
       .desc   = N_("Select scheme to generate the picon names "
                    "(standard, force service type to 1)"),
       .list   = config_class_piconscheme_list,
+      .doc    = config_picon_servicetype_doc,
       .off    = offsetof(config_t, picon_scheme),
       .opts   = PO_ADVANCED,
       .group  = 6,