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'
], [
'LÖVE',
'2006-2016 LÖVE Development Team',
'2006-2020 LÖVE Development Team',
'GFDL',
'http://www.gnu.org/copyleft/fdl.html'
], [

@ -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); }
}

@ -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)

@ -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'
}

@ -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
&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.
HTML

Loading…
Cancel
Save