diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-21 14:32:40 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-21 14:32:40 +0100 |
commit | 779aca60511055832e776ab4a6299a2b7e049a16 (patch) | |
tree | dfb031e9bd01b25ab0199286cf6e660f26489817 /MCServer/Plugins/APIDump | |
parent | Merge branch 'master' into cmake (diff) | |
parent | Merge branch 'master', remote-tracking branch 'upstream/master' (diff) | |
download | cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar.gz cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar.bz2 cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar.lz cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar.xz cuberite-779aca60511055832e776ab4a6299a2b7e049a16.tar.zst cuberite-779aca60511055832e776ab4a6299a2b7e049a16.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump')
-rw-r--r-- | MCServer/Plugins/APIDump/Static/.gitignore | 1 | ||||
-rw-r--r-- | MCServer/Plugins/APIDump/main_APIDump.lua | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/Static/.gitignore b/MCServer/Plugins/APIDump/Static/.gitignore new file mode 100644 index 000000000..8d1c8b69c --- /dev/null +++ b/MCServer/Plugins/APIDump/Static/.gitignore @@ -0,0 +1 @@ + diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua index ec5569f55..e5c8b9c30 100644 --- a/MCServer/Plugins/APIDump/main_APIDump.lua +++ b/MCServer/Plugins/APIDump/main_APIDump.lua @@ -1,4 +1,3 @@ - -- main.lua -- Implements the plugin entrypoint (in this case the entire plugin) @@ -232,6 +231,13 @@ end function DumpAPIHtml() LOG("Dumping all available functions and constants to API subfolder..."); + + LOG("Moving static files.."); + cFile:CreateFolder("API/Static"); + local localFolder = g_Plugin:GetLocalFolder(); + for k, v in cFile:GetFolderContents(localFolder .. "/Static") do + cFile:Copy(localFolder .. "/Static/" .. v, "API/Static/" .. v); + end LOG("Creating API tables..."); local API, Globals = CreateAPITables(); |