Offline LÖVE documentation for download

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Offline LÖVE documentation for download

Post by qubodup »

There are a few big files in the wiki that should probably be excluded in the script (or possibly deleted for legal or sanity reasons?):

Code: Select all

227147	file.php_id_8398
2506861	love_osx_frameworks_0.10.zip
2691414	love_osx_frameworks_0.9.zip
4938147	love_win_sdk.zip
5261506	love_win_sdk_msvc2010.zip
Screenshots also are annoying (png/jpg files are 33MB, about 20%). We could:
- Make a rule that all game non-documentation screenshots have to start with a codename ("screen-" or "nondoc-") and make the script exclude them.
- Stop documenting games in the wiki and delete all screenshots.
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Anononymous
Prole
Posts: 4
Joined: Wed Dec 16, 2015 4:40 pm

Re: Offline LÖVE documentation for download

Post by Anononymous »

The styles don't seem to be used properly. I found this near the top of index.html:

<link rel="stylesheet" href="" />

The pages look like plain html.

Also do you need javascript in this bundle? I'm blocking it anyway but still.
User avatar
FlattenedTesseract
Prole
Posts: 14
Joined: Mon Jul 27, 2015 9:01 am
Location: Bucharest, Romania

Re: Offline LÖVE documentation for download

Post by FlattenedTesseract »

Here's a fix for the style thing.
First you need to get the stylesheet. Do that by opening the wiki online, opening your browser devtools (Ctrl+Shift+i on firefox), going to style editor(or smth like that), choosing load.php from the left menu and saving it as style.css in the docs/wiki/ folder.

For this next step you'll need cygwin (for sed and bash) if you are on windows. You need to open a bash console(cygwin for windows) and cd to the docs/wiki/ folder. Then you need to run this for loop:

Code: Select all

for file in *.html; do
    sed -i 's/<link rel="stylesheet" href="" \/>/<link rel="stylesheet" href="style.css" \/>/g' $file
done
or

Code: Select all

for f in *.html; do sed -i 's/<link rel="stylesheet" href="" \/>/<link rel="stylesheet" href="style.css" \/>/g' $f; done
This will take a few minutes, since the wiki contains some games and translations besides the love documentation. It has to change ~7100 files.

After that, when you open index.html (or any other file) you should see it with the style.

Hopefully this helped ;)
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Offline LÖVE documentation for download

Post by murks »

Can this be done when generating the offline documentation? Please?
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: Offline LÖVE documentation for download

Post by D0NM »

well, now to get an offline Love2d / LÖVE 0.10.0 Reference
you have to open this URL: http://santos.nfshost.com/love.html
and do FILE / SAVE AS... (full page) html

And you get a single file LÖVE 0.10.0 Reference.htm
than could be open with any browser or converted into .PDF later.

Thank you guys!
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
Pixelguru26
Prole
Posts: 15
Joined: Fri Feb 05, 2016 11:52 pm

Re: Offline LÖVE documentation for download

Post by Pixelguru26 »

Is there any way to access the offline documentation for previous versions of Love? say, 0.9.2?
User avatar
GreenWing
Prole
Posts: 3
Joined: Mon Aug 08, 2016 4:12 pm
Location: Japan

Re: Offline LÖVE documentation for download

Post by GreenWing »

Pixelguru26 wrote:Is there any way to access the offline documentation for previous versions of Love? say, 0.9.2?
Hi.


Some ancient document is here.

[ 0.1.1 ]
http://love.sourceforge.net/docs-0.1-1/

[ 0.2.0 ]
http://love.sourceforge.net/docs-0.2-0/

[ 0.2.1 ]
http://love.sourceforge.net/docs-0.2-0/

[ 0.3.0 ]
http://love.sourceforge.net/docs-0.3-0/

[ 0.3.1]
Not found.

[ 0.3.2 ]
http://love.sourceforge.net/docs/

[ 0.5.0 ]
http://web.archive.org/web/200911231814 ... umentation

[ dead liked (Doesn't someone have these files?)]
love2d.org/ddocs/
love-0.1-1-docs.zip
love-0.2-0-docs.zip
love-0.2-1-docs.zip
love-0.3-0-docs.zip
love-0.3-1-docs.zip
love-0.3-2-docs.zip
love-0.4-0-docs.zip
love-0.5-0-docs.zip
love-0.6.0-docs.zip
love-0.6.1-docs.zip
rungo73
Prole
Posts: 11
Joined: Thu Oct 20, 2016 3:43 am

Re: Offline LÖVE documentation for download

Post by rungo73 »

D0NM wrote:well, now to get an offline Love2d / LÖVE 0.10.0 Reference
you have to open this URL: http://santos.nfshost.com/love.html
and do FILE / SAVE AS... (full page) html

And you get a single file LÖVE 0.10.0 Reference.htm
than could be open with any browser or converted into .PDF later.

Thank you guys!
Hi - Want to grab this but this link seems to be down.. anywhere else I can get a ref for 0.10+ for offline?
rungo73
Prole
Posts: 11
Joined: Thu Oct 20, 2016 3:43 am

Re: Offline LÖVE documentation for download

Post by rungo73 »

Awesome! Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests