Setup script input
This commit is contained in:
parent
079795b0ad
commit
650ac1afbf
7 changed files with 46 additions and 21 deletions
|
@ -1 +1 @@
|
|||
tk-category-name,tk-category-dashname,tk-category-description,tk-category-rules
|
||||
tk_category_name,tk_category_dashname,tk_category_description,tk_category_rules
|
||||
|
|
|
|
@ -1 +1 @@
|
|||
tk-game,tk-description,tk-url,tk-logo-alt
|
||||
tk_game,tk_description,tk_url,tk_logo_alt
|
||||
|
|
|
|
@ -1 +1,24 @@
|
|||
# Hello!
|
||||
### Initial configuration script for paceboard. Handles adding properties to config.csv.
|
||||
|
||||
from utils import csv as util_csv
|
||||
|
||||
divider = "----------"
|
||||
|
||||
print(
|
||||
"\nWelcome to paceboard! Let's set up your leaderboard site :)\nWe'll save this info in csv/config.csv\n\n"
|
||||
+ divider
|
||||
+ "\n"
|
||||
)
|
||||
|
||||
tk_game = input("Your game's name: ")
|
||||
tk_description = input("Description for your game: ")
|
||||
tk_url = input("URL of your site (format example - foobar.com): ")
|
||||
tk_logo_alt = input("Description of your game's logo (this is used for alt-text): ")
|
||||
|
||||
print(
|
||||
"\n"
|
||||
+ divider
|
||||
+ "\n\nPerfect! You can always overwrite the info above by running this script again.\nHere's an overview of how to use paceboard:\n\n- Add a category using scripts/add-category.py\n- Add a run using scripts/add-run.py\n- Use scripts/generate.py to update the site with the info you've added.\n- All categories, runs, and configuration details are stored in csv/\n- Replace the logo saved as assets/img/logo.png\n- For the adventurous, you can restyle your site's pages by editing files within templates/ and css/\n\nRemember to run scripts/generate.py to initialize your site.\nThat's all for now! <3\n"
|
||||
)
|
||||
|
||||
util_csv.findFile()
|
||||
|
|
0
scripts/utils/__init__.py
Normal file
0
scripts/utils/__init__.py
Normal file
2
scripts/utils/csv.py
Normal file
2
scripts/utils/csv.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
def findFile():
|
||||
print("cool")
|
|
@ -5,28 +5,28 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>tk-title - tk-category-name</title>
|
||||
<title>tk_title - tk_category_name</title>
|
||||
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="icon" href="assets/img/logo.png">
|
||||
|
||||
<meta property="og:title" content="tk-game - tk-category-name" />
|
||||
<meta property="og:title" content="tk_game - tk_category_name" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:description" content="tk-category-description" />
|
||||
<meta property="og:url" content="tk-url/tk-category-dashname.html" />
|
||||
<meta property="og:image:secure_url" content="https://tk-url/assets/img/logo.png" />
|
||||
<meta property="og:image:alt" content="tk-logo-alt" />
|
||||
<meta property="og:description" content="tk_category_description" />
|
||||
<meta property="og:url" content="tk_url/tk_category_dashname.html" />
|
||||
<meta property="og:image:secure_url" content="https://tk_url/assets/img/logo.png" />
|
||||
<meta property="og:image:alt" content="tk_logo_alt" />
|
||||
|
||||
<!-- Placeholder og:locale, replace content with your own if desired. -->
|
||||
<meta property="og:locale" content="en_US" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>tk-game - tk-category-name</h1>
|
||||
<p>tk-category-description</p>
|
||||
<h1>tk_game - tk_category_name</h1>
|
||||
<p>tk_category_description</p>
|
||||
|
||||
<h2>Leaderboard</h2>
|
||||
<!-- lk-categories -->
|
||||
<!-- lk_categories -->
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -5,28 +5,28 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>tk-title - Leaderboard</title>
|
||||
<title>tk_title - Leaderboard</title>
|
||||
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="icon" href="assets/img/logo.png">
|
||||
|
||||
<meta property="og:title" content="tk-game - Speedruns Leaderboard" />
|
||||
<meta property="og:title" content="tk_game - Speedruns Leaderboard" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:description" content="tk-game-description" />
|
||||
<meta property="og:url" content="tk-url" />
|
||||
<meta property="og:image:secure_url" content="https://tk-url/assets/img/logo.png" />
|
||||
<meta property="og:image:alt" content="tk-logo-alt" />
|
||||
<meta property="og:description" content="tk_game_description" />
|
||||
<meta property="og:url" content="tk_url" />
|
||||
<meta property="og:image:secure_url" content="https://tk_url/assets/img/logo.png" />
|
||||
<meta property="og:image:alt" content="tk_logo_alt" />
|
||||
|
||||
<!-- Placeholder og:locale, replace content with your own if desired. -->
|
||||
<meta property="og:locale" content="en_US" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>tk-game - Speedruns Leaderboard</h1>
|
||||
<p>tk-description</p>
|
||||
<h1>tk_game - Speedruns Leaderboard</h1>
|
||||
<p>tk_description</p>
|
||||
|
||||
<h2>Categories</h2>
|
||||
<!-- lk-categories -->
|
||||
<!-- lk_categories -->
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in a new issue