summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-18 20:21:26 +0200
committermadmaxoft <github@xoft.cz>2013-10-18 20:21:26 +0200
commit201c84afb37def9f4d10f60557813d904c7001f3 (patch)
treee398c00e8cfd8da44be369f6e1b64b0b036d7dae /MCServer/Plugins/APIDump/main.lua
parentAdapted code style. (diff)
downloadcuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar.gz
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar.bz2
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar.lz
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar.xz
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.tar.zst
cuberite-201c84afb37def9f4d10f60557813d904c7001f3.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main.lua')
-rw-r--r--MCServer/Plugins/APIDump/main.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index 22c7ad764..a40600349 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -307,6 +307,9 @@ function DumpAPIHtml()
cssf:close();
end
+ cFile:Copy(g_Plugin:GetLocalDirectory() .. "/run_prettify.js", "API/run_prettify.js");
+ cFile:Copy(g_Plugin:GetLocalFolder() .. "/lang-lua.js", "API/lang-lua.js");
+
-- List the undocumented objects:
f = io.open("API/_undocumented.lua", "w");
if (f ~= nil) then
@@ -748,8 +751,8 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
<head>
<title>MCServer API - ]] .. a_ClassAPI.Name .. [[ Class</title>
<link rel="stylesheet" type="text/css" href="main.css" />
- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
- <script src="http://google-code-prettify.googlecode.com/svn/trunk/src/lang-lua.js"></script>
+ <script src="run_prettify.js"></script>
+ <script src="lang-lua.js"></script>
</head>
<body>
<div id="content">
@@ -849,8 +852,8 @@ function WriteHtmlHook(a_Hook)
<head>
<title>MCServer API - ]] .. HookName .. [[ Hook</title>
<link rel="stylesheet" type="text/css" href="main.css" />
- <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
- <script src="http://google-code-prettify.googlecode.com/svn/trunk/src/lang-lua.js"></script>
+ <script src="run_prettify.js"></script>
+ <script src="lang-lua.js"></script>
</head>
<body>
<div id="content">