Skip to content

Commit 187acae

Browse files
committed
docs: add images directory creation in deployment workflow script
1 parent 2b775f4 commit 187acae

File tree

7 files changed

+76
-20
lines changed

7 files changed

+76
-20
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Prepare final site
3030
run: |
3131
mkdir -p site/docs
32+
mkdir -p site/images
3233
cp -r temp_docs/* site/docs/
3334
cp -r docs/landing/* site/
3435
cp -r docs/images/* site/images/

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 2.6.0 (2025-08-10)
2+
3+
### Feat
4+
5+
- add DownloadTimeout exception for file download timeouts
6+
- add context manager for handling file downloads in Tab class
7+
8+
### Refactor
9+
10+
- add type checking for connection handler in mixin class
11+
- add type overloads for event callback in Browser class
12+
113
## 2.5.0 (2025-08-07)
214

315
### Feat

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
<p align="center">
20-
📖 <a href="https://autoscrape-labs.github.io/pydoll/">Documentation</a> •
20+
📖 <a href="https://pydoll.tech/">Documentation</a> •
2121
🚀 <a href="#-getting-started">Getting Started</a> •
2222
⚡ <a href="#-advanced-features">Advanced Features</a> •
2323
🤝 <a href="#-contributing">Contributing</a> •
@@ -209,7 +209,7 @@ options.browser_preferences = {
209209

210210
This level of control was previously only available to Chrome extension developers - now it's in your automation toolkit!
211211

212-
Check the [documentation](https://autoscrape-labs.github.io/pydoll/features/#custom-browser-preferences/) for more details.
212+
Check the [documentation](https://pydoll.tech/docs/features/#custom-browser-preferences/) for more details.
213213

214214
### New `get_parent_element()` method
215215
Retrieve the parent of any WebElement, making it easier to navigate the DOM structure:
@@ -520,7 +520,7 @@ options.add_argument('--disable-dev-shm-usage')
520520

521521
## 📚 Documentation
522522

523-
For complete documentation, detailed examples and deep dives into all Pydoll functionalities, visit our [official documentation](https://autoscrape-labs.github.io/pydoll/).
523+
For complete documentation, detailed examples and deep dives into all Pydoll functionalities, visit our [official documentation](https://pydoll.tech/).
524524

525525
The documentation includes:
526526
- **Getting Started Guide** - Step-by-step tutorials

cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
commitizen:
33
name: cz_conventional_commits
44
tag_format: $version
5-
version: 2.5.0
5+
version: 2.6.0

docs/landing/index.html

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"sameAs": [
5454
"https://github.com/autoscrape-labs/pydoll",
55-
"https://pypi.org/project/pydoll-python/",
55+
"https://pypi.org/project/pydoll-python/"
5656
]
5757
},
5858
{
@@ -90,7 +90,7 @@
9090
"publisher": { "@id": "https://pydoll.tech/#org" },
9191
"offers": {
9292
"@type": "Offer",
93-
"price": "0",
93+
"price": 0,
9494
"priceCurrency": "USD"
9595
},
9696
"codeRepository": "https://github.com/autoscrape-labs/pydoll",
@@ -186,16 +186,33 @@
186186
<img src="https://pydoll.tech/images/E2ECED-cinza-azulado.png" alt="Pydoll" class="h-8 w-auto" />
187187

188188
</a>
189-
<nav class="flex items-center gap-2 sm:gap-3">
189+
<!-- Desktop nav -->
190+
<nav class="hidden items-center gap-2 sm:flex sm:gap-3">
190191
<a href="https://pydoll.tech/docs/" target="_blank" rel="noopener" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Docs</a>
191192
<a href="#install" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Install</a>
192193
<a href="#faq" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">FAQ</a>
193194
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="px-3 py-2 text-sm font-medium text-slate-200 hover:text-white">Sponsor</a>
194-
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" aria-label="Star on GitHub" class="inline-flex items-center gap-2 rounded-md bg-yellow-400 px-3 py-2 text-sm font-semibold text-slate-900 shadow hover:bg-yellow-300">
195+
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" aria-label="Star on GitHub" class="inline-flex items-center gap-2 rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white shadow hover:bg-brand-400">
195196
⭐ Star
196-
<span id="starCount" class="hidden rounded bg-slate-900/10 px-2 py-0.5 text-slate-900/80 sm:inline-block">...</span>
197+
<span id="starCount" class="hidden rounded bg-white/10 px-2 py-0.5 text-white/80 sm:inline-block">...</span>
197198
</a>
198199
</nav>
200+
<!-- Mobile toggle -->
201+
<button id="mobileMenuButton" aria-controls="mobileMenu" aria-expanded="false" class="inline-flex items-center justify-center rounded-md p-2 text-slate-200 hover:text-white hover:bg-white/5 focus:outline-none focus:ring-2 focus:ring-brand-500 sm:hidden" type="button">
202+
<span class="sr-only">Open main menu</span>
203+
<svg id="iconMenu" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
204+
<svg id="iconClose" xmlns="http://www.w3.org/2000/svg" class="hidden h-6 w-6" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
205+
</button>
206+
</div>
207+
<!-- Mobile menu panel -->
208+
<div id="mobileMenu" class="hidden sm:hidden">
209+
<div class="space-y-1 border-t border-white/10 py-3">
210+
<a href="https://pydoll.tech/docs/" target="_blank" rel="noopener" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Docs</a>
211+
<a href="#install" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Install</a>
212+
<a href="#faq" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">FAQ</a>
213+
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="block rounded-md px-3 py-2 text-sm font-medium text-slate-200 hover:bg-white/5">Sponsor</a>
214+
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" class="mt-2 inline-flex w-full items-center justify-center gap-2 rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white shadow hover:bg-brand-400">⭐ Star</a>
215+
</div>
199216
</div>
200217
</div>
201218
</header>
@@ -303,22 +320,22 @@ <h3 class="flex items-center gap-2 text-lg font-semibold">
303320
</section>
304321

305322
<!-- Install CTA -->
306-
<section id="install">
323+
<section id="install" class="overflow-x-hidden">
307324
<div class="mx-auto max-w-7xl px-4 py-14 sm:px-6 lg:px-8">
308-
<div class="grid items-center gap-8 lg:grid-cols-2">
309-
<div>
325+
<div class="grid grid-cols-1 items-center gap-8 lg:grid-cols-2">
326+
<div class="min-w-0">
310327
<h2 class="text-2xl font-bold tracking-tight">Install and get started in seconds</h2>
311328
<p class="mt-3 text-slate-300">No complex setup. Install, import and automate.</p>
312-
<div class="mt-6 rounded-lg border border-white/10 bg-slate-950 p-4">
313-
<div class="flex items-center justify-between">
314-
<code id="installCmd" class="text-sm">pip install pydoll-python</code>
315-
<button id="copyBtn" class="rounded-md bg-slate-800 px-3 py-1.5 text-xs font-semibold text-slate-100 hover:bg-slate-700">Copy</button>
329+
<div class="mt-6 rounded-lg border border-white/10 bg-slate-950 p-3 sm:p-4">
330+
<div class="flex items-center gap-3 flex-wrap sm:flex-nowrap">
331+
<code id="installCmd" class="text-sm block max-w-full whitespace-nowrap overflow-x-auto">pip install pydoll-python</code>
332+
<button id="copyBtn" class="shrink-0 rounded-md bg-slate-800 px-3 py-1.5 text-xs font-semibold text-slate-100 hover:bg-slate-700">Copy</button>
316333
</div>
317334
</div>
318335
<!-- Quick code example -->
319336
<div class="mt-6">
320337
<p class="mb-2 text-sm text-slate-300">Quick example:</p>
321-
<pre class="language-python overflow-x-auto rounded-lg border border-white/10 bg-slate-950 p-4 text-[12px] leading-relaxed"><code class="language-python">import asyncio
338+
<pre class="language-python overflow-x-auto max-w-full rounded-lg border border-white/10 bg-slate-950 p-4 text-[12px] leading-relaxed"><code class="language-python">import asyncio
322339
from pydoll.browser.chromium import Chrome
323340

324341
async def main():
@@ -336,7 +353,7 @@ <h2 class="text-2xl font-bold tracking-tight">Install and get started in seconds
336353
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="inline-flex items-center justify-center gap-2 rounded-md border border-white/10 px-4 py-2 text-sm font-semibold text-white/90 hover:bg-white/5">Support the project</a>
337354
</div>
338355
</div>
339-
<div class="relative overflow-hidden rounded-xl border border-white/10 bg-slate-950 shadow-xl">
356+
<div class="relative min-w-0 w-full overflow-hidden rounded-xl border border-white/10 bg-slate-950 shadow-xl">
340357
<div class="flex items-center gap-2 border-b border-white/10 bg-slate-900/80 px-3 py-2">
341358
<span class="h-2.5 w-2.5 rounded-full bg-red-400/70"></span>
342359
<span class="h-2.5 w-2.5 rounded-full bg-yellow-400/70"></span>
@@ -548,7 +565,7 @@ <h4 class="text-lg font-semibold">Enjoying Pydoll?</h4>
548565
<p class="mt-1 text-sm text-slate-200/90">Star it, contribute to the repo or sponsor the development.</p>
549566
</div>
550567
<div class="flex flex-wrap gap-2">
551-
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" class="inline-flex items-center gap-2 rounded-md bg-yellow-400 px-3 py-2 text-sm font-semibold text-slate-900 hover:bg-yellow-300">⭐ Star</a>
568+
<a href="https://github.com/autoscrape-labs/pydoll" target="_blank" rel="noopener" class="inline-flex items-center gap-2 rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-400">⭐ Star</a>
552569
<a href="https://github.com/autoscrape-labs/pydoll/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener" class="inline-flex items-center gap-2 rounded-md border border-white/10 px-3 py-2 text-sm font-semibold text-white/90 hover:bg-white/5">👩‍💻 Contribute</a>
553570
<a href="https://github.com/sponsors/thalissonvs" target="_blank" rel="noopener" class="inline-flex items-center gap-2 rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-400">💖 Sponsor</a>
554571
</div>

docs/landing/script.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,32 @@
160160
bindCopy('copyRequestsBtn', 'codeRequests')
161161
bindCopy('copyPrefsBtn', 'codePrefs')
162162

163+
// Mobile menu toggle
164+
const mobileMenuButton = document.getElementById('mobileMenuButton')
165+
const mobileMenu = document.getElementById('mobileMenu')
166+
const iconMenu = document.getElementById('iconMenu')
167+
const iconClose = document.getElementById('iconClose')
168+
if (mobileMenuButton && mobileMenu && iconMenu && iconClose) {
169+
const setExpanded = (expanded) => {
170+
mobileMenuButton.setAttribute('aria-expanded', String(expanded))
171+
mobileMenu.classList.toggle('hidden', !expanded)
172+
iconMenu.classList.toggle('hidden', expanded)
173+
iconClose.classList.toggle('hidden', !expanded)
174+
}
175+
mobileMenuButton.addEventListener('click', () => {
176+
const isOpen = mobileMenuButton.getAttribute('aria-expanded') === 'true'
177+
setExpanded(!isOpen)
178+
})
179+
// Close on escape and when clicking links
180+
document.addEventListener('keydown', (e) => {
181+
if (e.key === 'Escape') setExpanded(false)
182+
})
183+
mobileMenu.addEventListener('click', (e) => {
184+
const target = e.target
185+
if (target instanceof HTMLElement && target.tagName === 'A') setExpanded(false)
186+
})
187+
}
188+
163189
// (CTA final não requer JS adicional)
164190
})()
165191

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydoll-python"
3-
version = "2.5.0"
3+
version = "2.6.0"
44
description = "Pydoll is a library for automating chromium-based browsers without a WebDriver, offering realistic interactions."
55
authors = ["Thalison Fernandes <thalissfernandes99@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)