@@ -89,29 +89,29 @@ function DocItemContent(props: Props): JSX.Element {
89
89
the added title is added under the same div.markdown block
90
90
See https://github.com/facebook/docusaurus/pull/4882#issuecomment-853021120
91
91
*/ }
92
- { shouldAddTitle && (
93
- < header >
94
- < Heading as = "h1" > { title } </ Heading >
95
- </ header >
96
- ) }
92
+ < header >
93
+ < div className = { styles . Ad } >
94
+ < AdSense . Google
95
+ client = "ca-pub-7756182462259588"
96
+ slot = "5627199760"
97
+ style = { { display : "block" } }
98
+ format = "auto"
99
+ responsive = "true"
100
+ />
101
+ </ div >
102
+ { shouldAddTitle && < Heading as = "h1" > { title } </ Heading > }
103
+ </ header >
97
104
< MDXContent >
98
- < AdSense . Google
99
- client = "ca-pub-7756182462259588"
100
- slot = "4715974167"
101
- // slot="4169179252"
102
- style = { { display : "block" } }
103
- format = "auto"
104
- responsive = "true"
105
- />
106
- < br />
107
105
< DocContent />
108
- < AdSense . Google
109
- client = "ca-pub-7756182462259588"
110
- slot = "9213638280"
111
- style = { { display : "block" } }
112
- format = "auto"
113
- responsive = "true"
114
- />
106
+ < div className = { styles . Ad } >
107
+ < AdSense . Google
108
+ client = "ca-pub-7756182462259588"
109
+ slot = "3255885970"
110
+ style = { { display : "block" } }
111
+ format = "auto"
112
+ responsive = "true"
113
+ />
114
+ </ div >
115
115
</ MDXContent >
116
116
</ div >
117
117
@@ -121,9 +121,9 @@ function DocItemContent(props: Props): JSX.Element {
121
121
< DocPaginator previous = { metadata . previous } next = { metadata . next } />
122
122
</ div >
123
123
</ div >
124
- { renderTocDesktop ? (
124
+ { renderTocDesktop && (
125
125
< div className = "col col--3" >
126
- < div style = { { minWidth : "300px" } } >
126
+ < div className = { styles . Ad } >
127
127
< AdSense . Google
128
128
client = "ca-pub-7756182462259588"
129
129
slot = "4169179252"
@@ -132,24 +132,13 @@ function DocItemContent(props: Props): JSX.Element {
132
132
responsive = "true"
133
133
/>
134
134
</ div >
135
- < br />
136
135
< TOC
137
136
toc = { DocContent . toc }
138
137
minHeadingLevel = { tocMinHeadingLevel }
139
138
maxHeadingLevel = { tocMaxHeadingLevel }
140
139
className = { ThemeClassNames . docs . docTocDesktop }
141
140
/>
142
141
</ div >
143
- ) : (
144
- < div className = "col col--3" style = { { minWidth : "300px" } } >
145
- < AdSense . Google
146
- client = "ca-pub-7756182462259588"
147
- slot = "4169179252"
148
- style = { { display : "block" } }
149
- format = "auto"
150
- responsive = "true"
151
- />
152
- </ div >
153
142
) }
154
143
</ div >
155
144
) ;
0 commit comments