Skip to content

Commit f480c42

Browse files
committed
New Help IDs for Sphinx-generated help
Help ID is path to HTML file with no extension <folder>/<filename>. For example Help ID "battery-storage/battery_dispatch_fom" points to battery_dispatch_fom.html in "/help/html/battery-storage" folder.
1 parent d8609f6 commit f480c42

18 files changed

+721
-728
lines changed

deploy/runtime/startup.lk

Lines changed: 700 additions & 701 deletions
Large diffs are not rendered by default.

src/casewin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ void NumericRangeDialog::OnCommand(wxCommandEvent &evt)
23202320
switch(evt.GetId())
23212321
{
23222322
case wxID_HELP:
2323-
SamApp::ShowHelp("edit_parametric_variables");
2323+
SamApp::ShowHelp("window-reference/win_edit_parametric_variables");
23242324
break;
23252325

23262326
case ID_values:

src/combinecases.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void CombineCasesDialog::OnEvt(wxCommandEvent& e)
125125
switch (e.GetId())
126126
{
127127
case wxID_HELP:
128-
SamApp::ShowHelp("combine_cases");
128+
SamApp::ShowHelp("window-reference/win_combine_cases");
129129
break;
130130
case ID_chlCases:
131131
{

src/library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class SettingsDialog : public wxDialog
109109
break;
110110

111111
case wxID_HELP:
112-
SamApp::ShowHelp("weather_manage_folders");
112+
SamApp::ShowHelp("weather-data/weather_manage_folders");
113113
break;
114114
}
115115
}

src/lossadj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ class LossAdjustmentDialog : public wxDialog
437437
switch( e.GetId() )
438438
{
439439
case wxID_HELP:
440-
SamApp::ShowHelp("edit_losses");
440+
SamApp::ShowHelp("window-reference/win_edit_losses");
441441
break;
442442
//case ID_ENABLE_HOURLY:
443443
case ID_ENABLE_INDEX:

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ void MainWindow::OnCommand( wxCommandEvent &evt )
949949
switch( evt.GetId() )
950950
{
951951
case wxID_HELP:
952-
SamApp::ShowHelp( cwin ? cwin->GetCurrentContext() : wxString("welcome_page") );
952+
SamApp::ShowHelp( cwin ? cwin->GetCurrentContext() : wxString("index") );
953953
break;
954954
case wxID_ABOUT:
955955
SamApp::ShowHelp( ":about" );

src/materials.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void MatPropDialog::OnCommand(wxCommandEvent &evt)
205205
{
206206
case ID_IMPORT: Import(); break;
207207
case ID_EXPORT: Export(); break;
208-
case wxID_HELP: SamApp::ShowHelp("edit_material_properties"); break;
208+
case wxID_HELP: SamApp::ShowHelp("window-reference/win_edit_material_properties"); break;
209209
}
210210
}
211211

src/nohrsc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void NOHRSCDialog::OnEvt(wxCommandEvent& e)
222222
switch (e.GetId())
223223
{
224224
case wxID_HELP:
225-
SamApp::ShowHelp("NOHRSC_advanced_download");
225+
SamApp::ShowHelp("window-reference/win_nohrsc_advanced_download");
226226
break;
227227
case ID_btnResources:
228228
{

src/nsrdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void NSRDBDialog::OnEvt( wxCommandEvent &e )
185185
switch( e.GetId() )
186186
{
187187
case wxID_HELP:
188-
SamApp::ShowHelp("nsrdb_advanced_download");
188+
SamApp::ShowHelp("window-reference/win_nsrdb_advanced_download");
189189
break;
190190
case ID_btnResources:
191191
{

src/parametric.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3630,7 +3630,7 @@ void Parametric_QS::OnCommand(wxCommandEvent &evt)
36303630
}
36313631
case wxID_HELP:
36323632
{
3633-
SamApp::ShowHelp("parametric_quick_setup");
3633+
SamApp::ShowHelp("window-reference/win_parametric_quick_setup");
36343634
break;
36353635
}
36363636
case ID_setupOption:

0 commit comments

Comments
 (0)