Offline documentation for Wesnoth?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
LienRag
Posts: 127
Joined: September 24th, 2018, 4:03 pm

Offline documentation for Wesnoth?

Post by LienRag »

As I don't have permanent internet connexion right now (and am preparing computers for people who may not have it either) I'd like to have the Wesnoth documentation (especially for WML) accessible offline.
I tried to wget the wesnoth.org website but I get 403 Forbidden responses, so is there another way?
Or a ready-made offline documentation that I'm not aware of?
User avatar
Ravana
Forum Moderator
Posts: 2949
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Offline documentation for Wesnoth?

Post by Ravana »

https://wiki.wesnoth.org/Referencewml and *WML links from there should be enough for casual use.
Shiki
Developer
Posts: 348
Joined: July 13th, 2015, 9:53 pm
Location: Germany

Re: Offline documentation for Wesnoth?

Post by Shiki »

I would try wget -k -m https://wiki.wesnoth.org/Referencewml. Though, it seems the -l option should be set to sth. lower than the default 5 (at least it downloads a lot)
Try out the dark board theme.
User avatar
octalot
General Code Maintainer
Posts: 783
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Offline documentation for Wesnoth?

Post by octalot »

Wget normally obeys robots.txt, unless that's overridden. When I tried to download the WML reference a few months ago, I was blocked by the robots.txt.

But it looks like there's a redirect for Wiki-style capitalisation at the moment. The robots.txt redirects to Robots.txt, which doesn't exist.
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Offline documentation for Wesnoth?

Post by josteph »

Shiki, try adding -A "*WML", you may also need to change "Referencewml" to "ReferenceWML" in the arguments.
LienRag
Posts: 127
Joined: September 24th, 2018, 4:03 pm

Re: Offline documentation for Wesnoth?

Post by LienRag »

Well, the robots.txt I saw seems reasonable:

Code: Select all

Disallow: /cgi-bin/
Disallow: /collection3/
Disallow: /mw/
Disallow: /wiki/Special:Search
Disallow: /wiki/Special:Random
Disallow: /files/
Disallow: /irclog/
Disallow: /irclogs/
Disallow: /replays/
It shouldn't prevent the download of most of the website?

Shiki's command worked anyway, it did indeed download a lot but it's not a problem.
Thanks!
Post Reply