Skip to content

Commit

Permalink
Merge pull request #19 from ronin-chain/tblog
Browse files Browse the repository at this point in the history
Feat: Technical blog
  • Loading branch information
phuctd95 authored Jun 21, 2024
2 parents dea69f3 + f527ccb commit 7e3c377
Show file tree
Hide file tree
Showing 16 changed files with 311 additions and 14 deletions.
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.
255 changes: 255 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

0 comments on commit 7e3c377

Please sign in to comment.