mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-12 03:38:30 +00:00
* Add initial documentations * Update documentation for Basic Client and add WebSocket section * feat: add a static site generator with multi-language support - Introduced a new Rust-based static site generator in the `docs-gen` directory. - Implemented core functionality for building sites from markdown files, including: - Configuration loading from `config.toml`. - Markdown rendering with frontmatter support. - Navigation generation based on page structure. - Static file copying and output directory management. - Added templates for base layout, pages, and portal. - Created a CSS file for styling and a JavaScript file for interactive features like language selection and theme toggling. - Updated documentation source with new configuration and example pages in English and Japanese. - Added a `justfile` target for building the documentation site. * Add language/theme toggle functionality - Created a new Japanese tour index page at docs/ja/tour/index.html - Implemented navigation links for various sections of the cpp-httplib tutorial - Added a language selector to switch between English and Japanese - Introduced theme toggle functionality to switch between light and dark modes - Added mobile sidebar toggle for better navigation on smaller screens
106 lines
3.9 KiB
HTML
106 lines
3.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>A Tour of cpp-httplib - cpp-httplib</title>
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
<script>
|
|
(function() {
|
|
var t = localStorage.getItem('preferred-theme');
|
|
if (!t) t = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
|
|
if (t === 'light') document.documentElement.setAttribute('data-theme', 'light');
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<header class="header">
|
|
<div class="header-inner">
|
|
<a href="/en/" class="header-title">cpp-httplib <span style="font-size:0.75em;font-weight:normal;margin-left:4px">v0.35.0</span></a>
|
|
<div class="header-spacer"></div>
|
|
<nav class="header-nav">
|
|
<a href="/en/">Home</a>
|
|
<a href="/en/tour/">Tour</a>
|
|
</nav>
|
|
<div class="header-tools">
|
|
<button class="theme-toggle" aria-label="Toggle theme"></button>
|
|
<div class="lang-selector">
|
|
<button class="lang-btn" aria-label="Language">EN</button>
|
|
<ul class="lang-popup">
|
|
|
|
<li><a href="#" data-lang="en">EN</a></li>
|
|
|
|
<li><a href="#" data-lang="ja">JA</a></li>
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<button class="sidebar-toggle" aria-label="Menu">☰</button>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
|
|
<div class="layout has-sidebar">
|
|
|
|
<aside class="sidebar">
|
|
<nav class="sidebar-nav">
|
|
|
|
<div class="nav-section">
|
|
<a href="/en/tour/" class="nav-section-title active">A Tour of cpp-httplib</a>
|
|
|
|
<ul class="nav-list">
|
|
|
|
<li><a href="/en/tour/01-getting-started/" class="">Getting Started</a></li>
|
|
|
|
<li><a href="/en/tour/02-basic-client/" class="">Basic Client</a></li>
|
|
|
|
<li><a href="/en/tour/03-basic-server/" class="">Basic Server</a></li>
|
|
|
|
<li><a href="/en/tour/04-static-file-server/" class="">Static File Server</a></li>
|
|
|
|
<li><a href="/en/tour/05-tls-setup/" class="">TLS Setup</a></li>
|
|
|
|
<li><a href="/en/tour/06-https-client/" class="">HTTPS Client</a></li>
|
|
|
|
<li><a href="/en/tour/07-https-server/" class="">HTTPS Server</a></li>
|
|
|
|
<li><a href="/en/tour/08-websocket/" class="">WebSocket</a></li>
|
|
|
|
<li><a href="/en/tour/09-whats-next/" class="">What's Next</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
</aside>
|
|
<main class="content">
|
|
<article>
|
|
<h1>A Tour of cpp-httplib</h1>
|
|
<p>This is a step-by-step tutorial that walks you through the basics of cpp-httplib. Each chapter builds on the previous one, so please read them in order starting from Chapter 1.</p>
|
|
<ol>
|
|
<li><a href="01-getting-started">Getting Started</a> — Get httplib.h and build a Hello World server</li>
|
|
<li><a href="02-basic-client">Basic Client</a> — Send GET/POST requests and use path parameters</li>
|
|
<li><a href="03-basic-server">Basic Server</a> — Routing, path parameters, and building responses</li>
|
|
<li><a href="04-static-file-server">Static File Server</a> — Serve static files</li>
|
|
<li><a href="05-tls-setup">TLS Setup</a> — Set up OpenSSL / mbedTLS</li>
|
|
<li><a href="06-https-client">HTTPS Client</a> — Make requests to HTTPS sites</li>
|
|
<li><a href="07-https-server">HTTPS Server</a> — Build an HTTPS server</li>
|
|
<li><a href="08-websocket">WebSocket</a> — Learn the basics of WebSocket communication</li>
|
|
<li><a href="09-whats-next">What's Next</a> — Explore more features</li>
|
|
</ol>
|
|
|
|
</article>
|
|
</main>
|
|
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
© 2025 yhirose. All rights reserved.
|
|
</footer>
|
|
|
|
<script src="/js/main.js"></script>
|
|
</body>
|
|
</html>
|