diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 1c287f8c..ca8fce67 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -463,7 +463,7 @@ credits = [
'http://www.lua.org/license.html'
], [
'LÖVE',
- '2006-2016 LÖVE Development Team',
+ '2006-2020 LÖVE Development Team',
'GFDL',
'http://www.gnu.org/copyleft/fdl.html'
], [
diff --git a/assets/stylesheets/pages/_love.scss b/assets/stylesheets/pages/_love.scss
index b037527f..a4382607 100644
--- a/assets/stylesheets/pages/_love.scss
+++ b/assets/stylesheets/pages/_love.scss
@@ -12,6 +12,7 @@
.smwtable { width: 100%; }
.smwtable td:nth-last-child(2), .smwtable td:last-child { width: 2.5em; }
+ .cell-orange { background: var(--noteOrangeBackground); }
.cell-green { background: var(--noteGreenBackground); }
.cell-red { background: var(--noteRedBackground); }
}
diff --git a/lib/docs/filters/love/clean_html.rb b/lib/docs/filters/love/clean_html.rb
index 0775e5a9..4187d007 100644
--- a/lib/docs/filters/love/clean_html.rb
+++ b/lib/docs/filters/love/clean_html.rb
@@ -45,6 +45,11 @@ module Docs
node.remove
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|
%w(style cellpadding cellspacing width height valign).each do |attribute|
node.remove_attribute(attribute)
diff --git a/lib/docs/filters/love/entries.rb b/lib/docs/filters/love/entries.rb
index 7e717f67..ef2cdf6e 100644
--- a/lib/docs/filters/love/entries.rb
+++ b/lib/docs/filters/love/entries.rb
@@ -2,23 +2,27 @@ module Docs
class Love
class EntriesFilter < Docs::EntriesFilter
TYPES = {
+ 'cdata' => 'Lua',
'require' => 'Lua',
'light_userdata' => 'Lua',
'value' => 'Lua',
'variable' => 'Lua',
'Audio_Formats' => 'love.sound',
+ 'Image_Formats' => 'love.graphics',
'ImageFontFormat' => 'love.font',
'BlendMode_Formulas' => 'love.graphics',
'Shader_Variables' => 'love.graphics',
+ 'AttributeDataType' => 'love.graphics',
'AreaSpreadDistribution' => 'love.graphics',
- 'BodyType' => 'love.physics',
'BufferMode' => 'love.filesystem',
'CompressedFormat' => 'love.image',
+ 'FilterType' => 'love.audio',
+ 'ImageFlag' => 'love.graphics',
'JoystickConstant' => 'love.joystick',
+ 'MatrixLayout' => 'love.math',
'ParticleInsertMode' => 'love.graphics',
- 'String' => 'love',
'TextureMode' => 'love.graphics'
}
diff --git a/lib/docs/scrapers/love.rb b/lib/docs/scrapers/love.rb
index 887b796f..f702da8b 100644
--- a/lib/docs/scrapers/love.rb
+++ b/lib/docs/scrapers/love.rb
@@ -3,15 +3,16 @@ module Docs
self.name = 'LÖVE'
self.slug = 'love'
self.type = 'love'
- self.release = '0.10.2'
+ self.release = '11.3'
self.base_url = 'https://love2d.org/wiki/'
self.root_path = 'Main_Page'
- self.initial_paths = %w(love love.audio love.event love.filesystem love.font love.graphics
- love.image love.joystick love.keyboard love.math love.mouse love.physics love.sound
- love.system love.thread love.timer love.touch love.video love.window enet socket utf8)
+ self.initial_paths = %w(love love.audio love.data love.event love.filesystem love.font
+ love.graphics love.image love.joystick love.keyboard love.math love.mouse love.physics
+ love.sound love.system love.thread love.timer love.touch love.video love.window lua-enet
+ socket utf8)
self.links = {
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'
@@ -32,11 +33,12 @@ module Docs
options[:replace_paths] = {
'Config_Files' => 'love.conf',
'conf.lua' => 'love.conf',
- 'lua-enet' => 'enet'
+ 'enet' => 'lua-enet',
+ 'ImageFormat' => 'ImageEncodeFormat'
}
options[:attribution] = <<-HTML
- © 2006–2016 LÖVE Development Team
+ © 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
HTML