Skip to content

Commit

Permalink
Irrelevant cleaning changes
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Dec 30, 2023
1 parent 477cbe4 commit c27c6da
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 36 deletions.
6 changes: 3 additions & 3 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ table {
border-style: solid;
}
}
.navbar-brand img {
height: 30px;
}
#scrollButton {
display: none;
position: fixed;
Expand All @@ -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; }
Expand Down
20 changes: 10 additions & 10 deletions data/layout/cards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "sfzformat_website"
version = "1.0.0"
description = "SFZ Format Website"
description = "SFZ format website"
authors = ["redtide <[email protected]>"]
readme = "README.md"

Expand Down
30 changes: 8 additions & 22 deletions scripts/hooks/sfz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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

0 comments on commit c27c6da

Please sign in to comment.