You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/readme.md
+106-3Lines changed: 106 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,10 @@
1
-
# SAM Help Build Instructions
1
+
# SAM Help
2
2
3
-
These instructions are for building SAM's Help system in HTML from text files in reStructuredText (.rst) format with the Sphinx documentation generator.
3
+
These instructions are for writing and editing content and building SAM's Help system.
4
4
5
-
Sphinx is a Python package that converts .rst files into structured html documents. It can also be used to generate a PDF document using LaTex.
5
+
Writing and editing content requires knowledge of reStructuredText (.rst) format. ReStructuredText is a text markup language, see https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html.
6
+
7
+
The build process uses the Sphinx documentation generator. Sphinx is a Python package that converts .rst files into structured html documents and documents in other formats, see https://www.sphinx-doc.org/en/master/.
6
8
7
9
## Requirements
8
10
@@ -12,8 +14,109 @@ Sphinx is a Python package that converts .rst files into structured html documen
12
14
13
15
Tested on Windows with Python 3.12.10 and GNU Make 4.4.1.
14
16
17
+
## Build Instructions
18
+
19
+
1. Set up a Python virtual environment and install the packages listed in requirements.txt.
20
+
21
+
You only need to build the environment once. After the environment is built, you can start with Step 2 to bulid Help.
22
+
23
+
2. Open a terminal window and go to the SAM doc folder.
24
+
25
+
```
26
+
cd path/to/sam_dev/SAM/doc
27
+
```
28
+
29
+
3. Activate the Python environment.
30
+
31
+
For example, using Python's virtual environment manager `venv`:
32
+
33
+
```
34
+
path/to/sam-help-venv/Scripts/activate
35
+
```
36
+
37
+
3. Run Make.
38
+
39
+
```
40
+
make html
41
+
```
42
+
43
+
To clean the build first, run `make clean`.
44
+
45
+
4. If there are any build errors, fix them by editing the appropriate .rst file(s).
46
+
47
+
5. When the build finishes, HTML and associated files should be in the `path/to/sam_dev/SAM/deploy/runtime/help/html` folder.
48
+
49
+
To see Help, open the index.html file.
50
+
15
51
## Help Context IDs
16
52
53
+
Help context IDs are defined in different places depending on the context.
54
+
55
+
The Help context ID consists of the folder and file name of the HTML for the Help topic.
56
+
57
+
For example, the Help topic for the behind-the-meter Battery Dispatch input page is "battery-storage/battery_dispatch_btm".
58
+
59
+
The Help ID is the path to the HTML file without the `.html` extension. The extension is added by the `ShowHelp()` function in `SAM/main.cpp`.
60
+
61
+
## SAM Input Pages
62
+
63
+
Help IDs for SAM input pages are defined in `startup.lk`. The `addpage()` function for the input page "help" parameter points to the folder and file name of the HMTL file for the page's Help topic.
64
+
65
+
For example, for the **Battery Dispatch** page for behind the meter batteries, the help id is defined by the `'help' = 'battery-storage/battery_dispatch_btm'` parameter:
Note registration email is sent to NSRDB for weather file downloads. Also update registration post on forum.
14
+
15
+
MSPT SolarPILOT differences between UI / SSC, and between Mac/Linux and Windows. See "MSPT / SolarPILOT cross-platform results" email.
16
+
17
+
Update excess generation option descriptions pending update to dgrules field in URDB. See Brian email "Sample dg options and checkboxes" 10/13/2025, saved in Revisions 2026 folder.
18
+
19
+
DSCR debt sizing note, see Brian email 10/31/2025 "Addtional thoughts on debt sizing error message".
0 commit comments