Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
d360fec2
Unverified
Commit
d360fec2
authored
Aug 13, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
add offline pages for docset
parent
178125ff
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
Info.plist
doc/docset/Info.plist
+6
-0
Makefile
doc/docset/Makefile
+13
-0
docSet.sql
doc/docset/docSet.sql
+0
-0
Makefile
doc/mkdocs/Makefile
+3
-0
No files found.
doc/docset/Info.plist
View file @
d360fec2
...
...
@@ -10,5 +10,11 @@
<
string
>
json
<
/string
>
<
k
e
y
>
isDashDocset
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
dashIndexFilePath
<
/k
e
y
>
<
string
>
index.html
<
/string
>
<
k
e
y
>
DashDocSetFallbackURL
<
/k
e
y
>
<
string
>
https://nlohmann.github.io/json/
<
/string
>
<
k
e
y
>
isJavaScriptEnabled
<
/k
e
y
>
<
tru
e
/
>
<
/
d
i
c
t
>
<
/plist
>
doc/docset/Makefile
View file @
d360fec2
...
...
@@ -2,6 +2,19 @@ nlohmann_json.docset: Info.plist docSet.sql
$(MAKE)
clean
mkdir
-p
nlohmann_json.docset/Contents/Resources/Documents/
cp
info.plist nlohmann_json.docset/Contents
# build and copy documentation
$(MAKE)
build
-C
../mkdocs
cp
-r
../mkdocs/site/
*
nlohmann_json.docset/Contents/Resources/Documents
# patch CSS to hide navigation items
echo
"
\n\n
header, footer, navi, div.md-sidebar--primary, nav.md-tabs--active, a.md-content__button { display: none; }"
>>
nlohmann_json.docset/Contents/Resources/Documents/assets/stylesheets/main.b5d04df8.min.css
# fix spacing
echo
"
\n\n
div.md-sidebar div.md-sidebar--secondary, div.md-main__inner { top: 0; margin-top: 0 }"
>>
nlohmann_json.docset/Contents/Resources/Documents/assets/stylesheets/main.b5d04df8.min.css
# remove "JSON for Modern C++" from page titles
find nlohmann_json.docset/Contents/Resources/Documents
-type
f
-exec
gsed
-i
's| - JSON for Modern C++</title>|</title>|'
{}
+
# clean up
rm
nlohmann_json.docset/Contents/Resources/Documents/hooks.py
rm
nlohmann_json.docset/Contents/Resources/Documents/sitemap.
*
# generate index
sqlite3 nlohmann_json.docset/Contents/Resources/docSet.dsidx < docSet.sql
clean
:
...
...
doc/docset/docSet.sql
View file @
d360fec2
This diff is collapsed.
Click to expand it.
doc/mkdocs/Makefile
View file @
d360fec2
...
...
@@ -2,6 +2,9 @@
serve
:
prepare_files
venv/bin/mkdocs serve
build
:
prepare_files
venv/bin/mkdocs build
# create files that are not versioned inside the mkdocs folder
prepare_files
:
clean
# build Doxygen
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment