This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
def parse_page(locale, page): | |
url = 'http://%s.wowhead.com/%s' % (locale, page) | |
if locale == 'www': | |
locale = 'en' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://luacheck.readthedocs.io/en/stable/warnings.html | |
std = "lua51" | |
max_line_length = false | |
codes = true | |
exclude_files = { | |
"**/Libs", | |
} | |
ignore = { | |
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.lua': | |
################ | |
# BigWigs stuff | |
################ | |
# API | |
'Log': | |
'prefix': 'bwlog' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> local function format_anchor_link(name) | |
> -- make an educated guess at what the id of the function header will be | |
> return name:lower():gsub("%p", ""):gsub("%s", "-") | |
> end | |
> local function format_see_link(see) | |
> if see.href then return see.href end | |
> return format_anchor_link(see.name) | |
> end | |
> local escape = ldoc.escape | |
> local show_return_and_params = not ldoc.no_return_or_parms |
NewerOlder