Skip to content

Commit

Permalink
Merge pull request #30 from scroll-tech/sepolia-launch-fixes-zq
Browse files Browse the repository at this point in the history
Sepolia launch fixes
  • Loading branch information
dghelm authored Aug 10, 2023
2 parents 63066bf + b417452 commit a460551
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 8 deletions.
12 changes: 11 additions & 1 deletion src/components/Header/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ const section = frontmatter?.section ?? ""
src="https://www.googletagmanager.com/ns.html?id=GTM-N6DQ47T"
height="0"
width="0"
style="display:none;visibility:hidden"></iframe> --><!-- End Google Tag Manager (noscript) -->
style="display:none;visibility:hidden"></iframe> --><!-- End Google Tag Manager (noscript) --><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56SBDN1LL2"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag("js", new Date())

gtag("config", "G-56SBDN1LL2")
</script>
<header>
<SkipToContent />
<nav class="nav-wrapper" title="Top Navigation">
Expand Down
3 changes: 1 addition & 2 deletions src/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export const OPEN_GRAPH = {
}

// Uncomment this to add an "Edit this page" button to every page of documentation.
// export const GITHUB_EDIT_URL = `https://github.com/scroll-tech/scroll-documentation/tree/main/`
export const GITHUB_EDIT_URL = `https://github.com/scroll-tech/scroll-documentation/tree/ui-refactor/`
export const GITHUB_EDIT_URL = `https://github.com/scroll-tech/scroll-documentation/tree/develop/`

// Uncomment this to add an "Join our Community" button to every page of documentation.
export const COMMUNITY_INVITE_URL = `https://discord.gg/scroll`
1 change: 0 additions & 1 deletion src/content/docs/en/article-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ date: Last Modified
lang: "en"
permalink: "/article-components"
excerpt: "Learn more about the topics of Ethereum Scalability and Zero Knowledge Cryptography"
isMdx: true
whatsnext: { "Next Up Page 1": "/", "Second Next Up Page": "/" }
---

Expand Down
1 change: 0 additions & 1 deletion src/content/docs/en/learn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: "Learn"
lang: "en"
permalink: "learn/"
excerpt: "Learn more about Ethereum scalability and zero knowledge cryptography."
isMdx: true
---

import NavCard from "../../../../components/NavCard.astro"
Expand Down
1 change: 0 additions & 1 deletion src/content/docs/zh/learn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
section: learn
title: "学习登陆标题"
lang: "zh"
isMdx: true
---

import ClickToZoom from "../../../../components/ClickToZoom.astro"
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const { content = {}, frontmatter } = Astro.props
const headings = Astro.props?.headings || Astro.props?.content?.astro.headings
const currentPage = new URL(Astro.request.url).pathname
const currentFile = `src/content/docs${currentPage.replace(/\/$/, "")}.${frontmatter?.file.split(".").pop() || "md"}`
const currentFile = `src/content/docs/${content.file}`
const githubEditUrl = CONFIG.GITHUB_EDIT_URL + currentFile
const formattedContentTitle = content.title
? `${content.title} | ${CONFIG.SITE.title}`
Expand Down
3 changes: 3 additions & 0 deletions src/pages/[lang]/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import MainLayout from "../../layouts/MainLayout.astro"
export async function getStaticPaths() {
const pages = await getCollection("docs")
const languages = i18next.languages
const allSlugs = new Set(
pages.map((page) => {
const [, ...slug] = page.slug.split("/")
Expand Down Expand Up @@ -51,6 +52,8 @@ if (!page.notTranslated) {
const content = {
...page.data,
lang: params.lang,
url: Astro.url.pathname,
file: page.id,
}
---

Expand Down
4 changes: 3 additions & 1 deletion src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,14 @@ table {
@apply text-primary font-text border-none;
border-radius: 10px;
position: relative;
z-index: 1;
}

table::after {
table::before {
content: "";
display: block;
position: absolute;
z-index: -1;
top: 0;
left: 0;
bottom: 0;
Expand Down

0 comments on commit a460551

Please sign in to comment.