Skip to content

Commit 90c3044

Browse files
committed
Merge branch 'main' into dev
2 parents 4e0ac98 + 2b9d0e2 commit 90c3044

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

docs/assets/star-history.png

138 KB
Loading

docs/index.md

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -154,36 +154,12 @@ MySpider().start()
154154
## Star History
155155
Scrapling’s GitHub stars have grown steadily since its release (see chart below).
156156

157-
<div id="chartContainer">
158-
<a href="https://github.com/D4Vinci/Scrapling">
159-
<img id="chartImage" alt="Star History Chart" loading="lazy" src="https://api.star-history.com/svg?repos=D4Vinci/Scrapling&type=Date" height="400"/>
157+
<div>
158+
<a href="https://www.star-history.com/?repos=D4vinci%2FScrapling&type=date&legend=top-left">
159+
<img alt="Star History Chart" loading="lazy" src="assets/star-history.png" style="height: 400px;"/>
160160
</a>
161161
</div>
162162

163-
<script>
164-
const observer = new MutationObserver((mutations) => {
165-
mutations.forEach((mutation) => {
166-
if (mutation.attributeName === 'data-md-color-media') {
167-
const colorMedia = document.body.getAttribute('data-md-color-media');
168-
const isDarkScheme = document.body.getAttribute('data-md-color-scheme') === 'slate';
169-
const chartImg = document.querySelector('#chartImage');
170-
const baseUrl = 'https://api.star-history.com/svg?repos=D4Vinci/Scrapling&type=Date';
171-
172-
if (colorMedia === '(prefers-color-scheme)' ? isDarkScheme : colorMedia.includes('dark')) {
173-
chartImg.src = `${baseUrl}&theme=dark`;
174-
} else {
175-
chartImg.src = baseUrl;
176-
}
177-
}
178-
});
179-
});
180-
181-
observer.observe(document.body, {
182-
attributes: true,
183-
attributeFilter: ['data-md-color-media', 'data-md-color-scheme']
184-
});
185-
</script>
186-
187163

188164
## Installation
189165
Scrapling requires Python 3.10 or higher:

0 commit comments

Comments
 (0)