Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
nishuzumi committed Oct 6, 2022
1 parent fb1d199 commit 1e59cae
Show file tree
Hide file tree
Showing 250 changed files with 22,632 additions and 6,092 deletions.
21 changes: 20 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
website/public
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
File renamed without changes.
11 changes: 11 additions & 0 deletions docs/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
sidebar_position: 1
---

# Web3企业级工程
作者:BoxChen

该系列文章为个人在Web3中总结的开发经验,可能会有不对的地方,还请多提意见。
系列文章面相用户为对开发编程有一定基础的开发人员,如果对编程0基础,可能不一定适合阅读此系列文章。但也可以粗略的观看,也许在未来会有不一样的感悟。

如果你有什么好的建议或者想看的内容,随时都可以在推特上联系我。
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const config: HardhatUserConfig = {

## 修改deploy文件
我们打开`00_deploy_univ3.ts`,在`main`函数中添加一些代码。
```typescript
```typescript showLineNumbers
import { utils } from 'ethers'
import { DeployFunction } from "hardhat-deploy/types";
import {
Expand Down
8 changes: 8 additions & 0 deletions docs/primary/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "初级篇",
"position": 2,
"link": {
"type": "generated-index",
"description": "简单的进入Web3世界"
}
}
137 changes: 137 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/nightOwl');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Web3企业级工程',
tagline: 'Web3企业级工程',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// favicon: 'img/favicon.ico',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'nishuzumi', // Usually your GitHub org/user name.
projectName: 'web3ee', // Usually your repo name.

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
googleAnalytics: {
trackingID: 'UA-36085609-4',
anonymizeIP: true,
},
},
],
],
themes:[
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image:'img/primary_banner.png',
navbar: {
title: 'Web3企业级工程',
// logo: {
// alt: 'My Site Logo',
// src: 'img/tinyLogo.png',
// },
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: '文档',
},
{
href: 'https://github.com/nishuzumi/Web3-Enterprise-level-engineering',
label: 'GitHub',
position: 'right',
},
],
},
colorMode:{
defaultMode:'dark',
disableSwitch:true,
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: '文档',
to: '/docs/intro',
},
],
},
{
title: '社交链接',
items: [
{
label: 'Discord',
href: 'https://discordapp.com/invite/vqRrQBge8S',
},
{
label: 'Twitter',
href: 'https://twitter.com/BoxMrChen',
},
],
},
{
title: '捐赠',
items: [
{
label: 'ETH:boxchen.eth',
to:"https://etherscan.io/enslookup-search?search=boxchen.eth"
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Web3Box, Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};

module.exports = config;
Loading

1 comment on commit 1e59cae

@vercel
Copy link

@vercel vercel bot commented on 1e59cae Oct 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.