From a6fafe2f0191cd456d6df66a3071c35c087188a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com> Date: Sat, 5 Dec 2020 22:41:38 +0800 Subject: [PATCH] docs: use https for some links (#2051) --- README.rst | 2 +- doc/api.rst | 4 ++-- doc/index.rst | 4 ++-- doc/syntax.rst | 2 +- doc/usage.rst | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index 553f0759..277ea760 100644 --- a/README.rst +++ b/README.rst @@ -318,7 +318,7 @@ Projects using this library * `ClickHouse `_: analytical database management system -* `CUAUV `_: Cornell University's autonomous underwater +* `CUAUV `_: Cornell University's autonomous underwater vehicle * `Drake `_: a planning, control, and analysis toolbox diff --git a/doc/api.rst b/doc/api.rst index d383ee90..260fd3f7 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -33,7 +33,7 @@ include ``fmt/format.h`` instead of ``fmt/core.h``. The following functions use :ref:`format string syntax ` similar to that of Python's `str.format -`_. +`_. They take *format_str* and *args* as arguments. *format_str* is a format string that contains literal text and replacement @@ -498,7 +498,7 @@ user-defined types that have overloaded ``operator<<``:: The header ``fmt/printf.h`` provides ``printf``-like formatting functionality. The following functions use `printf format string syntax -`_ with +`_ with the POSIX extension for positional arguments. Unlike their standard counterparts, the ``fmt`` functions are type-safe and throw an exception if an argument type doesn't match its format specification. diff --git a/doc/index.rst b/doc/index.rst index cc4e24e8..a2f4bd95 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -26,7 +26,7 @@ is safer, simpler and several times `faster `_ than common standard library implementations. The `format string syntax `_ is similar to the one used by -`str.format `_ in +`str.format `_ in Python: .. code:: c++ @@ -197,6 +197,6 @@ using the library both in open-source and commercial projects. GitHub Repository diff --git a/doc/syntax.rst b/doc/syntax.rst index 98a65f8d..a262be48 100644 --- a/doc/syntax.rst +++ b/doc/syntax.rst @@ -353,7 +353,7 @@ Specifiers that have a calendaric component such as `'d'` (the day of month) are valid only for ``std::tm`` and not durations or time points. ``std::tm`` uses the system's `strftime -`_ so refer to its +`_ so refer to its documentation for details on supported conversion specifiers. .. _formatexamples: diff --git a/doc/usage.rst b/doc/usage.rst index 435afd53..37c3782c 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -15,7 +15,7 @@ Building the Library The included `CMake build script`__ can be used to build the fmt library on a wide range of platforms. CMake is freely available for -download from http://www.cmake.org/download/. +download from https://www.cmake.org/download/. __ https://github.com/fmtlib/fmt/blob/master/CMakeLists.txt @@ -50,7 +50,7 @@ To build a `shared library`__ set the ``BUILD_SHARED_LIBS`` CMake variable to cmake -DBUILD_SHARED_LIBS=TRUE ... -__ http://en.wikipedia.org/wiki/Library_%28computing%29#Shared_libraries +__ https://en.wikipedia.org/wiki/Library_%28computing%29#Shared_libraries To build a `static library` with position independent code (required if the main @@ -207,6 +207,6 @@ __ https://github.com/fmtlib/fmt/blob/master/Android.mk Homebrew ======== -fmt can be installed on OS X using `Homebrew `_:: +fmt can be installed on OS X using `Homebrew `_:: brew install fmt