Skip to content

Commit 8f350e3

Browse files
committed
Replace sidebar-ad with sidebar-ads plugin
1 parent 2d4a73a commit 8f350e3

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

book.json

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
2424
"language-picker",
25-
"sidebar-ad",
25+
"sidebar-ads",
2626
"codeblock-label",
2727
"sectionx-ex",
2828
"collapsible-menu"
@@ -40,11 +40,51 @@
4040
"language-picker": {
4141
"grid-columns": 3
4242
},
43-
"sidebar-ad": {
44-
"imageUrl": "https://djangogirls.org/static/img/global/donate/lagos.jpg",
45-
"url": "https://www.patreon.com/djangogirls",
46-
"description": "💖 Support our work and donate to our project! ✨",
47-
"btnText": "Donate now!"
43+
"sidebar-ads": {
44+
"ads": [
45+
{
46+
"imageUrl": "https://djangogirls.org/static/img/global/donate/lagos.jpg",
47+
"url": "https://www.patreon.com/djangogirls",
48+
"description": "💖 Support our work and donate to our project! ✨",
49+
"btnText": "Donate now!"
50+
},
51+
{
52+
"imageUrl": "https://posthog.com/static/1cf376d3f6ea36d7fafb9b1c50110603/0b2f4/hosthog-banner.webp",
53+
"url": "https://posthog.com/",
54+
"description": "💖 PostHog offers a suite of product analysis tools! ✨",
55+
"btnText": "Learn more!"
56+
},
57+
{
58+
"imageUrl": "https://static.djangoproject.com/img/logos/django-logo-negative.png",
59+
"url": "https://www.djangoproject.com/",
60+
"description": "💖 The DSF supports the development of Django! ✨",
61+
"btnText": "Learn more!"
62+
},
63+
{
64+
"imageUrl": "https://djangogirls.org/uploads/uploads/lincolnloop.png",
65+
"url": "https://lincolnloop.com/",
66+
"description": "💖 Lincoln Loop provides scalable content platforms! ✨",
67+
"btnText": "Learn more!"
68+
},
69+
{
70+
"imageUrl": "https://djangogirls.org/uploads/uploads/torchbox.png",
71+
"url": "https://torchbox.com/",
72+
"description": "💖 Torchbox, the creators of Wagtail! ✨",
73+
"btnText": "Learn more!"
74+
},
75+
{
76+
"imageUrl": "https://www.pythonanywhere.com/static/anywhere/images/PA-logo.svg",
77+
"url": "https://www.pythonanywhere.com/",
78+
"description": "💖 Host, run, and code Python in the cloud! ✨",
79+
"btnText": "Learn more! "
80+
},
81+
{
82+
"imageUrl": "https://djangogirls.org/static/img/global/donate/tshirt.jpg",
83+
"url": "https://djangogirls.org/en/contact/",
84+
"description": "💖 Want to support our work? ✨",
85+
"btnText": "Contact Us!"
86+
}
87+
]
4888
},
4989
"sectionx": {
5090
"tag": "b"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"gitbook-plugin-language-picker": "*",
1414
"gitbook-plugin-richquotes": "0.0.9",
1515
"gitbook-plugin-sectionx-ex": "*",
16-
"gitbook-plugin-sidebar-ad": "*",
16+
"gitbook-plugin-sidebar-ads": "^1.0.0",
1717
"honkit": "^3.4.0"
1818
},
1919
"scripts": {},

0 commit comments

Comments
 (0)