Skip to content

Commit

Permalink
Merge pull request #16817 from victoryforce/usermanual-urls
Browse files Browse the repository at this point in the history
Add help URLs for new modules
  • Loading branch information
TurboGit authored May 18, 2024
2 parents 895f595 + d3667f4 commit ed3f06e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/common/usermanual_url.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of darktable,
Copyright (C) 2018-2022 darktable developers.
Copyright (C) 2018-2024 darktable developers.
darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -32,7 +32,6 @@ dt_help_url urls_db[] =
{"layout_zoomable", "lighttable/lighttable-modes/zoomable-lighttable/"},
{"layout_culling", "lighttable/lighttable-modes/culling/"},
{"layout_preview", "lighttable/lighttable-modes/full-preview/"},
{"filter", NULL},
{"colorlabels", "lighttable/digital-asset-management/star-color/#color-labels"},
{"import", "module-reference/utility-modules/lighttable/import/"},
{"import_dialog", "module-reference/utility-modules/lighttable/import/#import-dialog"},
Expand Down Expand Up @@ -122,6 +121,7 @@ dt_help_url urls_db[] =
{"colorchecker", "module-reference/processing-modules/color-look-up-table/"},
{"colorcontrast", "module-reference/processing-modules/color-contrast/"},
{"colorcorrection", "module-reference/processing-modules/color-correction/"},
{"colorequal", "module-reference/processing-modules/color-equalizer/"},
{"colorin", "module-reference/processing-modules/input-color-profile/"},
{"colorize", "module-reference/processing-modules/colorize/"},
{"colormapping", "module-reference/processing-modules/color-mapping/"},
Expand All @@ -134,6 +134,7 @@ dt_help_url urls_db[] =
{"demosaic", "module-reference/processing-modules/demosaic/"},
{"denoiseprofile", "module-reference/processing-modules/denoise-profiled/"},
{"dither", "module-reference/processing-modules/dithering/"},
{"enlargecanvas", "module-reference/processing-modules/enlarge-canvas/"},
{"equalizer", NULL}, // deprecated, replaced by atrous
{"exposure", "module-reference/processing-modules/exposure/"},
{"filmic", "module-reference/processing-modules/filmic-rgb/"},
Expand All @@ -157,6 +158,7 @@ dt_help_url urls_db[] =
{"monochrome", "module-reference/processing-modules/monochrome/"},
{"negadoctor", "module-reference/processing-modules/negadoctor/"},
{"nlmeans", "module-reference/processing-modules/astrophoto-denoise/"},
{"overlay", "module-reference/processing-modules/composite/"},
{"profile_gamma", "module-reference/processing-modules/unbreak-input-profile/"},
{"rawdenoise", "module-reference/processing-modules/raw-denoise/"},
{"rawprepare", "module-reference/processing-modules/raw-black-white-point/"},
Expand Down Expand Up @@ -184,13 +186,16 @@ dt_help_url urls_db[] =

char *dt_get_help_url(const char *name)
{
if(name==NULL) return NULL;
if(name == NULL)
return NULL;

for(int k=0; k< sizeof(urls_db)/2/sizeof(char *); k++)
if(!strcmp(urls_db[k].name, name)) return urls_db[k].url;
for(int k = 0; k < sizeof(urls_db)/2/sizeof(char *); k++)
if(!strcmp(urls_db[k].name, name))
return urls_db[k].url;

return NULL;
}

// clang-format off
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
// vim: shiftwidth=2 expandtab tabstop=2 cindent
Expand Down

0 comments on commit ed3f06e

Please sign in to comment.