mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
doc: fix broken internal links
This commit is contained in:
@@ -6,11 +6,11 @@ weight = 70
|
|||||||
|
|
||||||
# TOML Language Version
|
# TOML Language Version
|
||||||
|
|
||||||
You can specify the version of the TOML language and individual feature flags to use with `toml::parse` or `toml::format` through [`toml::spec`](docs/reference/spec#tomlspec).
|
You can specify the version of the TOML language and individual feature flags to use with `toml::parse` or `toml::format` through [`toml::spec`]({{< ref "docs/reference/spec#tomlspec" >}}).
|
||||||
|
|
||||||
## Specifying TOML Version
|
## Specifying TOML Version
|
||||||
|
|
||||||
You can construct a [`toml::spec`](docs/reference/spec#tomlspec) from [`toml::semantic_version`](docs/reference/spec#tomlsemantic_version).
|
You can construct a [`toml::spec`]({{< ref "docs/reference/spec#tomlspec" >}}) from [`toml::semantic_version`]({{< ref "docs/reference/spec#tomlsemantic_version" >}}).
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <toml.hpp>
|
#include <toml.hpp>
|
||||||
@@ -52,7 +52,7 @@ As such, any features related to future versions should be considered unstable.
|
|||||||
|
|
||||||
### Parsing with Version Specification
|
### Parsing with Version Specification
|
||||||
|
|
||||||
The overload of [`toml::parse`](docs/reference/parser) takes a `toml::spec` following the file name.
|
The overload of [`toml::parse`]({{< ref "docs/reference/parser#parse" >}}) takes a `toml::spec` following the file name.
|
||||||
|
|
||||||
This allows you to change the TOML version being used.
|
This allows you to change the TOML version being used.
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ int main()
|
|||||||
|
|
||||||
### Serializing with Version Specification
|
### Serializing with Version Specification
|
||||||
|
|
||||||
The overload of [`toml::format`](docs/reference/serializer) takes a `toml::spec` following the `toml::value`.
|
The overload of [`toml::format`]({{< ref "docs/reference/serializer" >}}) takes a `toml::spec` following the `toml::value`.
|
||||||
|
|
||||||
This allows you to change the TOML version being used.
|
This allows you to change the TOML version being used.
|
||||||
|
|
||||||
@@ -104,4 +104,4 @@ int main()
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For a full list of all flags, refer to [`toml::spec`](docs/reference/spec#tomlspec).
|
For a full list of all flags, refer to [`toml::spec`]({{< ref "docs/reference/spec#tomlspec" >}}).
|
||||||
|
@@ -84,7 +84,7 @@ Creates a new `error_info`.
|
|||||||
|
|
||||||
Must be followed by a `msg` related to `source_location` or `basic_value`.
|
Must be followed by a `msg` related to `source_location` or `basic_value`.
|
||||||
|
|
||||||
Overloads are added in [`value.hpp`](docs/reference/value#tomlmake_error_info) when passing `toml::basic_value` instead of `source_location`.
|
Overloads are added in [`value.hpp`]({{< ref "docs/reference/value#tomlmake_error_info" >}}) when passing `toml::basic_value` instead of `source_location`.
|
||||||
|
|
||||||
Possible to pass `suffix` at the end.
|
Possible to pass `suffix` at the end.
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ std::string format_error(std::string title,
|
|||||||
|
|
||||||
Returns a formatted string using `format_error` for `error_info` created with `make_error_info`.
|
Returns a formatted string using `format_error` for `error_info` created with `make_error_info`.
|
||||||
|
|
||||||
Overloads are added in [`value.hpp`](docs/reference/value#tomlformat_error) when passing `toml::basic_value` instead of `source_location`.
|
Overloads are added in [`value.hpp`]({{< ref "docs/reference/value#tomlformat_error" >}}) when passing `toml::basic_value` instead of `source_location`.
|
||||||
|
|
||||||
### Stream Operator
|
### Stream Operator
|
||||||
|
|
||||||
@@ -140,6 +140,6 @@ Calls `format_error(e)` and outputs it.
|
|||||||
|
|
||||||
# Related
|
# Related
|
||||||
|
|
||||||
- [color.hpp](color.md)
|
- [color.hpp]({{< ref "color.md" >}})
|
||||||
- [parser.hpp](parser.md)
|
- [parser.hpp]({{< ref "parser.md" >}})
|
||||||
- [source_location.hpp](source_location.md)
|
- [source_location.hpp]({{< ref "source_location.md" >}})
|
||||||
|
@@ -101,7 +101,7 @@ Irregular widths are not allowed.
|
|||||||
|
|
||||||
Stores the suffix when `spec::ext_num_suffix` of toml11 extension is `true`.
|
Stores the suffix when `spec::ext_num_suffix` of toml11 extension is `true`.
|
||||||
|
|
||||||
cf. [spec.hpp](spec.md)
|
cf. [spec.hpp]({{< ref "spec.md" >}})
|
||||||
|
|
||||||
# `floating_format`
|
# `floating_format`
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ Corresponds to `std::defaultfloat`, `std::fixed`, `std::scientific`, `std::hexfl
|
|||||||
|
|
||||||
`hexfloat` is available only if `toml::spec::ext_hex_float` is `true`.
|
`hexfloat` is available only if `toml::spec::ext_hex_float` is `true`.
|
||||||
|
|
||||||
cf. [spec.hpp](spec.md)
|
cf. [spec.hpp]({{< ref "spec.md" >}})
|
||||||
|
|
||||||
# `floating_format_info`
|
# `floating_format_info`
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ Specifies the precision after the decimal point.
|
|||||||
|
|
||||||
Stores the suffix when `spec::ext_num_suffix` of toml11 extension is `true`.
|
Stores the suffix when `spec::ext_num_suffix` of toml11 extension is `true`.
|
||||||
|
|
||||||
cf. [spec.hpp](spec.md)
|
cf. [spec.hpp]({{< ref "spec.md" >}})
|
||||||
|
|
||||||
# `string_format`
|
# `string_format`
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ std::string to_string(const table_format);
|
|||||||
- Formats in the form of `a.b.c = "d"`.
|
- Formats in the form of `a.b.c = "d"`.
|
||||||
- `multiline_oneline`
|
- `multiline_oneline`
|
||||||
- Formats as a multiline inline table with line breaks. Available from TOML v1.1.0 onwards.
|
- Formats as a multiline inline table with line breaks. Available from TOML v1.1.0 onwards.
|
||||||
- cf. [spec.hpp](spec.md)
|
- cf. [spec.hpp]({{< ref "spec.md" >}})
|
||||||
- `implicit`
|
- `implicit`
|
||||||
- Skips implicit definitions like `[x.y.z.w]`, leaving `[x]`, `[x.y]`, `[x.y.z]` as implicit.
|
- Skips implicit definitions like `[x.y.z.w]`, leaving `[x]`, `[x.y]`, `[x.y.z]` as implicit.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user