summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/main_APIDump.lua
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2016-12-19 17:08:19 +0100
committerMattes D <github@xoft.cz>2016-12-19 17:08:19 +0100
commitefc7fed05b4800289cc644fbdeff18fe6cdd2a96 (patch)
tree237ef6d66aa2a8073c5d4200dde81f73a7727f6c /Server/Plugins/APIDump/main_APIDump.lua
parentReverted temporary redirect to LuaAPI docs (#3487) (diff)
downloadcuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.gz
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.bz2
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.lz
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.xz
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.tar.zst
cuberite-efc7fed05b4800289cc644fbdeff18fe6cdd2a96.zip
Diffstat (limited to 'Server/Plugins/APIDump/main_APIDump.lua')
-rw-r--r--Server/Plugins/APIDump/main_APIDump.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/Server/Plugins/APIDump/main_APIDump.lua b/Server/Plugins/APIDump/main_APIDump.lua
index bbd2fa19e..624aed93b 100644
--- a/Server/Plugins/APIDump/main_APIDump.lua
+++ b/Server/Plugins/APIDump/main_APIDump.lua
@@ -271,7 +271,7 @@ local function WriteHtmlHook(a_Hook, a_HookNav)
f:write([[<!DOCTYPE html><html>
<head>
<title>Cuberite API - ]], HookName, [[ Hook</title>
- <link rel="canonical" href="http://api-docs.cuberite.org/">
+ <link rel="canonical" href="https://api.cuberite.org/]], HookName, [[.html">
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="stylesheet" type="text/css" href="prettify.css" />
<script src="prettify.js"></script>
@@ -965,6 +965,7 @@ local function WriteHtmlClass(a_ClassAPI, a_ClassMenu, a_API)
cf:write([[<!DOCTYPE html><html>
<head>
<title>Cuberite API - ]], a_ClassAPI.Name, [[ Class</title>
+ <link rel="canonical" href="https://api.cuberite.org/]], a_ClassAPI.Name, [[.html">
<link rel="stylesheet" type="text/css" href="main.css" />
<link rel="stylesheet" type="text/css" href="prettify.css" />
<script src="prettify.js"></script>
@@ -1442,6 +1443,7 @@ local function DumpAPIHtml(a_API, a_Descs)
<html>
<head>
<title>Cuberite API - Index</title>
+ <link rel="canonical" href="https://api.cuberite.org/">
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
@@ -1641,7 +1643,7 @@ local function DumpLuaCheck(a_API)
file:write([[
-- This file is the config file for the tool named Luacheck
--- Documentation: http://luacheck.readthedocs.io/en/stable/index.html
+-- Documentation: https://luacheck.readthedocs.io/en/stable/index.html
-- Ignore unused function and loop arguments
unused_args = false
@@ -1891,7 +1893,7 @@ end
local function CheckNewUndocumentedSymbols()
-- Download the official API stats on undocumented stuff:
-- (We need a blocking downloader, which is impossible with the current cNetwork API)
- assert(os.execute("wget -q -O official_undocumented.lua https://apidocs.cuberite.org/_undocumented.lua"))
+ assert(os.execute("wget -q -O official_undocumented.lua https://api.cuberite.org/_undocumented.lua"))
local OfficialStats = cFile:ReadWholeFile("official_undocumented.lua")
if (OfficialStats == "") then
return true, "Cannot load official stats"