generated from Consensys/doctools.template-site
-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gas-estimation-update
- Loading branch information
Showing
12 changed files
with
209 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs/developers/reference/api/linea-gettransactionexclusionstatusv1.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React, { useState, useEffect, useRef } from "react"; | ||
import { useColorMode } from "@docusaurus/theme-common"; | ||
|
||
const GetFeedback = (props) => { | ||
const feedbackContRef = useRef(); | ||
const { colorMode } = useColorMode(); | ||
const [theme, setTheme] = useState(); | ||
|
||
useEffect(() => { | ||
setTheme(colorMode); | ||
}, [colorMode]); | ||
|
||
useEffect(() => { | ||
setTheme(window?.localStorage?.getItem("theme") || colorMode); | ||
window.usabilla.load("w.usabilla.com", "a0e35f23333a"); | ||
}, []); | ||
|
||
return ( | ||
<div className="getfeedback-container"> | ||
{/*Light*/} | ||
<div | ||
ub-in-page="66fd19777582bd0f0b3f8314" | ||
className={theme === "dark" ? "getfeedback-hidden" : undefined} | ||
ref={feedbackContRef} | ||
/> | ||
{/*Dark*/} | ||
<div | ||
ub-in-page="66fd1931467c23680b03167d" | ||
className={theme === "light" ? "getfeedback-hidden" : undefined} | ||
ref={feedbackContRef} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GetFeedback; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import {useWindowSize} from '@docusaurus/theme-common'; | ||
import {useDoc} from '@docusaurus/plugin-content-docs/client'; | ||
import DocItemPaginator from '@theme/DocItem/Paginator'; | ||
import DocVersionBanner from '@theme/DocVersionBanner'; | ||
import DocVersionBadge from '@theme/DocVersionBadge'; | ||
import DocItemFooter from '@theme/DocItem/Footer'; | ||
import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile'; | ||
import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop'; | ||
import DocItemContent from '@theme/DocItem/Content'; | ||
import DocBreadcrumbs from '@theme/DocBreadcrumbs'; | ||
import ContentVisibility from '@theme/ContentVisibility'; | ||
import styles from './styles.module.css'; | ||
import GetFeedback from './GetFeedback'; | ||
|
||
/** | ||
* Decide if the toc should be rendered, on mobile or desktop viewports | ||
*/ | ||
function useDocTOC() { | ||
const {frontMatter, toc} = useDoc(); | ||
const windowSize = useWindowSize(); | ||
const hidden = frontMatter.hide_table_of_contents; | ||
const canRender = !hidden && toc.length > 0; | ||
const mobile = canRender ? <DocItemTOCMobile /> : undefined; | ||
const desktop = | ||
canRender && (windowSize === 'desktop' || windowSize === 'ssr') ? ( | ||
<DocItemTOCDesktop /> | ||
) : undefined; | ||
return { | ||
hidden, | ||
mobile, | ||
desktop, | ||
}; | ||
} | ||
export default function DocItemLayout({children}) { | ||
const docTOC = useDocTOC(); | ||
const {metadata} = useDoc(); | ||
return ( | ||
<div className="row"> | ||
<div className={clsx('col', !docTOC.hidden && styles.docItemCol)}> | ||
<ContentVisibility metadata={metadata} /> | ||
<DocVersionBanner /> | ||
<div className={styles.docItemContainer}> | ||
<article> | ||
<DocBreadcrumbs /> | ||
<DocVersionBadge /> | ||
{docTOC.mobile} | ||
<DocItemContent>{children}</DocItemContent> | ||
<GetFeedback /> | ||
<DocItemFooter /> | ||
</article> | ||
<DocItemPaginator /> | ||
</div> | ||
</div> | ||
{docTOC.desktop && <div className="col col--3">{docTOC.desktop}</div>} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.docItemContainer header + *, | ||
.docItemContainer article > *:first-child { | ||
margin-top: 0; | ||
} | ||
|
||
@media (width >= 997px) { | ||
.docItemCol { | ||
max-width: 75% !important; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* eslint-disable */ | ||
window.usabilla || | ||
(function () { | ||
var a = window, | ||
d = a.document, | ||
c = {}, | ||
f = d.createElement("div"), | ||
h = !1, | ||
a = (a.usabilla = function () { | ||
(c.a = c.a || []).push(arguments); | ||
}); | ||
a._ = c; | ||
c.ids = {}; | ||
f.style.display = "none"; | ||
(function () { | ||
if (!d.body) return setTimeout(arguments.callee, 100); | ||
d.body.insertBefore(f, d.body.firstChild).id = "usabilla"; | ||
h = !0; | ||
})(); | ||
a.load = function (a, g, k) { | ||
if (!c.ids[g]) { | ||
var e = (c.ids = {}); | ||
e.url = "//" + a + "/" + g + ".js?s1"; | ||
e.config = k; | ||
setTimeout(function () { | ||
if (!h) return setTimeout(arguments.callee, 100); | ||
var b = d.createElement("iframe"), | ||
a; | ||
b.id = "usabilla-" + g; | ||
/MSIE[ ]+6/.test(navigator.userAgent) && (b.src = "javascript:false"); | ||
f.appendChild(b); | ||
try { | ||
b.contentWindow.document.open(); | ||
} catch (c) { | ||
(e.domain = d.domain), | ||
(a = | ||
"javascript:var d=document.open();d.domain='" + | ||
e.domain + | ||
"';"), | ||
(b.src = a + "void(0);"); | ||
} | ||
try { | ||
var l = b.contentWindow.document; | ||
l.write( | ||
[ | ||
"<!DOCTYPE html><html><head></head><body onload=\"var d = document;d.getElementsByTagName('head')[0].appendChild(d.createElement('script')).src='", | ||
e.url, | ||
"'\"></body></html>", | ||
].join("") | ||
); | ||
l.close(); | ||
} catch (m) { | ||
b.src = | ||
a + | ||
'd.write("' + | ||
loaderHtml().replace(/"/g, String.fromCharCode(92) + '"') + | ||
'");d.close();'; | ||
} | ||
b.contentWindow.config = k; | ||
b.contentWindow.SCRIPT_ID = g; | ||
}, 0); | ||
} | ||
}; | ||
})(); |