mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Webworld docs: move gameinfo documentation to their world folders and copy them for webhost use. (#455)
This commit is contained in:
@@ -6,7 +6,7 @@ import logging
|
||||
import json
|
||||
import functools
|
||||
from collections import OrderedDict, Counter, deque
|
||||
from typing import List, Dict, Optional, Set, Iterable, Union, Any, Tuple, TypedDict, Callable
|
||||
from typing import List, Dict, Optional, Set, Iterable, Union, Any, Tuple, TypedDict, Callable, NamedTuple
|
||||
import typing # this can go away when Python 3.8 support is dropped
|
||||
import secrets
|
||||
import random
|
||||
@@ -1458,6 +1458,19 @@ class Spoiler():
|
||||
AutoWorld.call_all(self.world, "write_spoiler_end", outfile)
|
||||
|
||||
|
||||
class Tutorial(NamedTuple):
|
||||
"""Class to build website tutorial pages from a .md file in the world's /docs folder. Order is as follows.
|
||||
Name of the tutorial as it will appear on the site. Concise description covering what the guide will entail.
|
||||
Language the guide is written in. Name of the file ex 'setup_en.md'. Name of the link on the site; game name is
|
||||
filled automatically so 'setup/en' etc. Author or authors."""
|
||||
tutorial_name: str
|
||||
description: str
|
||||
language: str
|
||||
file_name: str
|
||||
link: str
|
||||
author: List[str]
|
||||
|
||||
|
||||
seeddigits = 20
|
||||
|
||||
|
||||
@@ -1470,4 +1483,4 @@ def get_seed(seed=None) -> int:
|
||||
|
||||
from worlds import AutoWorld
|
||||
|
||||
auto_world = AutoWorld.World
|
||||
auto_world = AutoWorld.World
|
||||
|
Reference in New Issue
Block a user