diff --git a/doc/api.md b/doc/api.md index 95bd258a..07299988 100644 --- a/doc/api.md +++ b/doc/api.md @@ -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 for `char`/UTF-8 with C++20 compile-time checks and minimal dependencies -- [`fmt/format.h`](#format-api): the full format API providing additional - formatting functions and locale support +- [`fmt/format.h`](#format-api): `fmt::format` and other formatting functions + as well as locale support - [`fmt/ranges.h`](#ranges-api): formatting of ranges and tuples - [`fmt/chrono.h`](#chrono-api): date and time formatting - [`fmt/std.h`](#std-api): formatters for standard library types diff --git a/doc/fmt.css b/doc/fmt.css index 43588998..3c1a7b31 100644 --- a/doc/fmt.css +++ b/doc/fmt.css @@ -18,6 +18,12 @@ pre > code.decl { 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 { display: flex; flex-wrap: wrap; diff --git a/doc/index.md b/doc/index.md index eef135b8..f0eff370 100644 --- a/doc/index.md +++ b/doc/index.md @@ -143,8 +143,8 @@ hide:
The library is distributed under a permissive MIT license and is - relied upon by many open-source projects, including PyTorch, Apple's - FoundationDB, Windows Terminal, MongoDB, and others. + relied upon by many open-source projects, including Blender, PyTorch, + Apple's FoundationDB, Windows Terminal, MongoDB, and others.
diff --git a/support/mkdocstrings_handlers/cxx/__init__.py b/support/mkdocstrings_handlers/cxx/__init__.py index 7adaed34..63672686 100644 --- a/support/mkdocstrings_handlers/cxx/__init__.py +++ b/support/mkdocstrings_handlers/cxx/__init__.py @@ -107,12 +107,15 @@ def render_decl(d: Definition) -> None: text += f'\n' text += ''
+ text += ''
if d.template_params is not None:
text += 'template <'
text += ', '.join(
[f'{p.type} {p.name}'.rstrip() for p in d.template_params])
text += '>\n'
+ text += ''
+ text += ''
end = ';'
if d.kind == 'function' or d.kind == 'variable':
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 += end
+ text += ''
text += '
\n'
if d.id is not None:
text += f'\n'