📝 document documentation generation
This commit is contained in:
parent
eae2613c68
commit
e324936b56
20
doc/README.md
Normal file
20
doc/README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Documentation
|
||||
|
||||
## Generate documentation
|
||||
|
||||
Note on documentation: The source files contain links to the online documentation at https://json.nlohmann.me. This URL
|
||||
contains the most recent documentation and should also be applicable to previous versions; documentation for deprecated
|
||||
functions is not removed, but marked deprecated.
|
||||
|
||||
If you want to see the documentation for a specific tag or commit hash, you can generate it as follows (here for tag
|
||||
`v3.10.2`):
|
||||
|
||||
```shell
|
||||
git clone https://github.com/nlohmann/json.git
|
||||
cd json
|
||||
git checkout v3.10.2
|
||||
make install_venv serve -C doc/mkdocs
|
||||
```
|
||||
|
||||
Open URL <http://127.0.0.1:8000/> in your browser. Replace from any URL from the source code `https://json.nlohmann.me`
|
||||
with `http://127.0.0.1:8000` to see the documentation for your tag or commit hash.
|
||||
@ -27,6 +27,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
/****************************************************************************\
|
||||
* Note on documentation: The source files contain links to the online *
|
||||
* documentation of the public API at https://json.nlohmann.me. This URL *
|
||||
* contains the most recent documentation and should also be applicable to *
|
||||
* previous versions; documentation for deprecated functions is not *
|
||||
* removed, but marked deprecated. See "Generate documentation" section in *
|
||||
* file doc/README.md. *
|
||||
\****************************************************************************/
|
||||
|
||||
#ifndef INCLUDE_NLOHMANN_JSON_HPP_
|
||||
#define INCLUDE_NLOHMANN_JSON_HPP_
|
||||
|
||||
@ -4689,11 +4698,9 @@ struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
|
||||
}
|
||||
};
|
||||
|
||||
/// specialization for std::less<value_t>
|
||||
/// @note: do not remove the space after '<',
|
||||
/// see https://github.com/nlohmann/json/pull/679
|
||||
// specialization for std::less<value_t>
|
||||
template<>
|
||||
struct less< ::nlohmann::detail::value_t>
|
||||
struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
|
||||
{
|
||||
/*!
|
||||
@brief compare two value_t enum values
|
||||
|
||||
@ -27,6 +27,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
/****************************************************************************\
|
||||
* Note on documentation: The source files contain links to the online *
|
||||
* documentation of the public API at https://json.nlohmann.me. This URL *
|
||||
* contains the most recent documentation and should also be applicable to *
|
||||
* previous versions; documentation for deprecated functions is not *
|
||||
* removed, but marked deprecated. See "Generate documentation" section in *
|
||||
* file doc/README.md. *
|
||||
\****************************************************************************/
|
||||
|
||||
#ifndef INCLUDE_NLOHMANN_JSON_HPP_
|
||||
#define INCLUDE_NLOHMANN_JSON_HPP_
|
||||
|
||||
@ -21720,11 +21729,9 @@ struct hash<nlohmann::NLOHMANN_BASIC_JSON_TPL>
|
||||
}
|
||||
};
|
||||
|
||||
/// specialization for std::less<value_t>
|
||||
/// @note: do not remove the space after '<',
|
||||
/// see https://github.com/nlohmann/json/pull/679
|
||||
// specialization for std::less<value_t>
|
||||
template<>
|
||||
struct less< ::nlohmann::detail::value_t>
|
||||
struct less< ::nlohmann::detail::value_t> // do not remove the space after '<', see https://github.com/nlohmann/json/pull/679
|
||||
{
|
||||
/*!
|
||||
@brief compare two value_t enum values
|
||||
|
||||
Loading…
Reference in New Issue
Block a user