Skip to content

Commit

Permalink
Merge branch 'dev-content' of https://github.com/scroll-tech/scroll-d…
Browse files Browse the repository at this point in the history
…ocumentation into dev-content
  • Loading branch information
Turupawn committed Aug 5, 2023
2 parents 80d2030 + 7bbdfb0 commit 4ed3b82
Show file tree
Hide file tree
Showing 14 changed files with 327 additions and 185 deletions.
22 changes: 17 additions & 5 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,27 @@
"buildingOnScroll": "Building on Scroll",
"developerQuickstart": "Developer Quickstart",
"verifyingSmartContracts": "Verifying Smart Contracts",
"alphaTestnetContracts": "Alpha Testnet Contracts",
"integrations": "Integrations",
"ethereum&AlphaTestnetDifferences": "Ethereum & Alpha Testnet Differences",
"scrollContracts": "Scroll Contracts",
"ethereumAndScrollDifferences": "Ethereum & Scroll Differences",
"l1AndL2Bridging": "L1 & L2 Bridging",
"ethAndErc20TokenBridge": "ETH & ERC20 Token Bridge",
"erc721NftBridge": "ERC721 NFT Bridge",
"erc1155TokenBridge": "ERC1155 Token Bridge",
"theScrollMessenger": "The Scroll Messenger",
"transactionFeesOnScroll": "Transaction Fees on Scroll",
"l2Fee": "L2 Fee",
"l1Fee": "L1 Fee",
"gasOracle": "Gas Oracle",
"future": "Future",
"guides": "Guides",
"contractDeploymentTutorial": "Contract Deployment Tutorial",
"crossChainInteraction": "Greeting Contract with Cross-chain Interaction",
"bridgingERC20TokenThroughCustomGateway": "Bridging ERC20 Token through Custom Gateway",
"bridgingERC721NftThroughCustomGateway": "Bridging ERC721 NFT through Custom Gateway",
"bridgingERC1155ThroughCustomGateway": "Bridging ERC1155 through Custom Gateway",
"estimatingGasAndTxFees": "Estimating Gas & Tx Fees",
"resources": "Resources",
"rollupExplorer": "Rollup Explorer",
"alphaBlockExplorer": "Alpha Block Explorer",
"goerliBlockExplorer": "Goerli Block Explorer",
"scrollSepoliaBlockExplorer": "Scroll Sepolia Explorer",
"sepoliaBlockExplorer": "Sepolia Explorer"
},
Expand Down
4 changes: 3 additions & 1 deletion src/components/ClickToZoom.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ const { src, alt } = Astro.props as Props
.click-to-zoom {
cursor: zoom-in;
height: auto;
width: 100%;
max-width: 100%;
margin: 3em auto !important;
display: block;
}
</style>
<style is:global>
Expand Down
79 changes: 71 additions & 8 deletions src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,56 @@ export const getSidebar = () => {
url: formatUrl("developers/verifying-smart-contracts"),
},
{
title: t("sidebar.developers.alphaTestnetContracts"),
url: formatUrl("developers/alpha-testnet-contracts"),
title: t("sidebar.developers.scrollContracts"),
url: formatUrl("developers/scroll-contracts"),
},
{ title: t("sidebar.developers.integrations"), url: formatUrl("developers/integrations") },
{
title: t("sidebar.developers.ethereum&AlphaTestnetDifferences"),
url: formatUrl("developers/ethereum-and-alpha-testnet-differences"),
title: t("sidebar.developers.ethereumAndScrollDifferences"),
url: formatUrl("developers/ethereum-and-scroll-differences"),
},
{
title: t("sidebar.developers.l1AndL2Bridging"),
url: formatUrl("developers/l1-and-l2-bridging"),
children: [
{
title: t("sidebar.developers.ethAndErc20TokenBridge"),
url: formatUrl("developers/l1-and-l2-bridging/eth-and-erc20-token-bridge"),
},
{
title: t("sidebar.developers.erc721NftBridge"),
url: formatUrl("developers/l1-and-l2-bridging/erc721-nft-bridge"),
},
{
title: t("sidebar.developers.erc1155TokenBridge"),
url: formatUrl("developers/l1-and-l2-bridging/erc1155-token-bridge"),
},
{
title: t("sidebar.developers.theScrollMessenger"),
url: formatUrl("developers/l1-and-l2-bridging/the-scroll-messenger"),
},
],
},
{
title: t("sidebar.developers.transactionFeesOnScroll"),
url: formatUrl("developers/transaction-fees-on-scroll"),
// children: [
// {
// title: t("sidebar.developers.l2Fee"),
// url: formatUrl("developers/transaction-fees-on-scroll/l2-fee"),
// },
// {
// title: t("sidebar.developers.l1Fee"),
// url: formatUrl("developers/transaction-fees-on-scroll/l1-fee"),
// },
// {
// title: t("sidebar.developers.gasOracle"),
// url: formatUrl("developers/transaction-fees-on-scroll/gas-oracle"),
// },
// {
// title: t("sidebar.developers.future"),
// url: formatUrl("developers/transaction-fees-on-scroll/future"),
// },
// ],
},
],
},
Expand All @@ -85,14 +128,34 @@ export const getSidebar = () => {
title: t("sidebar.developers.contractDeploymentTutorial"),
url: formatUrl("developers/guides/contract-deployment-tutorial"),
},
// {
// title: t("sidebar.developers.crossChainInteraction"),
// url: formatUrl("developers/guides/"),
// },
// {
// title: t("sidebar.developers.bridgingERC20TokenThroughCustomGateway"),
// url: formatUrl("developers/guides/"),
// },
// {
// title: t("sidebar.developers.bridgingERC721NftThroughCustomGateway"),
// url: formatUrl("developers/guides/"),
// },
// {
// title: t("sidebar.developers.bridgingERC1155ThroughCustomGateway"),
// url: formatUrl("developers/guides/"),
// },
// {
// title: t("sidebar.developers.estimatingGasAndTxFees"),
// url: formatUrl("developers/guides/"),
// },
],
},
{
section: "Resources",
contents: [
{ title: t("sidebar.developers.rollupExplorer"), url: "https://scroll.io/alpha/rollupscan" },
{ title: t("sidebar.developers.scrollSepoliaBlockExplorer"), url: "https://blockscout.scroll.io/" },
{ title: t("sidebar.developers.sepoliaBlockExplorer"), url: "https://goerli.etherscan.io/" },
{ title: t("sidebar.developers.rollupExplorer"), url: "https://scroll.io/rollupscan" },
{ title: t("sidebar.developers.scrollSepoliaBlockExplorer"), url: "https://sepolia-blockscout.scroll.io/" },
{ title: t("sidebar.developers.sepoliaBlockExplorer"), url: "https://sepolia.etherscan.io/" },
],
},
],
Expand Down
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.
70 changes: 0 additions & 70 deletions src/content/docs/en/developers/alpha-testnet-contracts.mdx

This file was deleted.

Loading

0 comments on commit 4ed3b82

Please sign in to comment.