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
beautifulsoup4 | |
cloudscraper | |
markdownify | |
PyYAML | |
requests |
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
import argparse | |
import hashlib | |
import yaml | |
import os | |
from bs4 import BeautifulSoup | |
import cloudscraper | |
from markdownify import markdownify as md | |
from requests import exceptions |
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
// stuff/templates/wagtailadmin/edit_handlers/inline_panel.js | |
(function() { | |
var opts = { | |
formsetPrefix: "id_{{ self.formset.prefix }}", | |
emptyChildFormPrefix: "{{ self.empty_child.form.prefix }}", | |
canOrder: {% if can_order %}true{% else %}false{% endif %}, | |
maxForms: {{ self.formset.max_num }} | |
}; | |
var panel = InlinePanel(opts); |