Skip to content

Commit c981fb1

Browse files
committed
[[ Docs ]] Fix some issues building dist-docs
1 parent 73e6a32 commit c981fb1

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

builder/builder_utilities.livecodescript

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,14 @@ end builderIDEDocsFolder
311311

312312
# Location for api js files in > LC8
313313
function builderAPIFolder pEdition, pWhich
314-
return builderIDEDocsFolder() & slash & "html_viewer/resources/data/api-" & pWhich
314+
local tFolder
315+
put builderIDEDocsFolder() & "/html_viewer/resources/data/api" \
316+
into tFolder
317+
if pWhich is not empty then
318+
put "_" & pWhich after tFolder
319+
end if
320+
321+
return tFolder
315322
end builderAPIFolder
316323

317324
# Location for guide js file in > LC8

builder/docs_builder.livecodescript

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ command docsBuilderGenerateDistributedAPI pEdition
21802180
put revDocsModifyForUrl("LiveCode Builder") into tLCBDictionaryA["name"]
21812181
put "LiveCode" into tLCBDictionaryA["author"]
21822182
put "dictionary" into tLCBDictionaryA["type"]
2183-
put "builder" into tLCSDictionaryA["filename"]
2183+
put "builder" into tLCBDictionaryA["filename"]
21842184
put "livecode_builder" into tLCBDictionaryA["api"]
21852185
addToList tLCBDictionaryA, tLibrariesA
21862186

@@ -2195,8 +2195,8 @@ command docsBuilderGenerateDistributedAPI pEdition
21952195
end if
21962196

21972197
put "dictionary" into tDataGridA["type"]
2198-
put "dg" into tLCSDictionaryA["filename"]
2199-
put "livecode_script" into tLCBDictionaryA["api"]
2198+
put "dg" into tDataGridA["filename"]
2199+
put "livecode_script" into tDataGridA["api"]
22002200

22012201
addToList tDataGridA, tLibrariesA
22022202

@@ -2228,6 +2228,7 @@ command docsBuilderGenerateDistributedAPI pEdition
22282228
local tJSON, tFolder
22292229
put revDocsFormatLibraryDocArrayAsJSON(tLibA["name"], tLibA["doc"]) into tJSON
22302230
put builderAPIFolder(pEdition, tLibA["api"]) into tFolder
2231+
pathEnsure tFolder
22312232
put textEncode(tJSON, "utf-8") into url ("binfile:" & tFolder \
22322233
& slash & tLibA["filename"] & ".js")
22332234
end repeat

0 commit comments

Comments
 (0)