Skip to content

Commit 18d7620

Browse files
committed
Add generation of OpenGraphs for pages
1 parent 0b54dcd commit 18d7620

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ main.css
2222
# MkDocs
2323
/temp_dir/
2424
/_site-docs/
25+
.cache

layouts/default.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
size: { width: 1200, height: 630 }
2+
layers:
3+
- background:
4+
color: "#4051b5"
5+
typography:
6+
content: "{{ page.title }}"
7+
overflow: shrink
8+
align: start
9+
color: white
10+
line:
11+
amount: 3
12+
height: 1.25
13+
font:
14+
family: DM
15+
style: Sans
16+
- size: { width: 280, height: 144 }
17+
offset: { x: 992, y: 64 }
18+
icon:
19+
color: white
20+

mkdocs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
site_name: WireMock Documentation
22
site_description: >-
33
WireMock Documentation.
4+
site_url: https://wiremock.org/docs
45
copyright: Copyright © 2023 - WireMock Contributors
56
docs_dir: _docs
67
repo_url: https://github.com/wiremock/wiremock.org
@@ -80,6 +81,9 @@ plugins:
8081
- search
8182
- autorefs
8283
- render_swagger
84+
# OpenGraphs
85+
- social:
86+
# custom_layouts_dir is commercial feature
8387
- multirepo:
8488
# TODO: Change to True once works
8589
cleanup: false

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ mkdocs==1.5.3
55
mkdocs-autorefs==0.5.0
66
mkdocs-multirepo-plugin==0.6.3
77
mkdocs-material==9.4.5
8+
mkdocs-material[imaging]==9.4.5
89
mkdocs-redirects==1.2.1
910
mkdocs-extra-sass-plugin==0.1.0
1011
mkdocs-render-swagger-plugin===0.1.1

0 commit comments

Comments
 (0)