Skip to content

Commit

Permalink
fix(ui): update links
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Nov 17, 2023
1 parent f9ee620 commit 2be3030
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ run-bot = "src.cli:run_bot"
run-web = "src.cli:run_web"
run-all = "src.cli:run_all"

[tool.black]
line-length = 120
include = '\.pyi?$'

[tool.codespell]
quiet-level = 3
ignore-words-list = "selectin, alog"
Expand Down Expand Up @@ -195,6 +191,10 @@ line-length = 120
src = ["src", "tests"]
target-version = "py311"

[tool.ruff.format]
quote-style = "double"
indent-style = "space"

[tool.ruff.pydocstyle]
convention = "google"

Expand Down
3 changes: 1 addition & 2 deletions src/server/domain/web/templates/base/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
>
<a
class="link link-hover"
href="#"
href="https://discord.com/api/oauth2/authorize?client_id=1132179951567786015&permissions=17998865853505&scope=bot%20applications.commands"
>Invite Byte</a
>
<!-- TODO: Add invite link -->
</div>
<div>
<span class="footer-title">Project</span>
Expand Down
16 changes: 12 additions & 4 deletions src/server/domain/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@
</svg>
<span>New Byte Bot version available!</span>
<div>
<button class="btn btn-sm">Close</button>
<button class="btn btn-sm btn-primary">Changelog</button>
<button
class="btn btn-sm"
onclick="this.parentElement.parentElement.remove();"
>
Close
</button>
<a
href="https://docs.byte-bot.app/latest/changelog"
class="btn btn-sm btn-primary"
>Changelog</a
>
</div>
</div>

Expand Down Expand Up @@ -136,11 +145,10 @@ <h2 class="text-base font-semibold leading-7 text-base-content dark:text-base-10
<p class="text-center py-5">Currently in <br />probably 1 server</p>
</div>
<a
href="#"
href="https://discord.com/api/oauth2/authorize?client_id=1132179951567786015&permissions=17998865853505&scope=bot%20applications.commands"
role="button"
class="btn btn-info btn-wide hover:bg-[#5865F2]/70"
>
<!-- TODO: Add invite link -->
<!-- https://feathericons.dev/?search=discord&iconset=brands -->
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
6 changes: 3 additions & 3 deletions src/server/lib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ class OpenAPISettings(BaseSettings):
"""Document version."""
PATH: str = "/api"
"""Path to access the root API documentation."""
DESCRIPTION: str | None = f"""The Byte Bot API supports the Byte Discord bot.
DESCRIPTION: str | None = """The Byte Bot API supports the Byte Discord bot.
You can find out more about this project in the
[docs]({os.getenv("WEB_URL", "http://localhost") + "docs"})."""
[docs](https://docs.byte-bot.app/latest)."""
SERVERS: list[dict[str, str]] = []
"""Servers to use for the OpenAPI documentation."""
EXTERNAL_DOCS: dict[str, str] | None = {
"description": "Byte Bot API Docs",
"url": os.getenv("WEB_URL", "http://localhost") + "docs",
"url": "https://docs.byte-bot.app/latest",
}
"""External documentation for the API."""

Expand Down

0 comments on commit 2be3030

Please sign in to comment.