-
Notifications
You must be signed in to change notification settings - Fork 454
/
theme.config.tsx
91 lines (88 loc) · 15.2 KB
/
theme.config.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
import { useConfig } from 'nextra-theme-docs'
import { FeelbackYesNo, PRESET_LIKE_DISLIKE } from "@feelback/react"
import "@feelback/react/styles/feelback.css"
const config: DocsThemeConfig = {
logo: (
<>
<svg width="194" height="32" viewBox="0 0 194 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.2169701,26.2999338c-.9683257,0-1.8674851-.1306123-2.6974786-.3919402s-1.5293431-.6532699-2.0980391-1.1758243c-.5686958-.5225563-.9760141-1.1758243-1.2219347-1.9597066-.2305537-.7838823-.2612945-1.6983787-.0922214-2.7435888.1229653-.660889.2536091-1.3218756.3919413-1.9827627.1536991-.6608871.3074083-1.3294937.4611075-2.0058178.5072181-2.0749832,1.4217447-3.6504672,2.7435894-4.7263515,1.3218445-1.075914,3.1047869-1.6138757,5.3488459-1.6138757.9683262,0,1.8597666.1383322,2.6744234.4149963.8299935.2612982,1.5293737.6609177,2.0980393,1.1988795.5841026.5379627.9913804,1.1988795,1.2219346,1.9827627.2458909.7838823.2766635,1.6983787.0922215,2.7435888-.1075581.6763241-.2382727,1.3449307-.3919411,2.0058178-.1383327.6608871-.284383,1.3218736-.4380524,1.9827627-.5225553,2.1057559-1.4447703,3.6811395-2.7666449,4.7263496-1.3218746,1.0297731-3.0971086,1.5447103-5.3257908,1.5447103ZM15.5166897,22.9799599c.8299935,0,1.5600766-.2458889,2.1902608-.737772.6302129-.4918811,1.0758834-1.2757634,1.3372112-2.3516468.1691064-.6763241.3150563-1.3141571.4380524-1.9135963.1383318-.5994393.2613279-1.2219346.368886-1.8674851.1997796-1.0758843.1075581-1.8597666-.2766645-2.3516477-.3842226-.4918821-.9913813-.737772-1.8213748-.737772s-1.5600766.2458899-2.1902603.737772c-.6148065.4918811-1.0528584,1.2757634-1.3141561,2.3516477-.1690763.6455505-.3227752,1.2680458-.4611075,1.8674851-.1229655.5994393-.2459205,1.2372722-.368886,1.9135963-.184443,1.0758834-.0922215,1.8597656.2766645,2.3516468.368886.491883.9760141.737772,1.8213743.737772ZM26.6273741,26.0693805c-.1536684,0-.2766635-.0538288-.368886-.1613869-.0922205-.1075581-.1228938-.2458909-.0922205-.4149982l3.1816412-14.9859909c.0307746-.1690767.1152766-.3074085.2536094-.4149972.1383308-.1075882.284382-.1613874.4380524-.1613874h6.1327291c.937652,0,1.7829821.1075882,2.5360897.3227752.7685466.215187,1.4063776.5456401,1.9135963.9913813.5072187.4457403.8607671,1.006717,1.0605458,1.6830421.1998819.6608871.2074991,1.4371512.023058,2.3285926-.3842236,1.7675451-1.1681077,3.0740821-2.3516487,3.9194122-1.1681058.8453301-2.7435907,1.2680468-4.7263515,1.2680468h-3.1124748l-1.0605477,5.0491253c-.0306733.1691073-.1152766.30744-.2536094.4149982-.1228957.1075581-.2689469.1613869-.4380524.1613869h-3.1355309ZM32.1145536,17.262228h2.6513683c.6302119,0,1.1912594-.1691064,1.6830411-.5072178.5072187-.3381124.8377129-.8530486.9913813-1.5447103.0768849-.3996596.0922205-.7531086.0461103-1.0605467s-.2074972-.553329-.4841626-.737772c-.2612265-.184443-.6686056-.2766645-1.2219346-.2766645h-2.7666449l-.8991589,4.1269113ZM47.0494212,26.0693805c-.1691035,0-.2997196-.0538288-.3919402-.1613869s-.1229951-.2458909-.0922205-.4149982l2.5591439-11.9426825h-4.1038542c-.1536703,0-.2766654-.0538288-.368886-.1613869-.0922205-.1229961-.1229951-.2613279-.0922205-.4149972l.5302729-2.4669243c.0307746-.1690767.1075581-.3074085.2305533-.4149972.1383327-.1075882.2919992-.1613874.4611065-.1613874h12.4037909c.1691073,0,.292003.0537991.368886.1613874.0922205.1075887.1229951.2459205.0922205.4149972l-.5302729,2.4669243c-.0307746.1536694-.1152747.2920011-.2536074.4149972-.1229951.1075581-.2689489.1613869-.4380524.1613869h-4.1038581l-2.5360897,11.9426825c-.0307746.1691073-.1152785.30744-.2536113.4149982-.1229951.1075581-.268945.1613869-.4380485.1613869h-3.0433123ZM59.2907239,26.0693805c-.1691073,0-.2997196-.0538288-.391944-.1613869-.0922205-.1075581-.1229951-.2458909-.0922205-.4149982l3.2046954-14.9859909c.0307746-.1690767.1152785-.3074085.2536113-.4149972.1383327-.1075882.284382-.1613874.4380524-.1613874h3.1124748c.1536703,0,.2766654.0537991.368886.1613874.0922205.1075887.1229951.2459205.0922205.4149972l-3.2046954,14.9859909c-.0307746.1691073-.1152785.30744-.2536113.4149982-.1229951.1075581-.2613279.1613869-.4149943.1613869h-3.1124748ZM68.1028886,26.0693805c-.1690079,0-.2997235-.0538288-.391944-.1613869s-.1228957-.2458909-.0922205-.4149982l3.1816412-14.9859909c.0307746-.1690767.1152785-.3074085.2536074-.4149972.1383327-.1075882.2921025-.1613874.4611104-.1613874h2.4899776c.2459903,0,.4149982.0691659.5072225.2074986.1076575.1229645.1768239.2228654.2074991.2997196l2.4899737,7.2854973,5.6255104-7.2854973c.046116-.0768543.1383327-.1767551.2766654-.2997196.1537736-.1383327.3535484-.2074986.5994393-.2074986h2.4899814c.1691073,0,.2997235.0537991.3919402.1613874.0922244.1075887.122999.2459205.0922244.4149972l-3.181645,14.9859909c-.0306675.1691073-.1152747.30744-.2536074.4149982s-.2919992.1613869-.4611065.1613869h-2.7666468c-.1536665,0-.2766578-.0538288-.3688822-.1613869s-.1228919-.2458909-.0922244-.4149982l1.7983178-8.5074319-3.5274692,4.6802412c-.1075581.1229951-.2381743.2458909-.3919402.368886-.1383327.1075581-.3150572.1613869-.5302729.1613869h-1.1988785c-.2151163,0-.3688898-.0538288-.4611065-.1613869-.0922244-.1075581-.1613907-.2305533-.2074991-.368886l-1.6369347-4.8877394-1.8674841,8.7149301c-.0306752.1691073-.1152785.30744-.2536074.4149982-.1228957.1075581-.2612284.1613869-.4149982.1613869h-2.766643ZM88.4867409,26.0693805c-.1690003,0-.2997158-.0538288-.3919402-.1613869-.0922167-.1075581-.1228919-.2458909-.0922167-.4149982l3.2046954-14.9859909c.0307746-.1690767.1152747-.3074085.2536074-.4149972.1383327-.1075882.284382-.1613874.4380485-.1613874h3.1124786c.1537659,0,.2766654.0537991.3688822.1613874.0922244.1075887.122999.2459205.0922244.4149972l-3.2046954,14.9859909c-.0306752.1691073-.1152747.30744-.2536074.4149982-.1228995.1075581-.2612323.1613869-.4149982.1613869h-3.1124786ZM102.9935824,26.2999338c-1.5369861,0-2.7973144-.2152157-3.7810766-.6455495-.9683291-.4303338-1.6676099-.9990998-2.0980412-1.7060972-.4149982-.7224363-.5609481-1.4832625-.4380485-2.2824823.0307669-.1229951.0922167-.2305533.1844411-.3227757.1076575-.1075581.2305494-.1613869.3688822-.1613869h2.9510879c.2152157,0,.3688898.0383918.4611065.1152766.0922244.0768849.1844487.1767245.2766654.2997196.0615492.2305533.1844411.453388.3688898.6686056.1844411.2152176.4380485.3919421.7608223.5302729.3382146.122997.7532128.184443,1.2449945.184443.8915379,0,1.6062595-.1383308,2.1441496-.4149963.5379895-.2766635.8530467-.653268.9452711-1.1297121.0922167-.3381133.0307746-.6147768-.1844487-.8299944-.1997748-.2305533-.5609404-.4303338-1.0835961-.5994393-.5072225-.184443-1.1911619-.368886-2.0519329-.553329-1.1219956-.2458909-2.0442086-.5841036-2.7666392-1.0144374-.7223388-.4457699-1.2295537-1.006717-1.52166-1.6830411-.2766654-.6916617-.3150572-1.5139367-.1152747-2.4669253.30744-1.4140961,1.0682624-2.5284018,2.2824823-3.343029,1.2143193-.8299935,2.7896972-1.2449897,4.7263477-1.2449897.9991037,0,1.882925.1383322,2.6513721.4149963.7840792.2766645,1.4376493.6455505,1.9599073,1.106658.5222504.4611075.8991551.9529886,1.1297121,1.475544.2305494.5072187.3077383,1.006718.2305494,1.4985991-.0150355.1229961-.0771812.2382727-.1844411.3458309-.1072522.0922215-.2305494.1383318-.3688822.1383318h-3.0896195c-.1536741,0-.2920069-.0307736-.4149982-.0922215-.1075581-.0614469-.1997825-.1613869-.2766654-.2997196,0-.3381114-.1767245-.6302129-.5302729-.8761037-.353449-.2613279-.8222798-.3919411-1.4063776-.3919411-.660889,0-1.2142199.1229951-1.659985.368886-.4456733.2305533-.7223388.5917208-.8299963,1.0836019-.0767835.3074391-.0383918.5763841.1152747.8069383.1691073.2305533.4765474.4303338.9222207.5994393.4611065.1691064,1.0913204.3458309,1.8905345.5302738,1.3526521.2613279,2.4131979.6147768,3.1818438,1.0605467.7688448.4303338,1.2830804.9760437,1.5447103,1.6369328.2766654.6608871.314759,1.4678235.1152747,2.4208131-.3378093,1.5677664-1.160785,2.7589264-2.4671222,3.5735833-1.2911029.7992198-3.0202543,1.1988785-5.1874619,1.1988785ZM113.8779235,26.0693805c-.1684037,0-.2997158-.0538288-.3919402-.1613869s-.1222954-.2458909-.0922244-.4149982l3.181645-14.9859909c.0310729-.1690767.1152747-.3074085.2536074-.4149972.1383327-.1075882.2927028-.1613874.4611065-.1613874h2.4899814c.2465944,0,.4149982.0691659.5072225.2074986.1082541.1229645.1774204.2228654.2074991.2997196l2.4899737,7.2854973,5.6255104-7.2854973c.046116-.0768543.1383327-.1767551.2766654-.2997196.1543701-.1383327.3538543-.2074986.5994393-.2074986h2.4899814c.1694056,0,.2997235.0537991.3919402.1613874.0922244.1075887.1232972.2459205.0922244.4149972l-3.181645,14.9859909c-.030071.1691073-.1152747.30744-.2536074.4149982s-.2917009.1613869-.4611065.1613869h-2.7666468c-.1533682,0-.2766578-.0538288-.3688822-.1613869s-.1222954-.2458909-.0922244-.4149982l1.7983178-8.5074319-3.5274692,4.6802412c-.1072599.1229951-.2375701.2458909-.3919402.368886-.1383327.1075581-.314759.1613869-.5302729.1613869h-1.1988785c-.2145197,0-.3688898-.0538288-.4611065-.1613869-.0922244-.1075581-.1613907-.2305533-.2074991-.368886l-1.6369347-4.8877394-1.8674841,8.7149301c-.030071.1691073-.1152747.30744-.2536074.4149982-.1222954.1075581-.2606281.1613869-.4149982.1613869h-2.7666468Z" fill="#ff0420"/>
<path d="M148.1682794,26.2999338c-1.3522467,0-2.4518879-.2536094-3.2969197-.7608262-.8299963-.5072187-1.3983627-1.2219346-1.7060934-2.1441496-.307746-.922215-.3538467-2.0058188-.1383327-3.2508075.1232972-.6763241.2686506-1.3910419.4380485-2.1441505.1694132-.7685456.3307963-1.4985991.4841645-2.1902598.307746-1.2449907.806946-2.3208741,1.4985943-3.2277524.7066991-.9068478,1.5908263-1.6138757,2.6513721-2.1210944,1.0605458-.5072182,2.2594243-.7608271,3.5966355-.7608271,1.0916263,0,2.0058245.153699,2.7435888.4611075.7377796.3074085,1.3141609.6993496,1.7291591,1.1758243.4149982.4611065.6916636.9452701.8299963,1.4524879.1533682.5072187.1994689.9529886.1383327,1.3372122-.0150355.1383318-.0842019.2536084-.2074991.3458299-.1072675.0768849-.2385796.1152766-.3919478.1152766h-1.3602616c-.1383327,0-.2385796-.0307736-.2997158-.0922205-.046116-.0614479-.092232-.1691064-.1383327-.3227757-.046116-.3996596-.1844487-.7916008-.4149982-1.1758243-.2305647-.3842226-.591432-.6993793-1.0836114-.9452701-.4761344-.2612973-1.1297121-.3919411-1.9597085-.3919411-1.213914,0-2.2674392.3304636-3.158587.9913813-.8760971.6608871-1.5066092,1.7522085-1.8905268,3.2738627-.1694132.6763241-.3307963,1.3602673-.4841645,2.0519281-.1383327.6916617-.2686506,1.375603-.3919478,2.051929-.2616299,1.5369899-.0922167,2.6436479.5072149,3.319972.6144824.6608871,1.5366955.9913813,2.7666545.9913813.7989158,0,1.5527252-.1460512,2.2594243-.4380524.7066991-.3074381,1.3061307-.7761637,1.7983101-1.4063776.5072302-.6302139.8610769-1.4294318,1.0605458-2.3977589l.2074991-.9683252h-3.4583028c-.1533682,0-.2686353-.0461103-.3458318-.1383327-.0771812-.1075581-.1002316-.2458889-.0691664-.4149963l.1613984-.737772c.0310652-.1691054.1072522-.2997196.2305494-.3919411.1232972-.1075581.2616299-.1613869.4149982-.1613869h5.2105122c.1694132,0,.2846803.0538288.3458318.1613869.0771812.0922215.1002316.2228357.0691664.3919411l-.4611142,2.2133159c-.2766654,1.2603264-.7758655,2.3593672-1.4985943,3.2969178-.7227288.9375526-1.6289122,1.6677055-2.7205385,2.1902618-1.0755813.5072168-2.2975102.7608262-3.6658019.7608262ZM163.6765341,26.2999338c-.9061834,0-1.7291591-.1229951-2.4669387-.368886-.7377643-.2613279-1.3442166-.653268-1.8213605-1.1758243-.4761497-.5225544-.806946-1.1835409-.9913947-1.9827608-.1684037-.7992198-.1613831-1.7368718.0230657-2.8127552.1232972-.6763241.2535998-1.3218756.3919325-1.9366524.1383327-.6302129.2927105-1.2833815.4611142-1.9597066.5072149-2.1364311,1.399357-3.7272517,2.6744225-4.7724618,1.2910952-1.0605467,2.9049719-1.5908206,4.84163-1.5908206.9222131,0,1.7451888.1306439,2.4669234.3919411.7377643.2612973,1.3452261.6609177,1.8213758,1.1988795.4921794.5379618.8229757,1.1988795.9913794,1.9827617.1694132.7838832.1613831,1.7138167-.0230504,2.7897001-.122303.6763251-.2536151,1.3294937-.3919478,1.9597066-.1383327.6147768-.2836861,1.2603283-.4380485,1.9366524-.5222504,2.1672038-1.4294432,3.7657429-2.7205385,4.795516-1.2750655,1.0297731-2.8819216,1.5447103-4.8185644,1.5447103ZM163.7687508,24.3402272c1.2149235,0,2.2824747-.3535484,3.2046877-1.0605477.9222284-.7069974,1.5757908-1.8521465,1.9597085-3.4352486.1694132-.6916617.307746-1.3064386.4149982-1.8444309.1232972-.553329.2465944-1.1681049.3688975-1.8444299.2926952-1.5831021.1693979-2.7282522-.3688975-3.4352505-.5222504-.707028-1.4063776-1.0605467-2.6513568-1.0605467-1.2289648,0-2.2975254.3535188-3.204703,1.0605467-.9061834.7069983-1.551731,1.8521485-1.9366581,3.4352505-.1684037.6763251-.3147513,1.291101-.4380485,1.8444299-.1222877.5379924-.2455849,1.1527692-.3688822,1.8444309-.2766654,1.5831021-.1613831,2.7282512.3458318,3.4352486.5232599.7069993,1.4143925,1.0605477,2.6744225,1.0605477ZM178.1041753,26.0693805c-.2305494,0-.4079775-.0538288-.5302652-.1613869-.1082617-.1075581-.1694132-.2536094-.1844487-.4380524l-2.0058092-14.9629368c-.016045-.184443.0230504-.3227757.1152671-.4149972.0922167-.1075882.2145197-.1613874.3688822-.1613874h1.1758282c.1844487,0,.3147513.0461107.3919478.1383322.0761717.0768543.1222877.1690758.1383327.2766645l1.7291438,13.0723956,7.3085534-13.0723956c.030071-.0922215.092232-.184443.1844487-.2766645s.2305494-.1383322.4149982-.1383322h1.4063776c.1844334,0,.2997158.0768543.3458318.2305537.0611362.153699.0461007.3150869-.046116.4841626l-8.2999329,14.824605c-.0922167.184443-.2155139.3304942-.3688822.4380524-.1543777.1075581-.3458318.1613869-.5763813.1613869h-1.567776Z" fill="currentColor"/>
</svg>
</>
),
darkMode: true,
project: {
link: 'https://github.com/ethereum-optimism/community-hub',
},
docsRepositoryBase: 'https://github.com/ethereum-optimism/community-hub/blob/main/',
footer: {
text: 'OP Documentation',
},
sidebar: {
defaultMenuCollapseLevel: 1,
autoCollapse: true
},
toc: {
backToTop: true,
extraContent: () =>
<>
<hr className="divider top-divider" />
<FeelbackYesNo contentSetId="b2983747-797d-4e6e-9ea3-15d59b9c27ce"
preset={PRESET_LIKE_DISLIKE}
textQuestion="Is this page useful?"
textAnswer="Thanks for your feedback :)"
/>
<hr className="divider" />
</>
},
feedback: {
content: '❤️ Share general feedback',
labels: 'user-feedback'
},
editLink: {
text: '✏️ Edit this page on GitHub'
},
banner: {
key: 'airdrop-5',
text: (
<a href="/op-token/airdrops/airdrop-5">
🎉 Airdrop 5 is live and supports power users growing the Superchain Ecosystem . Read more →
</a>
)
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s | Optimism Docs'
}
}
},
head: () => {
const { asPath, defaultLocale, locale } = useRouter()
const { frontMatter } = useConfig()
const url =
'https://community.optimism.io' +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`)
return (
<>
<meta property="og:url" content={url} />
<meta property="og:title" content={frontMatter.title || 'Optimism Docs'} />
<meta
property="og:description"
content={frontMatter.description || 'Optimism Docs for developers'}
/>
<link rel="icon" href="/img/icons/favicon.ico" type="image/x-icon"></link>
</>
)
},
// https://nextra.site/docs/docs-theme/theme-configuration
// primaryHue: {
// dark:
// light:
// }
}
export default config