From 05eb7f0c4557738142a25c5b287301b2b9de170b Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 17 Jul 2024 14:56:39 +0200 Subject: [PATCH] Improve sponsor handling --- .readthedocs.yaml | 4 ++++ README.md | 21 +++++++++++++++++---- docs/index.md | 22 ++++++++++++++++++++++ pyproject.toml | 25 +++++++++++++++++++++++-- tox.ini | 8 +++++++- 5 files changed, 73 insertions(+), 7 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1cd04f231..e8583f15f 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,6 +11,10 @@ build: post_checkout: - git fetch --tags + # Replace versions in sponsor URLs + pre_build: + - cog -rP docs/index.md + python: install: - method: pip diff --git a/README.md b/README.md index c3a837262..48df91447 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,26 @@ Its main goal is to help you to write **concise** and **correct** software witho *attrs* would not be possible without our [amazing sponsors](https://github.com/sponsors/hynek). Especially those generously supporting us at the *The Organization* tier and higher: + +

- - - - + + + + + + + +

+ +

Please consider joining them to help make attrs’s maintenance more sustainable!

diff --git a/docs/index.md b/docs/index.md index 7b9b5728f..b942f4fe8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,6 +4,28 @@ Release **{sub-ref}`release`** ([What's new?](changelog.md)) ```{include} ../README.md :start-after: 'teaser-begin -->' +:end-before: ' + + + + + + +```{include} ../README.md +:start-after: 'sponsor-break-end -->' :end-before: '