From d2a915a743dc322cd4a0b9f4e1828051e604fbe4 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 5 May 2024 03:58:29 +0200 Subject: [PATCH] README: fix image paths for PyPI --- README.md | 8 ++++---- scripts/readme_generator.py | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7043c8f..cd5b48a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Icon CoH2 Live Stats +# Icon CoH2 Live Stats [![CI branch master](https://github.com/brofi/coh2-live-stats/actions/workflows/ci.yml/badge.svg)](https://github.com/brofi/coh2-live-stats/actions/workflows/ci.yml) [![pypi](https://img.shields.io/pypi/v/coh2-live-stats)](https://pypi.org/project/coh2-live-stats/) @@ -13,7 +13,7 @@ Show player and team stats of a currently played, replayed or last played Compan [//]: # () -![Example output](src/coh2_live_stats/res/example_default.svg) +![Example output](https://raw.githubusercontent.com/brofi/coh2-live-stats/master/src/coh2_live_stats/res/example_default.svg) Example output on [Windows Terminal](https://github.com/microsoft/terminal) with [gruvbox](https://github.com/morhetz/gruvbox) colors @@ -219,7 +219,7 @@ uk = "blue" #### Resulting output -![Example output](src/coh2_live_stats/res/example_0.svg) +![Example output](https://raw.githubusercontent.com/brofi/coh2-live-stats/master/src/coh2_live_stats/res/example_0.svg) #### Description @@ -245,7 +245,7 @@ team_rank.visible = false #### Resulting output -![Example output](src/coh2_live_stats/res/example_1.svg) +![Example output](https://raw.githubusercontent.com/brofi/coh2-live-stats/master/src/coh2_live_stats/res/example_1.svg) [//]: # () diff --git a/scripts/readme_generator.py b/scripts/readme_generator.py index 8b0a7c3..42dac94 100644 --- a/scripts/readme_generator.py +++ b/scripts/readme_generator.py @@ -602,7 +602,9 @@ def _examples_to_md() -> str: f'{'\n'.join(example[1])}\n' '```\n' '\n#### Resulting output\n\n' - f'![Example output](src/coh2_live_stats/res/example_{i}.svg)\n' + f'![Example output](' + f'https://raw.githubusercontent.com/brofi/coh2-live-stats/master/' + f'src/coh2_live_stats/res/example_{i}.svg)\n' ) return md