Setup script input

This commit is contained in:
Zachary Talis 2021-06-23 13:28:00 -04:00
parent 079795b0ad
commit 650ac1afbf
7 changed files with 46 additions and 21 deletions

View file

@ -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 tk-category-name tk_category_name tk-category-dashname tk_category_dashname tk-category-description tk_category_description tk-category-rules tk_category_rules

View file

@ -1 +1 @@
tk-game,tk-description,tk-url,tk-logo-alt tk_game,tk_description,tk_url,tk_logo_alt

1 tk-game tk_game tk-description tk_description tk-url tk_url tk-logo-alt tk_logo_alt

View file

@ -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()

View file

2
scripts/utils/csv.py Normal file
View file

@ -0,0 +1,2 @@
def findFile():
print("cool")

View file

@ -5,28 +5,28 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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="stylesheet" href="css/style.css">
<link rel="icon" href="assets/img/logo.png"> <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:type" content="website" />
<meta property="og:description" content="tk-category-description" /> <meta property="og:description" content="tk_category_description" />
<meta property="og:url" content="tk-url/tk-category-dashname.html" /> <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:secure_url" content="https://tk_url/assets/img/logo.png" />
<meta property="og:image:alt" content="tk-logo-alt" /> <meta property="og:image:alt" content="tk_logo_alt" />
<!-- Placeholder og:locale, replace content with your own if desired. --> <!-- Placeholder og:locale, replace content with your own if desired. -->
<meta property="og:locale" content="en_US" /> <meta property="og:locale" content="en_US" />
</head> </head>
<body> <body>
<h1>tk-game - tk-category-name</h1> <h1>tk_game - tk_category_name</h1>
<p>tk-category-description</p> <p>tk_category_description</p>
<h2>Leaderboard</h2> <h2>Leaderboard</h2>
<!-- lk-categories --> <!-- lk_categories -->
</body> </body>
</html> </html>

View file

@ -5,28 +5,28 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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="stylesheet" href="css/style.css">
<link rel="icon" href="assets/img/logo.png"> <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:type" content="website" />
<meta property="og:description" content="tk-game-description" /> <meta property="og:description" content="tk_game_description" />
<meta property="og:url" content="tk-url" /> <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:secure_url" content="https://tk_url/assets/img/logo.png" />
<meta property="og:image:alt" content="tk-logo-alt" /> <meta property="og:image:alt" content="tk_logo_alt" />
<!-- Placeholder og:locale, replace content with your own if desired. --> <!-- Placeholder og:locale, replace content with your own if desired. -->
<meta property="og:locale" content="en_US" /> <meta property="og:locale" content="en_US" />
</head> </head>
<body> <body>
<h1>tk-game - Speedruns Leaderboard</h1> <h1>tk_game - Speedruns Leaderboard</h1>
<p>tk-description</p> <p>tk_description</p>
<h2>Categories</h2> <h2>Categories</h2>
<!-- lk-categories --> <!-- lk_categories -->
</body> </body>
</html> </html>