From 3d3d7ad2f811116dff30942a57bc42d5a9656949 Mon Sep 17 00:00:00 2001 From: SuzuSuzu-HaruHaru Date: Sun, 17 Nov 2024 03:29:36 +0100 Subject: [PATCH] better wording in some parts of README.md, changed ci.yml to run only when documentation is modified --- .github/workflows/ci.yml | 11 ++++++++--- README.md | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a2fd94..bbe2255 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,16 @@ -name: ci +name: Deploy MKDocs to GitHub Pages + on: push: branches: - - master + - master - main + paths: + - 'docs/**/*.md' + permissions: contents: write + jobs: deploy: runs-on: ubuntu-latest @@ -20,4 +25,4 @@ jobs: path: .cache - run: pip install mkdocs-material - run: pip install pillow cairosvg - - run: mkdocs gh-deploy --force \ No newline at end of file + - run: mkdocs gh-deploy --force diff --git a/README.md b/README.md index cea0781..f80d466 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ However, the way I just worded it might leave some ambiguity. If we try it on th But here is the catch: according to official European Championship regulations, once certain teams separate from others in a head-to-head comparison, ***the tiebreaking will not reset until they have run out.*** Only when the list of tiebreakers is exhausted, and if some teams still remain tied, are head-to-head results recalculated based solely on the matches played among the still-tied teams. In this case, the list of tiebreakers is the number of points, the goal difference and the number of goals scored: after Slovakia and Ukraine are sorted on goal difference, the head-to-head procedure will not reset until at least the number of goals scored is examined—and this is what ultimately ends up putting Romania on top (Romania 4, Belgium 2). -**Whether the full list of criteria is expected to run out before resetting the head-to-head procedure is decided by the `sorting.h2h.span` key,** which can take the string value `"all"` to signify the style that we have just seen (the one where we must wait until all criteria are applied before re-evaluating any head-to-head sub-tables) or the string value `"single"` to mean the opposite, i.e. the case when head-to-head restarts from the beginning every single time some teams separate from others (basically the same line of reasoning that, in our fictional example, had made Belgium the winner of the group). +**Whether the full list of criteria is expected to run out before resetting the head-to-head procedure is decided by the `sorting.h2h.span` key,** which can take the string value `"all"` to signify the style that we have just seen (the one where we must wait until all criteria are applied before re-evaluating any head-to-head sub-tables) or the string value `"single"` to mean the opposite, i.e. the case where head-to-head checks restart from the beginning every single time some teams separate from others (basically the same line of reasoning that, in our fictional example, had made Belgium the winner of the group). Notice, however, how some competitions do not have this provision at all: the FIFA World Cup is one prime example, where head-to-head criteria apply after the overall one but there is no requirement to restart them at any point should they only help to separate some teams, but not others. This behavior can be replicated via the third and last accepted value, `"none"`.