mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-02 18:51:31 +08:00
docs: Modern landing page with custom template
- Add custom home.html template to break out of MkDocs constraints - Create Caddy-inspired minimal CSS for landing page - Redesign hero section with terminal demo - Add framework tags and worker type cards - Full-width sections with vertical narrative flow - Dark mode support
This commit is contained in:
parent
5ea4eb340a
commit
dcec6e701a
435
docs/content/assets/stylesheets/home.css
Normal file
435
docs/content/assets/stylesheets/home.css
Normal file
@ -0,0 +1,435 @@
|
|||||||
|
/* ============================================
|
||||||
|
Gunicorn Landing Page
|
||||||
|
Inspired by Caddy: minimal, spacious, clean
|
||||||
|
============================================ */
|
||||||
|
|
||||||
|
.home {
|
||||||
|
--accent: #499848;
|
||||||
|
--accent-hover: #3d8040;
|
||||||
|
--text: #333;
|
||||||
|
--text-muted: #666;
|
||||||
|
--bg: #fff;
|
||||||
|
--bg-alt: #f6f8fa;
|
||||||
|
--border: #e1e4e8;
|
||||||
|
--code-bg: #0d1117;
|
||||||
|
--max-width: 900px;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
max-width: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 1.0625rem;
|
||||||
|
line-height: 1.7;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .home {
|
||||||
|
--text: #e6e6e6;
|
||||||
|
--text-muted: #999;
|
||||||
|
--bg: #1a1a1a;
|
||||||
|
--bg-alt: #242424;
|
||||||
|
--border: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Remove MkDocs constraints */
|
||||||
|
.md-main__inner { margin: 0; max-width: none; }
|
||||||
|
.md-content { max-width: none; }
|
||||||
|
.md-content__inner { margin: 0; padding: 0; }
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Sections - Caddy-style vertical flow
|
||||||
|
============================================ */
|
||||||
|
.home section {
|
||||||
|
padding: 5rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home section:nth-child(even) {
|
||||||
|
background: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.home .container {
|
||||||
|
max-width: var(--max-width);
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Hero
|
||||||
|
============================================ */
|
||||||
|
.hero {
|
||||||
|
text-align: center;
|
||||||
|
padding: 6rem 2rem 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero .container {
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero__logo {
|
||||||
|
width: 350px !important;
|
||||||
|
max-width: 350px !important;
|
||||||
|
min-width: 350px;
|
||||||
|
height: auto;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero h1 {
|
||||||
|
font-size: 3rem;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1.15;
|
||||||
|
margin: 0 0 1.5rem 0;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero__tagline {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: 0 0 2.5rem 0;
|
||||||
|
max-width: 550px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero__buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
padding: 0.875rem 1.75rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 500;
|
||||||
|
text-decoration: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--primary {
|
||||||
|
background: var(--accent);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--primary:hover {
|
||||||
|
background: var(--accent-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--secondary {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn--secondary:hover {
|
||||||
|
border-color: var(--accent);
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Terminal */
|
||||||
|
.terminal {
|
||||||
|
background: var(--code-bg);
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: left;
|
||||||
|
max-width: 500px;
|
||||||
|
margin: 0 auto;
|
||||||
|
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__header {
|
||||||
|
background: #161b22;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__dot {
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__dot--red { background: #ff5f56; }
|
||||||
|
.terminal__dot--yellow { background: #ffbd2e; }
|
||||||
|
.terminal__dot--green { background: #27c93f; }
|
||||||
|
|
||||||
|
.terminal__body {
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
font-family: 'SF Mono', Monaco, Consolas, monospace;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
line-height: 1.8;
|
||||||
|
color: #c9d1d9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__line {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__prompt {
|
||||||
|
color: var(--accent);
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal__comment {
|
||||||
|
color: #6e7681;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Why Gunicorn - 3 pillars
|
||||||
|
============================================ */
|
||||||
|
.why h2 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2rem;
|
||||||
|
margin: 0 0 3rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pillars {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pillar h3 {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
margin: 0 0 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pillar p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Frameworks
|
||||||
|
============================================ */
|
||||||
|
.frameworks h2 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin: 0 0 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frameworks__subtitle {
|
||||||
|
text-align: center;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: 0 0 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frameworks__list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.framework-tag {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
background: var(--bg);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 100px;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .framework-tag {
|
||||||
|
background: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.framework-tag:hover {
|
||||||
|
border-color: var(--accent);
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.framework-tag--new {
|
||||||
|
background: var(--accent);
|
||||||
|
color: #fff;
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Workers
|
||||||
|
============================================ */
|
||||||
|
.workers h2 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin: 0 0 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workers__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.worker {
|
||||||
|
padding: 1.5rem;
|
||||||
|
background: var(--bg);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 8px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
transition: border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .worker {
|
||||||
|
background: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.worker:hover {
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.worker h3 {
|
||||||
|
font-size: 1rem;
|
||||||
|
margin: 0 0 0.25rem 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.worker p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
font-size: 0.625rem;
|
||||||
|
font-weight: 700;
|
||||||
|
padding: 0.125rem 0.375rem;
|
||||||
|
background: var(--accent);
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 3px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Quick Links
|
||||||
|
============================================ */
|
||||||
|
.quick-links {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-links h2 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin: 0 0 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-links__grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 1rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-link {
|
||||||
|
padding: 1.25rem;
|
||||||
|
background: var(--bg);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 8px;
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
transition: border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .quick-link {
|
||||||
|
background: var(--bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-link:hover {
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-link strong {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-link span {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Footer CTA
|
||||||
|
============================================ */
|
||||||
|
.home-footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-footer h2 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin: 0 0 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-footer p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: 0 0 2rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-footer__links {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-footer__links a {
|
||||||
|
color: var(--text-muted);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-footer__links a:hover {
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ============================================
|
||||||
|
Responsive
|
||||||
|
============================================ */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.home section {
|
||||||
|
padding: 3.5rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero h1 {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pillars {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.workers__grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-links__grid {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.hero h1 {
|
||||||
|
font-size: 1.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero__buttons {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quick-links__grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,117 +1,127 @@
|
|||||||
# Gunicorn
|
---
|
||||||
|
template: home.html
|
||||||
|
title: Gunicorn - Python WSGI HTTP Server
|
||||||
|
---
|
||||||
|
|
||||||
<div class="hero">
|
<section class="hero">
|
||||||
<div class="hero__inner">
|
<div class="container">
|
||||||
<div class="hero__copy">
|
<img class="hero__logo" src="assets/gunicorn.svg" alt="Gunicorn" style="width: 350px;" />
|
||||||
<img class="hero__logo" src="assets/gunicorn.svg" alt="Gunicorn mascot" />
|
<h1>The Python WSGI Server</h1>
|
||||||
<h1>The Python WSGI Server<br>for Production</h1>
|
<p class="hero__tagline">
|
||||||
<p class="hero__tagline">Fast, reliable, and battle-tested. Gunicorn runs your Python web applications with the stability and performance you need in production.</p>
|
Battle-tested. Production-ready. One command to serve your Python apps.
|
||||||
<div class="hero__cta">
|
</p>
|
||||||
<a class="md-button md-button--primary" href="quickstart/">Get Started</a>
|
<div class="hero__buttons">
|
||||||
<a class="md-button" href="https://github.com/benoitc/gunicorn">GitHub</a>
|
<a class="btn btn--primary" href="quickstart/">Get Started</a>
|
||||||
|
<a class="btn btn--secondary" href="https://github.com/benoitc/gunicorn">View on GitHub</a>
|
||||||
|
</div>
|
||||||
|
<div class="terminal">
|
||||||
|
<div class="terminal__header">
|
||||||
|
<span class="terminal__dot terminal__dot--red"></span>
|
||||||
|
<span class="terminal__dot terminal__dot--yellow"></span>
|
||||||
|
<span class="terminal__dot terminal__dot--green"></span>
|
||||||
|
</div>
|
||||||
|
<div class="terminal__body">
|
||||||
|
<span class="terminal__line"><span class="terminal__prompt">$ </span>pip install gunicorn</span>
|
||||||
|
<span class="terminal__line"><span class="terminal__prompt">$ </span>gunicorn myapp:app</span>
|
||||||
|
<span class="terminal__line terminal__comment"># Listening at http://127.0.0.1:8000</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="hero__code">
|
</div>
|
||||||
<pre><code class="language-bash">pip install gunicorn
|
</section>
|
||||||
gunicorn myapp:app --workers 4</code></pre>
|
|
||||||
<div class="hero__version">v{{ release }}</div>
|
<section class="why">
|
||||||
|
<div class="container">
|
||||||
|
<h2>Why Gunicorn?</h2>
|
||||||
|
<div class="pillars">
|
||||||
|
<div class="pillar">
|
||||||
|
<h3>Production-Proven</h3>
|
||||||
|
<p>Trusted by thousands of companies. The pre-fork worker model handles traffic spikes gracefully.</p>
|
||||||
|
</div>
|
||||||
|
<div class="pillar">
|
||||||
|
<h3>Lightweight</h3>
|
||||||
|
<p>Minimal dependencies, simple configuration. Efficient from containers to bare metal.</p>
|
||||||
|
</div>
|
||||||
|
<div class="pillar">
|
||||||
|
<h3>Compatible</h3>
|
||||||
|
<p>Works with any WSGI or ASGI framework. Django, Flask, FastAPI—it just runs.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<section class="pillars">
|
<section class="frameworks">
|
||||||
<div class="pillar">
|
<div class="container">
|
||||||
<div class="pillar__icon">🚀</div>
|
<h2>Works With Your Stack</h2>
|
||||||
<h3>Production-Proven</h3>
|
<p class="frameworks__subtitle">WSGI and ASGI frameworks, no changes needed</p>
|
||||||
<p>Trusted by thousands of companies worldwide. The pre-fork worker model handles traffic spikes gracefully.</p>
|
<div class="frameworks__list">
|
||||||
</div>
|
<span class="framework-tag">Django</span>
|
||||||
<div class="pillar">
|
<span class="framework-tag">Flask</span>
|
||||||
<div class="pillar__icon">⚡</div>
|
<span class="framework-tag framework-tag--new">FastAPI</span>
|
||||||
<h3>Lightweight</h3>
|
<span class="framework-tag">Pyramid</span>
|
||||||
<p>Minimal dependencies, simple configuration. Runs efficiently from containers to bare metal servers.</p>
|
<span class="framework-tag framework-tag--new">Starlette</span>
|
||||||
</div>
|
<span class="framework-tag">Falcon</span>
|
||||||
<div class="pillar">
|
<span class="framework-tag">Bottle</span>
|
||||||
<div class="pillar__icon">🔌</div>
|
<span class="framework-tag framework-tag--new">Quart</span>
|
||||||
<h3>Compatible</h3>
|
</div>
|
||||||
<p>Works with any WSGI framework. Django, Flask, Pyramid—your app just runs. Now with ASGI support.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Works With Your Stack
|
<section class="workers">
|
||||||
|
<div class="container">
|
||||||
<div class="frameworks">
|
<h2>Choose Your Worker</h2>
|
||||||
<div class="framework" title="Django">
|
<div class="workers__grid">
|
||||||
<span class="framework__name">Django</span>
|
<a class="worker" href="design/#sync-workers">
|
||||||
|
<h3>Sync</h3>
|
||||||
|
<p>The default. One request per worker. Simple and predictable.</p>
|
||||||
|
</a>
|
||||||
|
<a class="worker" href="design/#async-workers">
|
||||||
|
<h3>Async (Gevent/Eventlet)</h3>
|
||||||
|
<p>Thousands of concurrent connections for I/O-bound workloads.</p>
|
||||||
|
</a>
|
||||||
|
<a class="worker" href="reference/settings/#threads">
|
||||||
|
<h3>Threads</h3>
|
||||||
|
<p>Multiple threads per worker. Balance concurrency and simplicity.</p>
|
||||||
|
</a>
|
||||||
|
<a class="worker" href="asgi/">
|
||||||
|
<h3>ASGI <span class="badge">Beta</span></h3>
|
||||||
|
<p>Native asyncio for FastAPI, Starlette, and async frameworks.</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="framework" title="Flask">
|
|
||||||
<span class="framework__name">Flask</span>
|
|
||||||
</div>
|
|
||||||
<div class="framework" title="FastAPI">
|
|
||||||
<span class="framework__name">FastAPI</span>
|
|
||||||
</div>
|
|
||||||
<div class="framework" title="Pyramid">
|
|
||||||
<span class="framework__name">Pyramid</span>
|
|
||||||
</div>
|
|
||||||
<div class="framework" title="Starlette">
|
|
||||||
<span class="framework__name">Starlette</span>
|
|
||||||
</div>
|
|
||||||
<div class="framework" title="Falcon">
|
|
||||||
<span class="framework__name">Falcon</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
## Choose Your Worker
|
|
||||||
|
|
||||||
<section class="feature-grid">
|
|
||||||
<article class="feature-card">
|
|
||||||
<h3>Sync Workers</h3>
|
|
||||||
<p>The default. One request per worker. Simple, predictable, and perfect for most applications.</p>
|
|
||||||
<a href="design/#sync-workers">Learn more</a>
|
|
||||||
</article>
|
|
||||||
<article class="feature-card">
|
|
||||||
<h3>Async Workers</h3>
|
|
||||||
<p>Gevent or Eventlet for thousands of concurrent connections. Ideal for I/O-bound workloads.</p>
|
|
||||||
<a href="design/#async-workers">Learn more</a>
|
|
||||||
</article>
|
|
||||||
<article class="feature-card">
|
|
||||||
<h3>Thread Workers</h3>
|
|
||||||
<p>Multiple threads per worker. Balance between concurrency and simplicity.</p>
|
|
||||||
<a href="reference/settings/#threads">Learn more</a>
|
|
||||||
</article>
|
|
||||||
<article class="feature-card">
|
|
||||||
<h3>ASGI Workers <span class="badge badge--new">Beta</span></h3>
|
|
||||||
<p>Native asyncio support for FastAPI, Starlette, and other async frameworks.</p>
|
|
||||||
<a href="asgi/">Learn more</a>
|
|
||||||
</article>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Quick Links
|
<section class="quick-links">
|
||||||
|
<div class="container">
|
||||||
|
<h2>Documentation</h2>
|
||||||
|
<div class="quick-links__grid">
|
||||||
|
<a class="quick-link" href="quickstart/">
|
||||||
|
<strong>Quickstart</strong>
|
||||||
|
<span>Get running in 5 minutes</span>
|
||||||
|
</a>
|
||||||
|
<a class="quick-link" href="deploy/">
|
||||||
|
<strong>Deployment</strong>
|
||||||
|
<span>Nginx, systemd, Docker</span>
|
||||||
|
</a>
|
||||||
|
<a class="quick-link" href="reference/settings/">
|
||||||
|
<strong>Settings</strong>
|
||||||
|
<span>All configuration options</span>
|
||||||
|
</a>
|
||||||
|
<a class="quick-link" href="faq/">
|
||||||
|
<strong>FAQ</strong>
|
||||||
|
<span>Common questions</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<div class="quick-links">
|
<section class="home-footer">
|
||||||
<a href="quickstart/" class="quick-link">
|
<div class="container">
|
||||||
<strong>Quickstart</strong>
|
<h2>Join the Community</h2>
|
||||||
<span>Get running in 5 minutes</span>
|
<p>Questions? Bugs? Ideas? We're here to help.</p>
|
||||||
</a>
|
<div class="home-footer__links">
|
||||||
<a href="deploy/" class="quick-link">
|
<a href="https://github.com/benoitc/gunicorn/issues">GitHub Issues</a>
|
||||||
<strong>Deployment</strong>
|
<a href="https://web.libera.chat/#gunicorn">#gunicorn on Libera</a>
|
||||||
<span>Nginx, systemd, Docker</span>
|
<a href="community/">Contributing</a>
|
||||||
</a>
|
</div>
|
||||||
<a href="reference/settings/" class="quick-link">
|
</div>
|
||||||
<strong>Settings</strong>
|
</section>
|
||||||
<span>100+ configuration options</span>
|
|
||||||
</a>
|
|
||||||
<a href="faq/" class="quick-link">
|
|
||||||
<strong>FAQ</strong>
|
|
||||||
<span>Common questions answered</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
## Community
|
|
||||||
|
|
||||||
<div class="community-links">
|
|
||||||
|
|
||||||
- **[GitHub Issues](https://github.com/benoitc/gunicorn/issues)** — Report bugs and request features
|
|
||||||
- **[#gunicorn on Libera Chat](https://web.libera.chat/#gunicorn)** — Chat with the community
|
|
||||||
- **[Contributing](community/#contributing)** — Help improve Gunicorn
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|||||||
@ -46,6 +46,7 @@ nav:
|
|||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
custom_dir: overrides
|
||||||
language: en
|
language: en
|
||||||
logo: assets/gunicorn.svg
|
logo: assets/gunicorn.svg
|
||||||
favicon: assets/gunicorn.svg
|
favicon: assets/gunicorn.svg
|
||||||
@ -92,6 +93,7 @@ markdown_extensions:
|
|||||||
|
|
||||||
extra_css:
|
extra_css:
|
||||||
- styles/overrides.css
|
- styles/overrides.css
|
||||||
|
- assets/stylesheets/home.css
|
||||||
|
|
||||||
extra:
|
extra:
|
||||||
social:
|
social:
|
||||||
|
|||||||
30
overrides/home.html
Normal file
30
overrides/home.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{% extends "main.html" %}
|
||||||
|
|
||||||
|
{% block tabs %}
|
||||||
|
{{ super() }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block htmltitle %}
|
||||||
|
<title>Gunicorn - Python WSGI HTTP Server for UNIX</title>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block styles %}
|
||||||
|
{{ super() }}
|
||||||
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/home.css' | url }}">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block hero %}{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
|
||||||
|
{% block site_nav %}{% endblock %}
|
||||||
|
|
||||||
|
{% block container %}
|
||||||
|
<main class="home">
|
||||||
|
{{ page.content }}
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block footer %}
|
||||||
|
{{ super() }}
|
||||||
|
{% endblock %}
|
||||||
Loading…
x
Reference in New Issue
Block a user