Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Technical blog #19

Merged
merged 12 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added blog/assets/layer2-solutions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/polygonblock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/polygonzkevm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/trilemma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zkevm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zkevmtypes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zkpsytems.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zkrollup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zksync.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added blog/assets/zksynccompiler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
190 changes: 190 additions & 0 deletions blog/zkevms-explored.md

Large diffs are not rendered by default.

26 changes: 17 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
const math = require('remark-math');
const katex = require('rehype-katex');

const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
Expand Down Expand Up @@ -55,15 +55,22 @@ const config = {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
remarkPlugins: [math],
rehypePlugins: [katex],
editUrl: `https://github.com/axieinfinity/ronin-documentation/edit/main`,
editLocalizedFiles: false,
editCurrentVersion: false,
showLastUpdateTime: true,
},
blog: {
path: 'blog',
blogTitle: 'Technical blog',
blogDescription: 'Learn about the latest updates on Ronin',
routeBasePath: 'blog',
blogSidebarTitle: 'Technical blog',
showReadingTime: true,
remarkPlugins: [math],
rehypePlugins: [katex],
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
Expand Down Expand Up @@ -173,6 +180,12 @@ const config = {
label: 'Bridge operators',
to: 'bridge-operators',
},
// Blog
{
label: 'Blog',
to: 'blog',
position: 'right',
},
// Search
{
type: 'search',
Expand All @@ -194,11 +207,6 @@ const config = {
label: 'X',
href: 'https://twitter.com/ronin_network',
},
{
type: 'link',
label: 'Blog',
href: 'https://roninchain.com/blog/',
},
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-loadable": "^5.5.0",
"rehype-katex": "7",
"remark-math": "6",
"rehype-katex": "^7.0.0",
"remark-math": "^6.0.0",
"sass": "^1.49.9",
"webpack": "^5.80.0"
},
Expand Down
12 changes: 11 additions & 1 deletion src/components/homepage-features/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react'

import BoxTickIcon from './box-tick.svg'
import { Card } from './Card'
import BlogIcon from './blog.svg'
import BoxTickIcon from './box-tick.svg'
import CoinIcon from './coins.svg'
import AppsIcon from './apps.svg'
import ListViewIcon from './list-view.svg'
Expand Down Expand Up @@ -53,6 +54,15 @@ const featureList = [
title: 'Bridge operators',
},
},
{
title: 'Technical blog',
Icon: BlogIcon,
description: <>Stay up to date with the latest technical updates on Ronin.</>,
link: {
href: '/blog',
title: 'Technical blog',
},
},
]

export const Features: React.FC = () => {
Expand Down
24 changes: 24 additions & 0 deletions src/components/homepage-features/blog.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8898,7 +8898,7 @@ regjsparser@^0.9.1:
dependencies:
jsesc "~0.5.0"

rehype-katex@7:
rehype-katex@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/rehype-katex/-/rehype-katex-7.0.0.tgz#f5e9e2825981175a7b0a4d58ed9816c33576dfed"
integrity sha512-h8FPkGE00r2XKU+/acgqwWUlyzve1IiOKwsEkg4pDL3k48PiE0Pt+/uLtVHDVkN1yA4iurZN6UES8ivHVEQV6Q==
Expand Down Expand Up @@ -8968,7 +8968,7 @@ remark-gfm@^4.0.0:
remark-stringify "^11.0.0"
unified "^11.0.0"

remark-math@6:
remark-math@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-6.0.0.tgz#0acdf74675f1c195fea6efffa78582f7ed7fc0d7"
integrity sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==
Expand Down
Loading