Skip to content

Commit

Permalink
Merge pull request nlohmann#12 from nlohmann/develop
Browse files Browse the repository at this point in the history
Sync Fork from Upstream Repo
  • Loading branch information
sthagen authored Jun 15, 2020
2 parents c6a4119 + e7452d8 commit 2eaf0ee
Show file tree
Hide file tree
Showing 113 changed files with 6,290 additions and 1,191 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ cmake-build-debug

test/test-*
/.vs

doc/mkdocs/venv/
doc/mkdocs/docs/images
doc/mkdocs/docs/examples
doc/mkdocs/site
doc/mkdocs/docs/__pycache__/
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.1)
## PROJECT
## name and version
##
project(nlohmann_json VERSION 3.7.3 LANGUAGES CXX)
project(nlohmann_json VERSION 3.8.0 LANGUAGES CXX)

##
## INCLUDE
Expand Down
510 changes: 433 additions & 77 deletions ChangeLog.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ pedantic_gcc:
-Wunused-const-variable=2 \
-Wunused-function \
-Wunused-label \
-Wunused-local-typedefs \
-Wno-unused-local-typedefs \
-Wunused-macros \
-Wunused-parameter \
-Wunused-result \
Expand Down
97 changes: 74 additions & 23 deletions README.md

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "JSON for Modern C++"
PROJECT_NUMBER = 3.7.3
PROJECT_NUMBER = 3.8.0
PROJECT_BRIEF =
PROJECT_LOGO =
OUTPUT_DIRECTORY = .
Expand Down Expand Up @@ -110,9 +110,7 @@ WARN_LOGFILE =
# Configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = ../single_include/nlohmann/json.hpp \
index.md \
faq.md \
binary_formats.md
index.md
INPUT_ENCODING = UTF-8
FILE_PATTERNS =
RECURSIVE = NO
Expand Down
Binary file modified doc/avatars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
171 changes: 0 additions & 171 deletions doc/binary_formats.md

This file was deleted.

2 changes: 1 addition & 1 deletion doc/examples/README.link
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a target="_blank" href="https://wandbox.org/permlink/uDkr2VTjsrssiXq3"><b>online</b></a>
<a target="_blank" href="https://wandbox.org/permlink/EezQxM0Nzi8tTUEe"><b>online</b></a>
26 changes: 26 additions & 0 deletions doc/examples/accept__string.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>

using json = nlohmann::json;

int main()
{
// a valid JSON text
auto valid_text = R"(
{
"numbers": [1, 2, 3]
}
)";

// an invalid JSON text
auto invalid_text = R"(
{
"strings": ["extra", "comma", ]
}
)";

std::cout << std::boolalpha
<< json::accept(valid_text) << ' '
<< json::accept(invalid_text) << '\n';
}
1 change: 1 addition & 0 deletions doc/examples/accept__string.link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a target="_blank" href="https://wandbox.org/permlink/r5Tai1spihWHTdFA"><b>online</b></a>
1 change: 1 addition & 0 deletions doc/examples/accept__string.output
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
true false
6 changes: 3 additions & 3 deletions doc/examples/meta.output
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"url": "https://github.com/nlohmann/json",
"version": {
"major": 3,
"minor": 7,
"patch": 3,
"string": "3.7.3"
"minor": 8,
"patch": 0,
"string": "3.8.0"
}
}
1 change: 1 addition & 0 deletions doc/examples/swap__binary_t.link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a target="_blank" href="https://wandbox.org/permlink/OD1Yaew9vlzMYxmX"><b>online</b></a>
87 changes: 0 additions & 87 deletions doc/faq.md

This file was deleted.

Binary file removed doc/images/binary.png
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,4 +332,4 @@ Note that this table only lists those exceptions thrown due to the type. For ins
@author [Niels Lohmann](http://nlohmann.me)
@see https://github.com/nlohmann/json to download the source code

@version 3.7.3
@version 3.8.0
Binary file modified doc/json.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions doc/mkdocs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# serve the site locally
serve: prepare_files
venv/bin/mkdocs serve

# create files that are not versioned inside the mkdocs folder
prepare_files: clean
# build Doxygen
$(MAKE) -C ..
# create subfolders
mkdir docs/images docs/examples
# copy images
cp -vr ../json.gif ../images/range-begin-end.svg ../images/range-rbegin-rend.svg docs/images
# copy examples
cp -vr ../examples/*.cpp ../examples/*.output docs/examples

# clean subfolders
clean:
rm -fr docs/images docs/examples

# publish site to GitHub pages
publish: prepare_files
venv/bin/mkdocs gh-deploy --clean --force

# install a Python virtual environment
install_venv: requirements.txt
python3 -mvenv venv
venv/bin/pip install -r requirements.txt

# uninstall the virtual environment
uninstall_venv: clean
rm -fr venv
Loading

0 comments on commit 2eaf0ee

Please sign in to comment.