various website tweaks (tiny bit of javascript for mobile users), added freee
This commit is contained in:
@ -13,6 +13,7 @@ code_path = os.path.join(root_path, 'code')
|
||||
web_path = os.path.join(root_path, 'docs')
|
||||
web_template_path = os.path.join(code_path, 'html')
|
||||
web_css_path = os.path.join(web_path, 'css')
|
||||
web_js_path = os.path.join(web_path, 'js')
|
||||
|
||||
private_properties_file = os.path.join(root_path, 'private.properties')
|
||||
inspirations_file = os.path.join(root_path, 'inspirations.md')
|
||||
@ -68,7 +69,8 @@ recommended_keywords = (
|
||||
'action', 'arcade', 'adventure', 'visual novel', 'sports', 'platform', 'puzzle', 'role playing', 'simulation',
|
||||
'strategy', 'cards', 'board', 'music', 'educational', 'tool', 'game engine', 'framework', 'library', 'remake')
|
||||
|
||||
framework_keywords = ('framework', 'library', 'tool')
|
||||
# non game keywords take precedence
|
||||
non_game_keywords = ('framework', 'library', 'tool')
|
||||
|
||||
# known programming languages, anything else will result in a warning during a maintenance operation
|
||||
# only these will be used when gathering statistics
|
||||
|
4
code/utils/osg_statistics.py
Normal file
4
code/utils/osg_statistics.py
Normal file
@ -0,0 +1,4 @@
|
||||
"""
|
||||
|
||||
"""
|
||||
|
@ -171,17 +171,15 @@ def copy_tree(source, destination):
|
||||
"""
|
||||
# this gave an FileNotFoundError: [Errno 2] No such file or directory: '' on Windows
|
||||
# distutils.dir_util.copy_tree(archive_path, git_path)
|
||||
os.makedirs(destination, exist_ok=True)
|
||||
for dirpath, dirnames, filenames in os.walk(source):
|
||||
# first create all the directory on destination
|
||||
directories_to_be_created = [os.path.join(destination, os.path.relpath(os.path.join(dirpath, x), source)) for x
|
||||
in dirnames]
|
||||
for directory in directories_to_be_created:
|
||||
for directory in (os.path.join(destination, os.path.relpath(os.path.join(dirpath, x), source)) for x in dirnames):
|
||||
os.makedirs(directory, exist_ok=True)
|
||||
# second copy all the files
|
||||
filepaths_source = [os.path.join(dirpath, x) for x in filenames]
|
||||
filepaths_destination = [os.path.join(destination, os.path.relpath(x, source)) for x in filepaths_source]
|
||||
for src, dst in zip(filepaths_source, filepaths_destination):
|
||||
shutil.copyfile(src, dst)
|
||||
for source_file in (os.path.join(dirpath, x) for x in filenames):
|
||||
destination_file = os.path.join(destination, os.path.relpath(source_file, source))
|
||||
shutil.copyfile(source_file, destination_file)
|
||||
|
||||
|
||||
def download_url(url, destination):
|
||||
|
Reference in New Issue
Block a user