Archipelago/WebHostLib
Remy Jette 3bff20a3cf
WebHost: Round percentage of checks, fix possible 500 error ()
* WebHost: Round percentage of checks, fix possible 500 error

* Round using str.format in the template

How the percentage of checks done should be displayed is a display
concern, so it makes sense to just always do it in the template. That
way, along with using .format() instead of .round, means we always get
exactly the same presentation regardless of whether it ends in .00
(which would not round to two decimal places), is an int (which
`round(2)` wouldn't touch at all), etc.

* Round percent_total_checks_done in lttp multitracker

* Fix non-LttP games showing as 0% done in LttP MultiTracker
2023-10-31 17:20:07 -04:00
..
api WebHost: import Markup from markupsafe () 2023-06-20 01:01:42 +02:00
static Docs, WebHost: Update faq_en.md () 2023-10-28 14:18:11 -04:00
templates WebHost: Round percentage of checks, fix possible 500 error () 2023-10-31 17:20:07 -04:00
README.md
__init__.py WebHost: update flask () 2023-10-09 10:18:41 +02:00
autolauncher.py Core, WebHost: lazy-load worlds in unpickler, WebHost and WebHostLib () 2023-09-20 16:05:56 +02:00
check.py WebHost: offer combined yaml file on /check if successful () 2023-10-22 02:02:30 +02:00
customserver.py WebHost: check that worlds system is not loaded in customserver () 2023-09-27 11:26:08 +02:00
downloads.py KH2 game implementation () 2023-03-20 17:19:55 +01:00
generate.py WebHost: Support multi-select during check/generate file upload () 2023-09-11 16:57:14 -04:00
landing.py
locker.py Core, WebHost: lazy-load worlds in unpickler, WebHost and WebHostLib () 2023-09-20 16:05:56 +02:00
lttpsprites.py WebHost: Fixed warning ".gitignore dropped, as it has no valid sprite data." () 2022-11-02 19:06:00 +01:00
misc.py WebHost: consistent naming for player options () 2023-10-24 02:20:08 +02:00
models.py WebHost: index columns used by landing page. 2023-05-21 05:01:29 +02:00
options.py WebHost: consistent naming for player options () 2023-10-24 02:20:08 +02:00
requirements.txt WebHost: update flask () 2023-10-09 10:18:41 +02:00
stats.py
tracker.py WebHost: Round percentage of checks, fix possible 500 error () 2023-10-31 17:20:07 -04:00
upload.py WebHost: Show error instead of 500 for unexpected files in multidata zip () 2023-10-10 23:20:08 +02:00

README.md

WebHost

Contribution Guidelines

Thank you for your interest in contributing to the Archipelago website!
Much of the content on the website is generated automatically, but there are some things that need a personal touch. For those things, we rely on contributions from both the core team and the community. The current primary maintainer of the website is Farrak Kilhn. He may be found on Discord as Farrak Kilhn#0418, or on GitHub as LegendaryLinux.

Small Changes

Little changes like adding a button or a couple new select elements are perfectly fine. Tweaks to style specific to a PR's content are also probably not a problem. For example, if you build a new page which needs two side by side tables, and you need to write a CSS file specific to your page, that is perfectly reasonable.

Content Additions

Once you develop a new feature or add new content the website, make a pull request. It will be reviewed by the community and there will probably be some discussion around it. Depending on the size of the feature, and if new styles are required, there may be an additional step before the PR is accepted wherein Farrak works with the designer to implement styles.

Restrictions on Style Changes

A professional designer is paid to develop the styles and assets for the Archipelago website. In an effort to maintain a consistent look and feel, pull requests which exclusively change site styles are rejected. Please note this applies to code which changes the overall look and feel of the site, not to small tweaks to CSS for your custom page. The intention behind these restrictions is to maintain a curated feel for the design of the site. If any PR affects the overall feel of the site but includes additive changes, there will likely be a conversation about how to implement those changes without compromising the curated site style. It is therefore worth noting there are a couple files which, if changed in your pull request, will cause it to draw additional scrutiny.

These closely guarded files are:

  • globalStyles.css
  • islandFooter.css
  • landing.css
  • markdown.css
  • tooltip.css

Site Themes

There are several themes available for game pages. It is possible to request a new theme in the #art-and-design channel on Discord. Because themes are created by the designer, they are not free, and take some time to create. Farrak works closely with the designer to implement these themes, and pays for the assets out of pocket. Therefore, only a couple themes per year are added. If a proposed theme seems like a cool idea and the community likes it, there is a good chance it will become a reality.