mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Update docs
This commit is contained in:
@ -4,8 +4,8 @@ The {fmt} library API consists of the following components:
|
|||||||
|
|
||||||
- [`fmt/base.h`](#base-api): the base API providing main formatting functions
|
- [`fmt/base.h`](#base-api): the base API providing main formatting functions
|
||||||
for `char`/UTF-8 with C++20 compile-time checks and minimal dependencies
|
for `char`/UTF-8 with C++20 compile-time checks and minimal dependencies
|
||||||
- [`fmt/format.h`](#format-api): the full format API providing additional
|
- [`fmt/format.h`](#format-api): `fmt::format` and other formatting functions
|
||||||
formatting functions and locale support
|
as well as locale support
|
||||||
- [`fmt/ranges.h`](#ranges-api): formatting of ranges and tuples
|
- [`fmt/ranges.h`](#ranges-api): formatting of ranges and tuples
|
||||||
- [`fmt/chrono.h`](#chrono-api): date and time formatting
|
- [`fmt/chrono.h`](#chrono-api): date and time formatting
|
||||||
- [`fmt/std.h`](#std-api): formatters for standard library types
|
- [`fmt/std.h`](#std-api): formatters for standard library types
|
||||||
|
@ -18,6 +18,12 @@ pre > code.decl {
|
|||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
code.decl > div {
|
||||||
|
text-indent: -2ch; /* Negative indent to counteract the indent on the first line */
|
||||||
|
padding-left: 2ch; /* Add padding to the left to create an indent */
|
||||||
|
}
|
||||||
|
|
||||||
.features-container {
|
.features-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@ -143,8 +143,8 @@ hide:
|
|||||||
<p>
|
<p>
|
||||||
The library is distributed under a permissive MIT
|
The library is distributed under a permissive MIT
|
||||||
<a href="https://github.com/fmtlib/fmt#license">license</a> and is
|
<a href="https://github.com/fmtlib/fmt#license">license</a> and is
|
||||||
<b>relied upon by many open-source projects</b>, including PyTorch, Apple's
|
<b>relied upon by many open-source projects</b>, including Blender, PyTorch,
|
||||||
FoundationDB, Windows Terminal, MongoDB, and others.
|
Apple's FoundationDB, Windows Terminal, MongoDB, and others.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -107,12 +107,15 @@ def render_decl(d: Definition) -> None:
|
|||||||
text += f'<a id="{d.id}">\n'
|
text += f'<a id="{d.id}">\n'
|
||||||
text += '<pre><code class="language-cpp decl">'
|
text += '<pre><code class="language-cpp decl">'
|
||||||
|
|
||||||
|
text += '<div>'
|
||||||
if d.template_params is not None:
|
if d.template_params is not None:
|
||||||
text += 'template <'
|
text += 'template <'
|
||||||
text += ', '.join(
|
text += ', '.join(
|
||||||
[f'{p.type} {p.name}'.rstrip() for p in d.template_params])
|
[f'{p.type} {p.name}'.rstrip() for p in d.template_params])
|
||||||
text += '>\n'
|
text += '>\n'
|
||||||
|
text += '</div>'
|
||||||
|
|
||||||
|
text += '<div>'
|
||||||
end = ';'
|
end = ';'
|
||||||
if d.kind == 'function' or d.kind == 'variable':
|
if d.kind == 'function' or d.kind == 'variable':
|
||||||
text += d.type + ' ' if len(d.type) > 0 else ''
|
text += d.type + ' ' if len(d.type) > 0 else ''
|
||||||
@ -134,6 +137,7 @@ def render_decl(d: Definition) -> None:
|
|||||||
text += ' = ' + escape_html(d.type)
|
text += ' = ' + escape_html(d.type)
|
||||||
|
|
||||||
text += end
|
text += end
|
||||||
|
text += '</div>'
|
||||||
text += '</code></pre>\n'
|
text += '</code></pre>\n'
|
||||||
if d.id is not None:
|
if d.id is not None:
|
||||||
text += f'</a>\n'
|
text += f'</a>\n'
|
||||||
|
Reference in New Issue
Block a user