Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
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
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
97 deletions
+119
-97
doc/docset/Info.plist
doc/docset/Info.plist
+6
-0
doc/docset/Makefile
doc/docset/Makefile
+13
-0
doc/docset/docSet.sql
doc/docset/docSet.sql
+97
-97
doc/mkdocs/Makefile
doc/mkdocs/Makefile
+3
-0
No files found.
doc/docset/Info.plist
View file @
d360fec2
...
...
@@ -10,5 +10,11 @@
<string>
json
</string>
<key>
isDashDocset
</key>
<true/>
<key>
dashIndexFilePath
</key>
<string>
index.html
</string>
<key>
DashDocSetFallbackURL
</key>
<string>
https://nlohmann.github.io/json/
</string>
<key>
isJavaScriptEnabled
</key>
<true/>
</dict>
</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