Update LÖVE documentation

pull/1386/head
Phil Scherer 4 years ago
parent 86eb725c22
commit 8c782fb190

@ -463,7 +463,7 @@ credits = [
'http://www.lua.org/license.html' 'http://www.lua.org/license.html'
], [ ], [
'LÖVE', 'LÖVE',
'2006-2016 LÖVE Development Team', '2006-2020 LÖVE Development Team',
'GFDL', 'GFDL',
'http://www.gnu.org/copyleft/fdl.html' 'http://www.gnu.org/copyleft/fdl.html'
], [ ], [

@ -12,6 +12,7 @@
.smwtable { width: 100%; } .smwtable { width: 100%; }
.smwtable td:nth-last-child(2), .smwtable td:last-child { width: 2.5em; } .smwtable td:nth-last-child(2), .smwtable td:last-child { width: 2.5em; }
.cell-orange { background: var(--noteOrangeBackground); }
.cell-green { background: var(--noteGreenBackground); } .cell-green { background: var(--noteGreenBackground); }
.cell-red { background: var(--noteRedBackground); } .cell-red { background: var(--noteRedBackground); }
} }

@ -45,6 +45,11 @@ module Docs
node.remove node.remove
end end
css('img[src$="Deprecate.png"]').each do |node|
node.parent['class'] = 'cell-orange'
node.remove
end
css('table, tr, td, th').each do |node| css('table, tr, td, th').each do |node|
%w(style cellpadding cellspacing width height valign).each do |attribute| %w(style cellpadding cellspacing width height valign).each do |attribute|
node.remove_attribute(attribute) node.remove_attribute(attribute)

@ -2,23 +2,27 @@ module Docs
class Love class Love
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
TYPES = { TYPES = {
'cdata' => 'Lua',
'require' => 'Lua', 'require' => 'Lua',
'light_userdata' => 'Lua', 'light_userdata' => 'Lua',
'value' => 'Lua', 'value' => 'Lua',
'variable' => 'Lua', 'variable' => 'Lua',
'Audio_Formats' => 'love.sound', 'Audio_Formats' => 'love.sound',
'Image_Formats' => 'love.graphics',
'ImageFontFormat' => 'love.font', 'ImageFontFormat' => 'love.font',
'BlendMode_Formulas' => 'love.graphics', 'BlendMode_Formulas' => 'love.graphics',
'Shader_Variables' => 'love.graphics', 'Shader_Variables' => 'love.graphics',
'AttributeDataType' => 'love.graphics',
'AreaSpreadDistribution' => 'love.graphics', 'AreaSpreadDistribution' => 'love.graphics',
'BodyType' => 'love.physics',
'BufferMode' => 'love.filesystem', 'BufferMode' => 'love.filesystem',
'CompressedFormat' => 'love.image', 'CompressedFormat' => 'love.image',
'FilterType' => 'love.audio',
'ImageFlag' => 'love.graphics',
'JoystickConstant' => 'love.joystick', 'JoystickConstant' => 'love.joystick',
'MatrixLayout' => 'love.math',
'ParticleInsertMode' => 'love.graphics', 'ParticleInsertMode' => 'love.graphics',
'String' => 'love',
'TextureMode' => 'love.graphics' 'TextureMode' => 'love.graphics'
} }

@ -3,15 +3,16 @@ module Docs
self.name = 'LÖVE' self.name = 'LÖVE'
self.slug = 'love' self.slug = 'love'
self.type = 'love' self.type = 'love'
self.release = '0.10.2' self.release = '11.3'
self.base_url = 'https://love2d.org/wiki/' self.base_url = 'https://love2d.org/wiki/'
self.root_path = 'Main_Page' self.root_path = 'Main_Page'
self.initial_paths = %w(love love.audio love.event love.filesystem love.font love.graphics self.initial_paths = %w(love love.audio love.data love.event love.filesystem love.font
love.image love.joystick love.keyboard love.math love.mouse love.physics love.sound love.graphics love.image love.joystick love.keyboard love.math love.mouse love.physics
love.system love.thread love.timer love.touch love.video love.window enet socket utf8) love.sound love.system love.thread love.timer love.touch love.video love.window lua-enet
socket utf8)
self.links = { self.links = {
home: 'https://love2d.org/', home: 'https://love2d.org/',
code: 'https://bitbucket.org/rude/love' code: 'https://github.com/love2d/love'
} }
html_filters.push 'love/entries', 'love/clean_html', 'title' html_filters.push 'love/entries', 'love/clean_html', 'title'
@ -32,11 +33,12 @@ module Docs
options[:replace_paths] = { options[:replace_paths] = {
'Config_Files' => 'love.conf', 'Config_Files' => 'love.conf',
'conf.lua' => 'love.conf', 'conf.lua' => 'love.conf',
'lua-enet' => 'enet' 'enet' => 'lua-enet',
'ImageFormat' => 'ImageEncodeFormat'
} }
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2006&ndash;2016 L&Ouml;VE Development Team<br> &copy; 2006&ndash;2020 L&Ouml;VE Development Team<br>
Licensed under the GNU Free Documentation License, Version 1.3. Licensed under the GNU Free Documentation License, Version 1.3.
HTML HTML

Loading…
Cancel
Save