🔧 tweak MkDocs configuration
This commit is contained in:
parent
0b263259e2
commit
5a5073dd2b
@ -1,4 +1,4 @@
|
|||||||
# Overview
|
# Binary Formats
|
||||||
|
|
||||||
Though JSON is a ubiquitous data format, it is not a very compact format suitable for data exchange, for instance over a network. Hence, the library supports
|
Though JSON is a ubiquitous data format, it is not a very compact format suitable for data exchange, for instance over a network. Hence, the library supports
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Overview
|
# Element Access
|
||||||
|
|
||||||
There are many ways elements in a JSON value can be accessed:
|
There are many ways elements in a JSON value can be accessed:
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Overview
|
# Parsing
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Overview
|
# Types
|
||||||
|
|
||||||
This page gives an overview how JSON values are stored and how this can be configured.
|
This page gives an overview how JSON values are stored and how this can be configured.
|
||||||
|
|
||||||
|
|||||||
@ -20,10 +20,13 @@ theme:
|
|||||||
accent: indigo
|
accent: indigo
|
||||||
font:
|
font:
|
||||||
text: Roboto
|
text: Roboto
|
||||||
code: Roboto Mono
|
code: JetBrains Mono
|
||||||
features:
|
features:
|
||||||
- tabs
|
- navigation.instant
|
||||||
- instant
|
- navigation.tracking
|
||||||
|
- navigation.tabs
|
||||||
|
- navigation.indexes
|
||||||
|
- navigation.top
|
||||||
|
|
||||||
nav:
|
nav:
|
||||||
- Home:
|
- Home:
|
||||||
@ -70,7 +73,7 @@ nav:
|
|||||||
- integration/cmake.md
|
- integration/cmake.md
|
||||||
- integration/package_managers.md
|
- integration/package_managers.md
|
||||||
- integration/pkg-config.md
|
- integration/pkg-config.md
|
||||||
- API:
|
- API Documentation:
|
||||||
- basic_json:
|
- basic_json:
|
||||||
- 'Overview': api/basic_json/index.md
|
- 'Overview': api/basic_json/index.md
|
||||||
- '(Constructor)': api/basic_json/basic_json.md
|
- '(Constructor)': api/basic_json/basic_json.md
|
||||||
@ -239,10 +242,13 @@ extra:
|
|||||||
link: https://www.xing.com/profile/Niels_Lohmann
|
link: https://www.xing.com/profile/Niels_Lohmann
|
||||||
- icon: fontawesome/brands/paypal
|
- icon: fontawesome/brands/paypal
|
||||||
link: https://www.paypal.me/nlohmann
|
link: https://www.paypal.me/nlohmann
|
||||||
|
generator: false
|
||||||
|
|
||||||
# Extensions
|
# Extensions
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
|
- abbr
|
||||||
- admonition
|
- admonition
|
||||||
|
- attr_list
|
||||||
- def_list
|
- def_list
|
||||||
- codehilite:
|
- codehilite:
|
||||||
guess_lang: false
|
guess_lang: false
|
||||||
@ -274,7 +280,8 @@ markdown_extensions:
|
|||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- search:
|
- search:
|
||||||
separator: '[\s\-\.]+'
|
separator: '[\s\-\.]'
|
||||||
|
lang: en
|
||||||
- minify:
|
- minify:
|
||||||
minify_html: true
|
minify_html: true
|
||||||
|
|
||||||
|
|||||||
@ -41,6 +41,10 @@ def check_structure():
|
|||||||
for lineno, line in enumerate(file_content.readlines()):
|
for lineno, line in enumerate(file_content.readlines()):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
|
|
||||||
|
# Overview pages should have a better title
|
||||||
|
if line == '# Overview':
|
||||||
|
print(f'{file}:{lineno+1}: Error: overview pages should have a better title!')
|
||||||
|
|
||||||
# lines longer than 160 characters are bad (unless they are tables)
|
# lines longer than 160 characters are bad (unless they are tables)
|
||||||
if len(line) > 160 and '|' not in line:
|
if len(line) > 160 and '|' not in line:
|
||||||
print(f'{file}:{lineno+1}: Error: line is too long ({len(line)} vs. 160 chars)!')
|
print(f'{file}:{lineno+1}: Error: line is too long ({len(line)} vs. 160 chars)!')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user