Skip to content

Commit

Permalink
Theme fixes, content improvements, fix analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Sep 19, 2024
1 parent 7e35646 commit c8dbeef
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
19 changes: 7 additions & 12 deletions docs/managed.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ Too expensive? [Create a ticket](https://lnk.earth/discord) and ask for a discou

## What you're paying for

!!! abstract ""
Hosting, and an admin to do everything for you, all for a comparable or even lower price than self-hosting.
Get a custom bot without hosting it yourself.

- A secure, containerised, auto-updating[^1] bot instance hosted in the EU
- Efficient hosting
- Powered by [Ampere® Altra®](https://amperecomputing.com/briefs/ampere-altra-family-product-brief), less energy is used for operation and cooling[^2]
- Higher CPU utilisation due to many bots running on the same server[^3]
- Auto-updating bot instance without the installation and maintenance hassle
- [Nightly database backups](https://status.eartharoid.me/), encrypted and kept for 30 days
- :heart: **You're directly supporting the bot's developer**
- Better for the planet
- Powered by energy-efficient Ampere® Altra® processors
- 100% powered by wind and hydro energy
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"
style="width:auto; height:1em; vertical-align:text-bottom;">
<linearGradient id="StripeClimate-gradient-a" gradientUnits="userSpaceOnUse" x1="16"
Expand All @@ -72,8 +73,6 @@ Too expensive? [Create a ticket](https://lnk.earth/discord) and ask for a discou
fill="url(#StripeClimate-gradient-c)" />
</svg>
1% of revenue goes to [Stripe Climate](https://stripe.com/climate) to remove CO~2~ from the atmosphere <!--CO₂-->
- [Nightly database backups](https://status.eartharoid.me/), encrypted and kept for 30 days
- :heart: **You're directly supporting the bot's developer**

[Create a ticket](https://lnk.earth/discord) if you have questions about security, privacy, compliance, etc.

Expand Down Expand Up @@ -167,7 +166,3 @@ Your bot will usually be ready within 24 hours.

!!! question ""
**Still have questions? Create a ticket [on Discord](https://lnk.earth/discord) for help.**

[^1]: Patches are applied automatically within an hour of release; feature updates are scheduled and performed manually.
[^2]: Compared to x86-based servers, ARM servers are more energy efficient
[^3]: More of the available resources are used compared to an average individual installation
13 changes: 6 additions & 7 deletions docs/self-hosting/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ After setting the `DB_PROVIDER` and `DB_CONNECTION_URL` environment variables, `
This can be done manually but it is recommended to leave it to the `npm run postinstall` script.
You can run this directly, but it will also be run automatically when you run `npm install`.


!!! question "Still need help?"
If this page didn't resolve your issue,
you can ask for help [on Discord](https://lnk.earth/discord)
or [on GitHub](https://github.com/discord-tickets/bot/discussions).


## Current working directory

Since [`v4.0.14`](https://github.com/discord-tickets/bot/releases/tag/v4.0.14), Discord Tickets supports starting the bot from any directory.
Expand Down Expand Up @@ -84,3 +77,9 @@ An invalid role error that occurs during ticket creation, claiming/releasing, or
This can be resolved by navigating to the settings page of each of your categories and simply clicking Save.
This will remove any roles from the category that no longer exist.
If the category's only staff role was deleted, you will need to assign at least one new role before you can save the settings.


!!! question "Still need help?"
If this page didn't resolve your issue,
you can ask for help [on Discord](https://lnk.earth/discord)
or [on GitHub](https://github.com/discord-tickets/bot/discussions).
7 changes: 5 additions & 2 deletions mkdocs.insiders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ theme:
- navigation.footer
- navigation.indexes
# - navigation.instant # doesn't work with home page? :(
# - navigation.instant.prefetch # insiders-only
# - navigation.instant.progress
- navigation.instant.preview # insiders-only
- navigation.path # insiders-only
- navigation.prune # insiders-only
# - navigation.sections
Expand All @@ -47,8 +50,8 @@ extra:
analytics:
provider: custom
domains: discordtickets.app
website: 29b2670b-df51-47b0-aff7-810e52d1e96a
script: https://umami.eartharoid.me/script.js
website: 477eda1e-48af-428f-9ffa-0c682a39bac7
script: https://static.eartharoid.me/ustats.js
feedback:
title: Was this page helpful?
ratings:
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ theme:
custom_dir: overrides/
palette:
- scheme: default
primary: custom
toggle:
icon: octicons/sun-16
name: Switch to dark mode
- scheme: slate
primary: custom
toggle:
icon: octicons/moon-16
name: Switch to light mode
Expand Down
30 changes: 14 additions & 16 deletions overrides/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,42 +27,40 @@
{% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "footer" in page.meta.hide %}
{% endif %}
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}" {{ hidden }}>

<!-- Link to previous page -->
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer') }}" {{ hidden }}>
{% if page.previous_page %}
{% set direction = lang.t("footer.previous") %}
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev"
aria-label="{{ direction }}: {{ page.previous_page.title | e }}" rel="prev">
aria-label="{{ direction }}: {{ page.previous_page.title | e }}">
<div class="md-footer__button md-icon">
{% include ".icons/material/arrow-left.svg" %}
{% set icon = config.theme.icon.previous or "material/arrow-left" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</div>
<div class="md-footer__title">
<span class="md-footer__direction">
{{ direction }}
</span>
<div class="md-ellipsis">
<span class="md-footer__direction">
{{ direction }}
</span>
{{ page.previous_page.title }}
</div>
</div>
</a>
{% endif %}

<!-- Link to next page -->
{% if page.next_page %}
{% set direction = lang.t("footer.next") %}
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next"
aria-label="{{ direction }}: {{ page.next_page.title | e }}" rel="next">
aria-label="{{ direction }}: {{ page.next_page.title | e }}">
<div class="md-footer__title">
<span class="md-footer__direction">
{{ direction }}
</span>
<div class="md-ellipsis">
<span class="md-footer__direction">
{{ direction }}
</span>
{{ page.next_page.title }}
</div>
</div>
<div class="md-footer__button md-icon">
{% include ".icons/material/arrow-right.svg" %}
{% set icon = config.theme.icon.next or "material/arrow-right" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</div>
</a>
{% endif %}
Expand Down Expand Up @@ -105,4 +103,4 @@
{% endif %}
</div>
</div>
</footer>
</footer>
1 change: 1 addition & 0 deletions overrides/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/*
https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/main/_colors.scss
*/
--md-typeset-a-color: #5865F2 !important;
--md-primary-fg-color: #5865F2;
--md-primary-fg-color--light: #7289DA;
--md-primary-fg-color--dark: #424CB8;
Expand Down

0 comments on commit c8dbeef

Please sign in to comment.