mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 14:50:19 +00:00
Remove extra static_url function in API.docs
This commit is contained in:
+1
-5
@@ -642,15 +642,11 @@ class API:
|
||||
|
||||
template = env.get_template("/".join([self.docs_theme, "index.html"]))
|
||||
|
||||
def static_url(asset):
|
||||
assert None not in (self.static_dir, self.static_route)
|
||||
return f"{self.static_route}/{asset}"
|
||||
|
||||
return template.render(
|
||||
document=document,
|
||||
langs=["javascript", "python"],
|
||||
code_style=None,
|
||||
static_url=static_url,
|
||||
static_url=self.static_url,
|
||||
schema_url="/schema.yml",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user