diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 0b7f887cf..ebf7b0aec 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -67,9 +67,6 @@ table { border-style: solid; } } -.navbar-brand img { - height: 30px; -} #scrollButton { display: none; position: fixed; @@ -88,6 +85,9 @@ table { #scrollButton:hover { background-color: $scrollbutton-bg-hover; } +.navbar-brand img { + height: 30px; +} $color-mode-type: data; @include color-mode(light) { h1, h2, h3 { color: $body-color; } diff --git a/data/layout/cards.yml b/data/layout/cards.yml index 0162e216d..26f5c8749 100644 --- a/data/layout/cards.yml +++ b/data/layout/cards.yml @@ -2,6 +2,16 @@ icon_type: "eye" icon_category: "fa" links: + - label: "GitHub Organization" + url: "https://github.com/sfzformat/" + icon_type: "github" + icon_category: "fab" + + - label: "News Atom Feed" + url: "/atom.xml" + icon_type: "rss" + icon_category: "fa" + - label: "Discord Chat" url: "https://discord.gg/t7nrZ6d" icon_type: "discord" @@ -13,16 +23,6 @@ icon_type: "hashtag" icon_category: "fa" - - label: "GitHub Organization" - url: "https://github.com/sfzformat/" - icon_type: "github" - icon_category: "fab" - - - label: "News Atom Feed" - url: "/atom.xml" - icon_type: "rss" - icon_category: "fa" - - label: "Quick links" icon_type: "link" icon_category: "fa" diff --git a/pyproject.toml b/pyproject.toml index 0bd5a6580..088bbeba5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "sfzformat_website" version = "1.0.0" -description = "SFZ Format Website" +description = "SFZ format website" authors = ["redtide "] readme = "README.md" diff --git a/scripts/hooks/sfz.py b/scripts/hooks/sfz.py index 1285efd9e..3ec9648a2 100644 --- a/scripts/hooks/sfz.py +++ b/scripts/hooks/sfz.py @@ -121,15 +121,6 @@ def get_info(opcode): max_ = "?" value_range = min_ + " to " + max_ - - return OpcodeInfo( - opcode["name"], - opcode["version"] if "version" in opcode else "", - opcode["value"]["type_name"] if "value" in opcode and "type_name" in opcode["value"] else "N/A", - opcode["value"]["default"] if "value" in opcode and "default" in opcode["value"] else "N/A", - value_range, - opcode["value"]["unit"] if "value" in opcode and "unit" in opcode["value"] else "N/A" - ) """ return OpcodeInfo( opcode.name, @@ -140,24 +131,20 @@ def get_info(opcode): opcode.value.unit if value in opcode and unit in opcode.value else "N/A" ) """ + return OpcodeInfo( + opcode["name"], + opcode["version"] if "version" in opcode else "", + opcode["value"]["type_name"] if "value" in opcode and "type_name" in opcode["value"] else "N/A", + opcode["value"]["default"] if "value" in opcode and "default" in opcode["value"] else "N/A", + value_range, + opcode["value"]["unit"] if "value" in opcode and "unit" in opcode["value"] else "N/A" + ) def get_opcode_category(opcode): if "type" in opcode: return opcode["type"] return opcode["category"] -def include(path): - if not path_exists(path): - return '' - with open(path, "r") as f: - content = f.read() - content = jinja2.Template(content).render( - headers=headers, - opcodes=opcodes, - opcode_set=opcode_set - ) - return content - print("initializing database...") _process(_sfz_dict) del _current_category @@ -172,5 +159,4 @@ def on_env(env, **kwargs): env.globals["get_category_url"] = get_category_url env.globals["get_info"] = get_info env.globals["get_opcode_category"] = get_opcode_category - env.globals["include"] = include env.globals["see_also"] = see_also