Skip to content

Commit 6025842

Browse files
committed
test: add latest python docs
1 parent d764eb0 commit 6025842

File tree

1,134 files changed

+976926
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,134 files changed

+976926
-0
lines changed

src/config/server_config.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,30 @@ ServerConfig make_example_config()
8080

8181
return server_cfg;
8282
}
83+
84+
ServerConfig make_python_docs_config()
85+
{
86+
SharedConfig shared_cfg;
87+
shared_cfg.document_root = "www/python_docs";
88+
shared_cfg.allowed_methods.push_back("GET");
89+
shared_cfg.allowed_methods.push_back("POST");
90+
shared_cfg.allowed_methods.push_back("DELETE");
91+
shared_cfg.index_files.push_back("index.html");
92+
shared_cfg.max_body_size = WEBSERV_DEFAULT_MAX_BODY_SIZE;
93+
shared_cfg.uploads_allowed = false;
94+
shared_cfg.autoindex_enabled = false;
95+
96+
RouteConfig default_loc;
97+
default_loc.config = shared_cfg;
98+
default_loc.route_path = "/";
99+
100+
ServerConfig server_cfg;
101+
server_cfg.config = shared_cfg;
102+
server_cfg.server_ip = INADDR_ANY;
103+
server_cfg.listen_port = WEBSERV_DEFAULT_PORT;
104+
server_cfg.backlog = WEBSERV_DEFAULT_MAX_PENDING_CONNECTIONS;
105+
server_cfg.is_default_server = true;
106+
server_cfg.locations.push_back(default_loc);
107+
108+
return server_cfg;
109+
}

src/config/server_config.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@ struct HttpConfig {
8383

8484
ServerConfig make_site1_config();
8585
ServerConfig make_example_config();
86+
ServerConfig make_python_docs_config();
8687

8788
#endif // CONFIG_SERVER_CONFIG_HPP_

www/python_docs/.buildinfo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: f6bbb132d334f077d7046aa88ddfc3e7
4+
tags: 13fd2134108b1bee6e44abe448cbcd6e

www/python_docs/404.html

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en" data-content_root="./">
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Page not found &#8212; Python 3.14.2 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
9+
<link rel="stylesheet" type="text/css" href="/en/latest/_static/pygments.css?v=b86133f3" />
10+
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="/en/latest/_static/pygments_dark.css?v=5349f25f" />
11+
<link rel="stylesheet" type="text/css" href="/en/latest/_static/classic.css?v=234b1a7c" />
12+
<link rel="stylesheet" type="text/css" href="/en/latest/_static/pydoctheme.css?v=8cd84f99" />
13+
14+
<script src="/en/latest/_static/documentation_options.js?v=7774bffa"></script>
15+
<script src="/en/latest/_static/doctools.js?v=fd6eb6e6"></script>
16+
<script src="/en/latest/_static/sphinx_highlight.js?v=6ffebe34"></script>
17+
18+
<script src="/en/latest/_static/sidebar.js"></script>
19+
20+
<link rel="search" type="application/opensearchdescription+xml"
21+
title="Search within Python 3.14.2 documentation"
22+
href="/en/latest/_static/opensearch.xml"/>
23+
<link rel="author" title="About these documents" href="/en/latest/about.html" />
24+
<link rel="index" title="Index" href="/en/latest/genindex.html" />
25+
<link rel="search" title="Search" href="/en/latest/search.html" />
26+
<link rel="copyright" title="Copyright" href="/en/latest/copyright.html" />
27+
28+
29+
<script defer file-types="bz2,epub,zip" data-domain="docs.python.org" src="https://analytics.python.org/js/script.file-downloads.outbound-links.js"></script>
30+
31+
<link rel="canonical" href="https://docs.python.org/3/404.html">
32+
33+
34+
35+
36+
<style>
37+
@media only screen {
38+
table.full-width-table {
39+
width: 100%;
40+
}
41+
}
42+
</style>
43+
<link rel="stylesheet" href="/en/latest/_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
44+
<link rel="shortcut icon" type="image/png" href="/en/latest/_static/py.svg">
45+
<script type="text/javascript" src="/en/latest/_static/copybutton.js"></script>
46+
<script type="text/javascript" src="/en/latest/_static/menu.js"></script>
47+
<script type="text/javascript" src="/en/latest/_static/search-focus.js"></script>
48+
<script type="text/javascript" src="/en/latest/_static/themetoggle.js"></script>
49+
<script type="text/javascript" src="/en/latest/_static/rtd_switcher.js"></script>
50+
<meta name="readthedocs-addons-api-version" content="1">
51+
52+
</head>
53+
<body>
54+
<div class="mobile-nav">
55+
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
56+
aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu">
57+
<nav class="nav-content" role="navigation">
58+
<label for="menuToggler" class="toggler__label">
59+
<span></span>
60+
</label>
61+
<span class="nav-items-wrapper">
62+
<a href="https://www.python.org/" class="nav-logo">
63+
<img src="/en/latest/_static/py.svg" alt="Python logo">
64+
</a>
65+
<span class="version_switcher_placeholder"></span>
66+
<form role="search" class="search" action="/en/latest/search.html" method="get">
67+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
68+
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
69+
</svg>
70+
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q">
71+
<input type="submit" value="Go">
72+
</form>
73+
</span>
74+
</nav>
75+
<div class="menu-wrapper">
76+
<nav class="menu" role="navigation" aria-label="main navigation">
77+
<div class="language_switcher_placeholder"></div>
78+
79+
<label class="theme-selector-label">
80+
Theme
81+
<select class="theme-selector" oninput="activateTheme(this.value)">
82+
<option value="auto" selected>Auto</option>
83+
<option value="light">Light</option>
84+
<option value="dark">Dark</option>
85+
</select>
86+
</label>
87+
</nav>
88+
</div>
89+
</div>
90+
91+
92+
<div class="related" role="navigation" aria-label="Related">
93+
<h3>Navigation</h3>
94+
<ul>
95+
<li class="right" style="margin-right: 10px">
96+
<a href="/en/latest/genindex.html" title="General Index"
97+
accesskey="I">index</a></li>
98+
<li class="right" >
99+
<a href="/en/latest/py-modindex.html" title="Python Module Index"
100+
>modules</a> |</li>
101+
102+
<li><img src="/en/latest/_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>
103+
<li><a href="https://www.python.org/">Python</a> &#187;</li>
104+
<li class="switchers">
105+
<div class="language_switcher_placeholder"></div>
106+
<div class="version_switcher_placeholder"></div>
107+
</li>
108+
<li>
109+
110+
</li>
111+
<li id="cpython-language-and-version">
112+
<a href="/en/latest/index.html">3.14.2 Documentation</a> &#187;
113+
</li>
114+
115+
<li class="nav-item nav-item-this"><a href="">Page not found</a></li>
116+
<li class="right">
117+
118+
119+
<div class="inline-search" role="search">
120+
<form class="inline-search" action="/en/latest/search.html" method="get">
121+
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">
122+
<input type="submit" value="Go">
123+
</form>
124+
</div>
125+
|
126+
</li>
127+
<li class="right">
128+
<label class="theme-selector-label">
129+
Theme
130+
<select class="theme-selector" oninput="activateTheme(this.value)">
131+
<option value="auto" selected>Auto</option>
132+
<option value="light">Light</option>
133+
<option value="dark">Dark</option>
134+
</select>
135+
</label> |</li>
136+
137+
</ul>
138+
</div>
139+
140+
<div class="document">
141+
<div class="documentwrapper">
142+
<div class="bodywrapper">
143+
<div class="body" role="main">
144+
145+
<h1>Page not found</h1>
146+
147+
Unfortunately we couldn't find the content you were looking for.
148+
149+
<div class="clearer"></div>
150+
</div>
151+
</div>
152+
</div>
153+
<div class="sphinxsidebar" role="navigation" aria-label="Main">
154+
<div class="sphinxsidebarwrapper">
155+
</div>
156+
<div id="sidebarbutton" title="Collapse sidebar">
157+
<span>«</span>
158+
</div>
159+
160+
</div>
161+
<div class="clearer"></div>
162+
</div>
163+
<div class="related" role="navigation" aria-label="Related">
164+
<h3>Navigation</h3>
165+
<ul>
166+
<li class="right" style="margin-right: 10px">
167+
<a href="/en/latest/genindex.html" title="General Index"
168+
>index</a></li>
169+
<li class="right" >
170+
<a href="/en/latest/py-modindex.html" title="Python Module Index"
171+
>modules</a> |</li>
172+
173+
<li><img src="/en/latest/_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>
174+
<li><a href="https://www.python.org/">Python</a> &#187;</li>
175+
<li class="switchers">
176+
<div class="language_switcher_placeholder"></div>
177+
<div class="version_switcher_placeholder"></div>
178+
</li>
179+
<li>
180+
181+
</li>
182+
<li id="cpython-language-and-version">
183+
<a href="/en/latest/index.html">3.14.2 Documentation</a> &#187;
184+
</li>
185+
186+
<li class="nav-item nav-item-this"><a href="">Page not found</a></li>
187+
<li class="right">
188+
189+
190+
<div class="inline-search" role="search">
191+
<form class="inline-search" action="/en/latest/search.html" method="get">
192+
<input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">
193+
<input type="submit" value="Go">
194+
</form>
195+
</div>
196+
|
197+
</li>
198+
<li class="right">
199+
<label class="theme-selector-label">
200+
Theme
201+
<select class="theme-selector" oninput="activateTheme(this.value)">
202+
<option value="auto" selected>Auto</option>
203+
<option value="light">Light</option>
204+
<option value="dark">Dark</option>
205+
</select>
206+
</label> |</li>
207+
208+
</ul>
209+
</div>
210+
<div class="footer">
211+
&copy; <a href="/en/latest/copyright.html">Copyright</a> 2001 Python Software Foundation.
212+
<br>
213+
This page is licensed under the Python Software Foundation License Version 2.
214+
<br>
215+
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
216+
<br>
217+
218+
See <a href="/license.html">History and License</a> for more information.<br>
219+
220+
221+
<br>
222+
223+
The Python Software Foundation is a non-profit corporation.
224+
<a href="https://www.python.org/psf/donations/">Please donate.</a>
225+
<br>
226+
<br>
227+
Last updated on Dec 06, 2025 (21:41 UTC).
228+
229+
<a href="/bugs.html">Found a bug</a>?
230+
231+
<br>
232+
233+
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 9.0.4.
234+
</div>
235+
236+
</body>
237+
</html>

0 commit comments

Comments
 (0)