Vous avez re莽u un message "Your GitLab account has been locked ..." ? Pas d'inqui茅tude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 70d59114 authored by Alexis Brenon's avatar Alexis Brenon
Browse files

馃殤 Update documentation config

parent 8ec8c477
......@@ -19,9 +19,12 @@ template="assets/ldoc"
sort=true
new_type("package", "Packages", true)
custom_tags={
{"warn", title="Warning"},
{"note", title="Note"}
{"override", title="", hidden=true},
{"inherit", title="", hidden=true},
}
custom_display_name_handler = function(item)
......@@ -39,16 +42,21 @@ custom_display_name_handler = function(item)
return result
end
local torchUrls = {
local docUrls = {
Torch = "https://github.com/torch/torch7/blob/master/doc/%s",
nn = "https://github.com/torch/nn/blob/master/doc/%s",
penlight = "http://stevedonovan.github.io/Penlight/api/%s",
}
custom_see_handler('^(torch%..*)/(.*)/$', function(name, file)
local url = torchUrls.Torch:format(file)
local url = docUrls.Torch:format(file)
return name, url
end)
custom_see_handler('^(nn%..*)/(.*)/$', function(name, file)
local url = torchUrls.nn:format(ref)
local url = docUrls.nn:format(file)
return name, url
end)
custom_see_handler('^penlight%.?(.*)/(.*)/$', function(name, file)
local url = docUrls.penlight:format(file)
return name, url
end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment