Skip to content

Commit 5bbe92b

Browse files
carlspringsteve-todorov
authored andcommitted
docs: Update mkocs and add dark mode.
1 parent 6d1d921 commit 5bbe92b

File tree

7 files changed

+58
-25
lines changed

7 files changed

+58
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ We aim to support only the latest LTS versions. At the moment this includes:
4040
* JDK 17
4141
* JDK 21
4242

43-
Please note that although we support JDK 8 we have plans to drop it in one of our next **major** release (most likely `v2.0.0`).
43+
Please note that although we support JDK 8 we have plans to drop it in one of our next **major** release.
4444

4545
## Documentation
4646

docs/content/contributing/legal/license-MIT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This is our copy of the MIT license.
44

55
## License Text
6+
67
```
78
--8<-- "../LICENSE.MIT.md"
89
```

docs/content/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{! ../../README.md [ln:19-37] !}
1+
{! ../../README.md [ln:19-47] !}
22

33
## Installation
44

@@ -49,6 +49,7 @@
4949
Create/load a properties file in your project which defines the following properties:
5050

5151
```
52+
5253
--8<-- "../src/test/resources/amazon-test-sample.properties"
5354
```
5455

docs/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
build:
55
context: .
66
dockerfile: ./docs.Dockerfile
7-
image: squidfunk/mkdocs-material:5.5.9-custom
7+
image: squidfunk/mkdocs-material:9.5.44-custom
88
container_name: s3fs-nio-docs
99
working_dir: /workspace/docs
1010
volumes:
@@ -15,7 +15,7 @@ services:
1515
build:
1616
context: .
1717
dockerfile: ./docs.Dockerfile
18-
image: squidfunk/mkdocs-material:5.5.9-custom
18+
image: squidfunk/mkdocs-material:9.5.44-custom
1919
working_dir: /workspace/docs
2020
command: [ "build" ]
2121
volumes:

docs/docs.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM squidfunk/mkdocs-material:5.5.9
1+
FROM squidfunk/mkdocs-material:9.5.44
22

33
WORKDIR /workspace/docs
44
COPY requirements.txt /workspace/docs

docs/mkdocs.yml

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,50 @@ docs_dir: content
88
theme:
99
name: material
1010
custom_dir: 'theme'
11-
icon:
12-
repo: fontawesome/brands/github-alt
11+
icons:
12+
repo: fontawesome/brands/github
13+
fontawesome: true
1314

1415
font:
1516
text: Roboto
1617
code: Roboto Mono
1718

19+
palette:
20+
# Palette toggle for light mode
21+
- scheme: default
22+
media: "(prefers-color-scheme: light)"
23+
primary: indigo
24+
toggle:
25+
icon: material/toggle-switch
26+
name: Switch to dark mode
27+
28+
# Palette toggle for dark mode
29+
- scheme: slate
30+
media: "(prefers-color-scheme: dark)"
31+
toggle:
32+
icon: material/toggle-switch-off-outline
33+
name: Switch to light mode
34+
1835
features:
19-
- search.highlight
36+
- announce.dismiss
37+
- content.tooltips
2038
- meta
21-
# Instant should be disabled because of a bug - not redirecting pages.
22-
#- instant
39+
- navigation.footer
40+
#- navigation.indexes
41+
- navigation.instant
42+
#- navigation.sections
43+
- navigation.tabs
44+
- navigation.tabs.sticky
45+
- navigation.top
46+
- navigation.tracking
47+
- search.highlight
48+
- search.share
49+
- search.suggest
2350
- tabs
2451

2552
plugins:
2653
- search:
27-
prebuild_index: false
54+
prebuild: false
2855
lang:
2956
- en
3057
# - mkdocs-pom-parser-plugin:
@@ -39,7 +66,9 @@ plugins:
3966
markdown_extensions:
4067
- admonition
4168
- attr_list
69+
- footnotes
4270
- meta
71+
- md_in_html
4372
- mdx_gh_links
4473
- mdx_include:
4574
base_path: ./content
@@ -62,8 +91,8 @@ markdown_extensions:
6291
- pymdownx.critic
6392
- pymdownx.details
6493
- pymdownx.emoji:
65-
emoji_index: !!python/name:materialx.emoji.twemoji
66-
emoji_generator: !!python/name:materialx.emoji.to_svg
94+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
95+
emoji_index: !!python/name:material.extensions.emoji.twemoji
6796
- pymdownx.highlight
6897
- pymdownx.inlinehilite
6998
- pymdownx.keys
@@ -75,8 +104,10 @@ markdown_extensions:
75104
- pymdownx.smartsymbols
76105
- pymdownx.snippets:
77106
check_paths: true
107+
restrict_base_path: False
78108
- pymdownx.superfences
79-
- pymdownx.tabbed
109+
- pymdownx.tabbed:
110+
alternate_style: true
80111
- pymdownx.tasklist:
81112
custom_checkbox: true
82113
- pymdownx.tilde

docs/requirements.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
mkdocs==1.1.2
2-
mkdocs-material==5.5.11
3-
mdx_gh_links==0.3
4-
#mdx_include==1.3.3
1+
mkdocs~=1.6
2+
mkdocs-material==9.5.44
3+
mkdocs-material-extensions~=1.3
4+
mdx_gh_links==0.4
55
mdx_include==1.4.2
6-
mkdocs-markdownextradata-plugin==0.2.1
7-
mkdocs-git-revision-date-plugin==0.3
8-
mkdocs-redirects==1.0.1
9-
mkdocs-htmlproofer-plugin==0.0.3
10-
mkdocs-pom-parser-plugin>=1.0.3
11-
mkdocs-minify-plugin==0.3.0
6+
mdx_include==1.4.2
7+
mkdocs-markdownextradata-plugin==0.2.5
8+
mkdocs-git-revision-date-plugin==0.3.2
9+
mkdocs-redirects==1.2.1
10+
mkdocs-htmlproofer-plugin==1.2.1
11+
mkdocs-minify-plugin==0.8.0
1212
# This dependency is necessary for older mkdocs versions.
1313
# TODO: Remove when upgrading mkdocs.
14-
jinja2<3.1.0
14+
jinja2~=3.0

0 commit comments

Comments
 (0)