From b99b2d76c427ff85002f80de5f20c365fee0b567 Mon Sep 17 00:00:00 2001 From: hojas Date: Thu, 8 Aug 2024 14:57:06 +0800 Subject: [PATCH] change dir --- {src/components => components}/ImgLoader.vue | 0 {.vitepress => docs/.vitepress}/config.ts | 1 - {.vitepress => docs/.vitepress}/head.ts | 0 {.vitepress => docs/.vitepress}/nav.ts | 10 ---------- {.vitepress => docs/.vitepress}/sidebar.ts | 11 ----------- {.vitepress => docs/.vitepress}/theme/MyLayout.vue | 0 {.vitepress => docs/.vitepress}/theme/index.ts | 0 {src/docs => docs}/about.md | 0 .../assets/img/browser/embedded-blink.png | Bin {src/docs => docs}/assets/img/browser/parser.png | Bin {src/docs => docs}/assets/img/browser/v8.webp | Bin {src/docs => docs}/assets/img/browser/v82.png | Bin {src/docs => docs}/basic.md | 0 {src/docs => docs}/blog/1.md | 0 {src/docs => docs}/blog/2.md | 0 {src/docs => docs}/blog/2/VoiceVisualization.vue | 0 {src/docs => docs}/blog/3.md | 0 {src/docs => docs}/blog/3/asyncdefer.svg | 0 {src/docs => docs}/blog/4.md | 0 {src/docs => docs}/blog/5.md | 0 {src/docs => docs}/blog/6.md | 0 {src/docs => docs}/browser.md | 0 {src/docs => docs}/browser/architecture.md | 0 {src/docs => docs}/browser/blink.md | 0 {src/docs => docs}/browser/cross-origin.md | 0 {src/docs => docs}/browser/event-loop.md | 0 {src/docs => docs}/browser/event-loop/1.png | Bin {src/docs => docs}/browser/event-loop/2.png | Bin {src/docs => docs}/browser/event-loop/3.png | Bin {src/docs => docs}/browser/navigation.md | 0 {src/docs => docs}/browser/process-and-thread.md | 0 {src/docs => docs}/browser/reflow-and-repaint.md | 0 {src/docs => docs}/browser/rendering.md | 0 {src/docs => docs}/browser/rendering/draw.jpg | Bin {src/docs => docs}/browser/rendering/layer.jpg | Bin {src/docs => docs}/browser/rendering/layout-1.jpg | Bin {src/docs => docs}/browser/rendering/layout-2.jpg | Bin {src/docs => docs}/browser/rendering/layout-3.jpg | Bin {src/docs => docs}/browser/rendering/layout.jpg | Bin {src/docs => docs}/browser/rendering/paint-1.jpg | Bin {src/docs => docs}/browser/rendering/paint.jpg | Bin .../browser/rendering/parse-html-css.jpg | Bin .../browser/rendering/parse-html-cssom.jpg | Bin .../browser/rendering/parse-html-dom.jpg | Bin .../browser/rendering/parse-html-js.jpg | Bin {src/docs => docs}/browser/rendering/parse-html.jpg | Bin {src/docs => docs}/browser/rendering/raster-1.jpg | Bin {src/docs => docs}/browser/rendering/raster.jpg | Bin {src/docs => docs}/browser/rendering/reflow.jpg | Bin .../docs => docs}/browser/rendering/render-flow.jpg | Bin .../docs => docs}/browser/rendering/render-flow.png | Bin .../browser/rendering/rendering-time.png | Bin {src/docs => docs}/browser/rendering/repaint.jpg | Bin .../browser/rendering/style-compute.jpg | Bin {src/docs => docs}/browser/rendering/tiling-1.jpg | Bin {src/docs => docs}/browser/rendering/tiling.jpg | Bin .../docs => docs}/browser/rendering/transform-1.jpg | Bin .../docs => docs}/browser/rendering/transform-2.jpg | Bin {src/docs => docs}/browser/v8-gc.md | 0 {src/docs => docs}/browser/v8.md | 0 {src/docs => docs}/design-pattern.md | 0 .../docs => docs}/design-pattern/design-patterns.md | 0 {src/docs => docs}/design-pattern/principles.md | 0 {src/docs => docs}/devops.md | 0 {src/docs => docs}/ecmascript.md | 0 {src/docs => docs}/ecmascript/2023.md | 0 {src/docs => docs}/engineering.md | 0 {src/docs => docs}/engineering/vite.md | 0 {src/docs => docs}/engineering/webpack-loader.md | 0 {src/docs => docs}/engineering/webpack-plugin.md | 0 {src/docs => docs}/engineering/webpack.md | 0 {src/docs => docs}/index.md | 0 {src/docs => docs}/infrastructure.md | 0 {src/docs => docs}/javascript.md | 0 {src/docs => docs}/javascript/async-await.md | 0 .../javascript/request-animation-frame.md | 0 .../javascript/request-idle-callback.md | 0 {src/docs => docs}/javascript/type.md | 0 {src/docs => docs}/javascript/web-worker.md | 0 {src/docs => docs}/leetcode.md | 0 {src/docs => docs}/leetcode/easy/1.md | 0 {src/docs => docs}/leetcode/easy/9.md | 0 {src/docs => docs}/network.md | 0 {src/docs => docs}/network/http.md | 0 {src/docs => docs}/network/http2.md | 0 {src/docs => docs}/network/http3.md | 0 {src/docs => docs}/nodejs.md | 0 {src/docs => docs}/nodejs/event-loop.md | 0 {src/docs => docs}/nodejs/modules.md | 0 {src/docs => docs}/performance.md | 0 .../performance/assets/good-cls-values.svg | 0 .../performance/assets/good-fcp-values-18.svg | 0 .../performance/assets/good-fid-values-25.svg | 0 .../performance/assets/good-lcp-values.svg | 0 .../performance/assets/good-ttfb-values.svg | 0 .../performance/assets/inp-desktop-v2.svg | 0 ...formance-navigation-timing-timestamp-diagram.svg | 0 {src/docs => docs}/performance/performance-index.md | 0 {src/docs => docs}/performance/practice.md | 0 {src/docs => docs}/public/avatar.jpeg | Bin {src/docs => docs}/public/blog/2/immortal.mp3 | Bin {src/docs => docs}/public/home.gif | Bin {src/docs => docs}/resource.md | 0 {src/docs => docs}/source-code.md | 0 {src/docs => docs}/source-code/debounce.md | 0 {src/docs => docs}/source-code/deep-copy.md | 0 {src/docs => docs}/source-code/throttle.md | 0 {src/docs => docs}/thinking.md | 0 {src/docs => docs}/tools.md | 0 {src/docs => docs}/typescript.md | 0 {src/docs => docs}/typescript/utility-types.md | 0 {src/docs => docs}/vue.md | 0 {src/docs => docs}/vue/computed.md | 0 {src/docs => docs}/vue/diff.md | 0 {src/docs => docs}/vue/effect-scope.md | 0 {src/docs => docs}/vue/effect.md | 0 {src/docs => docs}/vue/reactive-effect.md | 0 {src/docs => docs}/vue/reactive.md | 0 {src/docs => docs}/vue/reactivity.md | 0 {src/docs => docs}/vue/ref.md | 0 {src/docs => docs}/vue/router.md | 0 {src/docs => docs}/vue/watch.md | 0 package.json | 6 +++--- src/docs/blog.md | 10 ---------- 124 files changed, 3 insertions(+), 35 deletions(-) rename {src/components => components}/ImgLoader.vue (100%) rename {.vitepress => docs/.vitepress}/config.ts (97%) rename {.vitepress => docs/.vitepress}/head.ts (100%) rename {.vitepress => docs/.vitepress}/nav.ts (56%) rename {.vitepress => docs/.vitepress}/sidebar.ts (88%) rename {.vitepress => docs/.vitepress}/theme/MyLayout.vue (100%) rename {.vitepress => docs/.vitepress}/theme/index.ts (100%) rename {src/docs => docs}/about.md (100%) rename {src/docs => docs}/assets/img/browser/embedded-blink.png (100%) rename {src/docs => docs}/assets/img/browser/parser.png (100%) rename {src/docs => docs}/assets/img/browser/v8.webp (100%) rename {src/docs => docs}/assets/img/browser/v82.png (100%) rename {src/docs => docs}/basic.md (100%) rename {src/docs => docs}/blog/1.md (100%) rename {src/docs => docs}/blog/2.md (100%) rename {src/docs => docs}/blog/2/VoiceVisualization.vue (100%) rename {src/docs => docs}/blog/3.md (100%) rename {src/docs => docs}/blog/3/asyncdefer.svg (100%) rename {src/docs => docs}/blog/4.md (100%) rename {src/docs => docs}/blog/5.md (100%) rename {src/docs => docs}/blog/6.md (100%) rename {src/docs => docs}/browser.md (100%) rename {src/docs => docs}/browser/architecture.md (100%) rename {src/docs => docs}/browser/blink.md (100%) rename {src/docs => docs}/browser/cross-origin.md (100%) rename {src/docs => docs}/browser/event-loop.md (100%) rename {src/docs => docs}/browser/event-loop/1.png (100%) rename {src/docs => docs}/browser/event-loop/2.png (100%) rename {src/docs => docs}/browser/event-loop/3.png (100%) rename {src/docs => docs}/browser/navigation.md (100%) rename {src/docs => docs}/browser/process-and-thread.md (100%) rename {src/docs => docs}/browser/reflow-and-repaint.md (100%) rename {src/docs => docs}/browser/rendering.md (100%) rename {src/docs => docs}/browser/rendering/draw.jpg (100%) rename {src/docs => docs}/browser/rendering/layer.jpg (100%) rename {src/docs => docs}/browser/rendering/layout-1.jpg (100%) rename {src/docs => docs}/browser/rendering/layout-2.jpg (100%) rename {src/docs => docs}/browser/rendering/layout-3.jpg (100%) rename {src/docs => docs}/browser/rendering/layout.jpg (100%) rename {src/docs => docs}/browser/rendering/paint-1.jpg (100%) rename {src/docs => docs}/browser/rendering/paint.jpg (100%) rename {src/docs => docs}/browser/rendering/parse-html-css.jpg (100%) rename {src/docs => docs}/browser/rendering/parse-html-cssom.jpg (100%) rename {src/docs => docs}/browser/rendering/parse-html-dom.jpg (100%) rename {src/docs => docs}/browser/rendering/parse-html-js.jpg (100%) rename {src/docs => docs}/browser/rendering/parse-html.jpg (100%) rename {src/docs => docs}/browser/rendering/raster-1.jpg (100%) rename {src/docs => docs}/browser/rendering/raster.jpg (100%) rename {src/docs => docs}/browser/rendering/reflow.jpg (100%) rename {src/docs => docs}/browser/rendering/render-flow.jpg (100%) rename {src/docs => docs}/browser/rendering/render-flow.png (100%) rename {src/docs => docs}/browser/rendering/rendering-time.png (100%) rename {src/docs => docs}/browser/rendering/repaint.jpg (100%) rename {src/docs => docs}/browser/rendering/style-compute.jpg (100%) rename {src/docs => docs}/browser/rendering/tiling-1.jpg (100%) rename {src/docs => docs}/browser/rendering/tiling.jpg (100%) rename {src/docs => docs}/browser/rendering/transform-1.jpg (100%) rename {src/docs => docs}/browser/rendering/transform-2.jpg (100%) rename {src/docs => docs}/browser/v8-gc.md (100%) rename {src/docs => docs}/browser/v8.md (100%) rename {src/docs => docs}/design-pattern.md (100%) rename {src/docs => docs}/design-pattern/design-patterns.md (100%) rename {src/docs => docs}/design-pattern/principles.md (100%) rename {src/docs => docs}/devops.md (100%) rename {src/docs => docs}/ecmascript.md (100%) rename {src/docs => docs}/ecmascript/2023.md (100%) rename {src/docs => docs}/engineering.md (100%) rename {src/docs => docs}/engineering/vite.md (100%) rename {src/docs => docs}/engineering/webpack-loader.md (100%) rename {src/docs => docs}/engineering/webpack-plugin.md (100%) rename {src/docs => docs}/engineering/webpack.md (100%) rename {src/docs => docs}/index.md (100%) rename {src/docs => docs}/infrastructure.md (100%) rename {src/docs => docs}/javascript.md (100%) rename {src/docs => docs}/javascript/async-await.md (100%) rename {src/docs => docs}/javascript/request-animation-frame.md (100%) rename {src/docs => docs}/javascript/request-idle-callback.md (100%) rename {src/docs => docs}/javascript/type.md (100%) rename {src/docs => docs}/javascript/web-worker.md (100%) rename {src/docs => docs}/leetcode.md (100%) rename {src/docs => docs}/leetcode/easy/1.md (100%) rename {src/docs => docs}/leetcode/easy/9.md (100%) rename {src/docs => docs}/network.md (100%) rename {src/docs => docs}/network/http.md (100%) rename {src/docs => docs}/network/http2.md (100%) rename {src/docs => docs}/network/http3.md (100%) rename {src/docs => docs}/nodejs.md (100%) rename {src/docs => docs}/nodejs/event-loop.md (100%) rename {src/docs => docs}/nodejs/modules.md (100%) rename {src/docs => docs}/performance.md (100%) rename {src/docs => docs}/performance/assets/good-cls-values.svg (100%) rename {src/docs => docs}/performance/assets/good-fcp-values-18.svg (100%) rename {src/docs => docs}/performance/assets/good-fid-values-25.svg (100%) rename {src/docs => docs}/performance/assets/good-lcp-values.svg (100%) rename {src/docs => docs}/performance/assets/good-ttfb-values.svg (100%) rename {src/docs => docs}/performance/assets/inp-desktop-v2.svg (100%) rename {src/docs => docs}/performance/assets/performance-navigation-timing-timestamp-diagram.svg (100%) rename {src/docs => docs}/performance/performance-index.md (100%) rename {src/docs => docs}/performance/practice.md (100%) rename {src/docs => docs}/public/avatar.jpeg (100%) rename {src/docs => docs}/public/blog/2/immortal.mp3 (100%) rename {src/docs => docs}/public/home.gif (100%) rename {src/docs => docs}/resource.md (100%) rename {src/docs => docs}/source-code.md (100%) rename {src/docs => docs}/source-code/debounce.md (100%) rename {src/docs => docs}/source-code/deep-copy.md (100%) rename {src/docs => docs}/source-code/throttle.md (100%) rename {src/docs => docs}/thinking.md (100%) rename {src/docs => docs}/tools.md (100%) rename {src/docs => docs}/typescript.md (100%) rename {src/docs => docs}/typescript/utility-types.md (100%) rename {src/docs => docs}/vue.md (100%) rename {src/docs => docs}/vue/computed.md (100%) rename {src/docs => docs}/vue/diff.md (100%) rename {src/docs => docs}/vue/effect-scope.md (100%) rename {src/docs => docs}/vue/effect.md (100%) rename {src/docs => docs}/vue/reactive-effect.md (100%) rename {src/docs => docs}/vue/reactive.md (100%) rename {src/docs => docs}/vue/reactivity.md (100%) rename {src/docs => docs}/vue/ref.md (100%) rename {src/docs => docs}/vue/router.md (100%) rename {src/docs => docs}/vue/watch.md (100%) delete mode 100644 src/docs/blog.md diff --git a/src/components/ImgLoader.vue b/components/ImgLoader.vue similarity index 100% rename from src/components/ImgLoader.vue rename to components/ImgLoader.vue diff --git a/.vitepress/config.ts b/docs/.vitepress/config.ts similarity index 97% rename from .vitepress/config.ts rename to docs/.vitepress/config.ts index 07b025c..6f1d7d7 100644 --- a/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -25,7 +25,6 @@ export default { lang: 'zh-Hans', title: '前端指北', description: '前端指北是一个分享前端开发技术和 Node.js 开发技术的编程网站。', - srcDir: 'src/docs', markdown: { lineNumbers: true, math: true, mermaid: true }, lastUpdated: true, head, diff --git a/.vitepress/head.ts b/docs/.vitepress/head.ts similarity index 100% rename from .vitepress/head.ts rename to docs/.vitepress/head.ts diff --git a/.vitepress/nav.ts b/docs/.vitepress/nav.ts similarity index 56% rename from .vitepress/nav.ts rename to docs/.vitepress/nav.ts index ddea9a8..322222f 100644 --- a/.vitepress/nav.ts +++ b/docs/.vitepress/nav.ts @@ -8,15 +8,5 @@ export const nav: DefaultTheme.NavItem[] = [ { text: 'Vue 实现原理', link: '/vue' }, { text: '浏览器原理', link: '/browser' }, { text: 'Node.js', link: '/nodejs' }, - // { text: '网络', link: '/network' }, - // { text: '编程思想', link: '/thinking' }, - { text: '博客文章', link: '/blog' }, - // { - // text: '算法', - // link: '/algorithm', - // link: 'https://www.programmercarl.com/', - // }, - // { text: '设计模式', link: '/design-pattern' }, - // { text: '学习资源', link: '/resource' }, { text: '关于我', link: '/about' }, ] diff --git a/.vitepress/sidebar.ts b/docs/.vitepress/sidebar.ts similarity index 88% rename from .vitepress/sidebar.ts rename to docs/.vitepress/sidebar.ts index 309f3ba..dd8d45f 100644 --- a/.vitepress/sidebar.ts +++ b/docs/.vitepress/sidebar.ts @@ -82,17 +82,6 @@ export const sidebar: DefaultTheme.Sidebar = { ], }, ], - '/blog': [ - { - text: '博客文章', - items: [ - { text: '手写实现数组实例方法', link: '/blog/4' }, - { text: 'JavaScript 脚本的加载时机', link: '/blog/3' }, - { text: '音频可视化的实现', link: '/blog/2' }, - { text: '使用 Docker 一键部署带 Let\'s Encrypt SSL 证书的 Nginx', link: '/blog/1' }, - ], - }, - ], '/algorithm': [ { text: '算法', diff --git a/.vitepress/theme/MyLayout.vue b/docs/.vitepress/theme/MyLayout.vue similarity index 100% rename from .vitepress/theme/MyLayout.vue rename to docs/.vitepress/theme/MyLayout.vue diff --git a/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts similarity index 100% rename from .vitepress/theme/index.ts rename to docs/.vitepress/theme/index.ts diff --git a/src/docs/about.md b/docs/about.md similarity index 100% rename from src/docs/about.md rename to docs/about.md diff --git a/src/docs/assets/img/browser/embedded-blink.png b/docs/assets/img/browser/embedded-blink.png similarity index 100% rename from src/docs/assets/img/browser/embedded-blink.png rename to docs/assets/img/browser/embedded-blink.png diff --git a/src/docs/assets/img/browser/parser.png b/docs/assets/img/browser/parser.png similarity index 100% rename from src/docs/assets/img/browser/parser.png rename to docs/assets/img/browser/parser.png diff --git a/src/docs/assets/img/browser/v8.webp b/docs/assets/img/browser/v8.webp similarity index 100% rename from src/docs/assets/img/browser/v8.webp rename to docs/assets/img/browser/v8.webp diff --git a/src/docs/assets/img/browser/v82.png b/docs/assets/img/browser/v82.png similarity index 100% rename from src/docs/assets/img/browser/v82.png rename to docs/assets/img/browser/v82.png diff --git a/src/docs/basic.md b/docs/basic.md similarity index 100% rename from src/docs/basic.md rename to docs/basic.md diff --git a/src/docs/blog/1.md b/docs/blog/1.md similarity index 100% rename from src/docs/blog/1.md rename to docs/blog/1.md diff --git a/src/docs/blog/2.md b/docs/blog/2.md similarity index 100% rename from src/docs/blog/2.md rename to docs/blog/2.md diff --git a/src/docs/blog/2/VoiceVisualization.vue b/docs/blog/2/VoiceVisualization.vue similarity index 100% rename from src/docs/blog/2/VoiceVisualization.vue rename to docs/blog/2/VoiceVisualization.vue diff --git a/src/docs/blog/3.md b/docs/blog/3.md similarity index 100% rename from src/docs/blog/3.md rename to docs/blog/3.md diff --git a/src/docs/blog/3/asyncdefer.svg b/docs/blog/3/asyncdefer.svg similarity index 100% rename from src/docs/blog/3/asyncdefer.svg rename to docs/blog/3/asyncdefer.svg diff --git a/src/docs/blog/4.md b/docs/blog/4.md similarity index 100% rename from src/docs/blog/4.md rename to docs/blog/4.md diff --git a/src/docs/blog/5.md b/docs/blog/5.md similarity index 100% rename from src/docs/blog/5.md rename to docs/blog/5.md diff --git a/src/docs/blog/6.md b/docs/blog/6.md similarity index 100% rename from src/docs/blog/6.md rename to docs/blog/6.md diff --git a/src/docs/browser.md b/docs/browser.md similarity index 100% rename from src/docs/browser.md rename to docs/browser.md diff --git a/src/docs/browser/architecture.md b/docs/browser/architecture.md similarity index 100% rename from src/docs/browser/architecture.md rename to docs/browser/architecture.md diff --git a/src/docs/browser/blink.md b/docs/browser/blink.md similarity index 100% rename from src/docs/browser/blink.md rename to docs/browser/blink.md diff --git a/src/docs/browser/cross-origin.md b/docs/browser/cross-origin.md similarity index 100% rename from src/docs/browser/cross-origin.md rename to docs/browser/cross-origin.md diff --git a/src/docs/browser/event-loop.md b/docs/browser/event-loop.md similarity index 100% rename from src/docs/browser/event-loop.md rename to docs/browser/event-loop.md diff --git a/src/docs/browser/event-loop/1.png b/docs/browser/event-loop/1.png similarity index 100% rename from src/docs/browser/event-loop/1.png rename to docs/browser/event-loop/1.png diff --git a/src/docs/browser/event-loop/2.png b/docs/browser/event-loop/2.png similarity index 100% rename from src/docs/browser/event-loop/2.png rename to docs/browser/event-loop/2.png diff --git a/src/docs/browser/event-loop/3.png b/docs/browser/event-loop/3.png similarity index 100% rename from src/docs/browser/event-loop/3.png rename to docs/browser/event-loop/3.png diff --git a/src/docs/browser/navigation.md b/docs/browser/navigation.md similarity index 100% rename from src/docs/browser/navigation.md rename to docs/browser/navigation.md diff --git a/src/docs/browser/process-and-thread.md b/docs/browser/process-and-thread.md similarity index 100% rename from src/docs/browser/process-and-thread.md rename to docs/browser/process-and-thread.md diff --git a/src/docs/browser/reflow-and-repaint.md b/docs/browser/reflow-and-repaint.md similarity index 100% rename from src/docs/browser/reflow-and-repaint.md rename to docs/browser/reflow-and-repaint.md diff --git a/src/docs/browser/rendering.md b/docs/browser/rendering.md similarity index 100% rename from src/docs/browser/rendering.md rename to docs/browser/rendering.md diff --git a/src/docs/browser/rendering/draw.jpg b/docs/browser/rendering/draw.jpg similarity index 100% rename from src/docs/browser/rendering/draw.jpg rename to docs/browser/rendering/draw.jpg diff --git a/src/docs/browser/rendering/layer.jpg b/docs/browser/rendering/layer.jpg similarity index 100% rename from src/docs/browser/rendering/layer.jpg rename to docs/browser/rendering/layer.jpg diff --git a/src/docs/browser/rendering/layout-1.jpg b/docs/browser/rendering/layout-1.jpg similarity index 100% rename from src/docs/browser/rendering/layout-1.jpg rename to docs/browser/rendering/layout-1.jpg diff --git a/src/docs/browser/rendering/layout-2.jpg b/docs/browser/rendering/layout-2.jpg similarity index 100% rename from src/docs/browser/rendering/layout-2.jpg rename to docs/browser/rendering/layout-2.jpg diff --git a/src/docs/browser/rendering/layout-3.jpg b/docs/browser/rendering/layout-3.jpg similarity index 100% rename from src/docs/browser/rendering/layout-3.jpg rename to docs/browser/rendering/layout-3.jpg diff --git a/src/docs/browser/rendering/layout.jpg b/docs/browser/rendering/layout.jpg similarity index 100% rename from src/docs/browser/rendering/layout.jpg rename to docs/browser/rendering/layout.jpg diff --git a/src/docs/browser/rendering/paint-1.jpg b/docs/browser/rendering/paint-1.jpg similarity index 100% rename from src/docs/browser/rendering/paint-1.jpg rename to docs/browser/rendering/paint-1.jpg diff --git a/src/docs/browser/rendering/paint.jpg b/docs/browser/rendering/paint.jpg similarity index 100% rename from src/docs/browser/rendering/paint.jpg rename to docs/browser/rendering/paint.jpg diff --git a/src/docs/browser/rendering/parse-html-css.jpg b/docs/browser/rendering/parse-html-css.jpg similarity index 100% rename from src/docs/browser/rendering/parse-html-css.jpg rename to docs/browser/rendering/parse-html-css.jpg diff --git a/src/docs/browser/rendering/parse-html-cssom.jpg b/docs/browser/rendering/parse-html-cssom.jpg similarity index 100% rename from src/docs/browser/rendering/parse-html-cssom.jpg rename to docs/browser/rendering/parse-html-cssom.jpg diff --git a/src/docs/browser/rendering/parse-html-dom.jpg b/docs/browser/rendering/parse-html-dom.jpg similarity index 100% rename from src/docs/browser/rendering/parse-html-dom.jpg rename to docs/browser/rendering/parse-html-dom.jpg diff --git a/src/docs/browser/rendering/parse-html-js.jpg b/docs/browser/rendering/parse-html-js.jpg similarity index 100% rename from src/docs/browser/rendering/parse-html-js.jpg rename to docs/browser/rendering/parse-html-js.jpg diff --git a/src/docs/browser/rendering/parse-html.jpg b/docs/browser/rendering/parse-html.jpg similarity index 100% rename from src/docs/browser/rendering/parse-html.jpg rename to docs/browser/rendering/parse-html.jpg diff --git a/src/docs/browser/rendering/raster-1.jpg b/docs/browser/rendering/raster-1.jpg similarity index 100% rename from src/docs/browser/rendering/raster-1.jpg rename to docs/browser/rendering/raster-1.jpg diff --git a/src/docs/browser/rendering/raster.jpg b/docs/browser/rendering/raster.jpg similarity index 100% rename from src/docs/browser/rendering/raster.jpg rename to docs/browser/rendering/raster.jpg diff --git a/src/docs/browser/rendering/reflow.jpg b/docs/browser/rendering/reflow.jpg similarity index 100% rename from src/docs/browser/rendering/reflow.jpg rename to docs/browser/rendering/reflow.jpg diff --git a/src/docs/browser/rendering/render-flow.jpg b/docs/browser/rendering/render-flow.jpg similarity index 100% rename from src/docs/browser/rendering/render-flow.jpg rename to docs/browser/rendering/render-flow.jpg diff --git a/src/docs/browser/rendering/render-flow.png b/docs/browser/rendering/render-flow.png similarity index 100% rename from src/docs/browser/rendering/render-flow.png rename to docs/browser/rendering/render-flow.png diff --git a/src/docs/browser/rendering/rendering-time.png b/docs/browser/rendering/rendering-time.png similarity index 100% rename from src/docs/browser/rendering/rendering-time.png rename to docs/browser/rendering/rendering-time.png diff --git a/src/docs/browser/rendering/repaint.jpg b/docs/browser/rendering/repaint.jpg similarity index 100% rename from src/docs/browser/rendering/repaint.jpg rename to docs/browser/rendering/repaint.jpg diff --git a/src/docs/browser/rendering/style-compute.jpg b/docs/browser/rendering/style-compute.jpg similarity index 100% rename from src/docs/browser/rendering/style-compute.jpg rename to docs/browser/rendering/style-compute.jpg diff --git a/src/docs/browser/rendering/tiling-1.jpg b/docs/browser/rendering/tiling-1.jpg similarity index 100% rename from src/docs/browser/rendering/tiling-1.jpg rename to docs/browser/rendering/tiling-1.jpg diff --git a/src/docs/browser/rendering/tiling.jpg b/docs/browser/rendering/tiling.jpg similarity index 100% rename from src/docs/browser/rendering/tiling.jpg rename to docs/browser/rendering/tiling.jpg diff --git a/src/docs/browser/rendering/transform-1.jpg b/docs/browser/rendering/transform-1.jpg similarity index 100% rename from src/docs/browser/rendering/transform-1.jpg rename to docs/browser/rendering/transform-1.jpg diff --git a/src/docs/browser/rendering/transform-2.jpg b/docs/browser/rendering/transform-2.jpg similarity index 100% rename from src/docs/browser/rendering/transform-2.jpg rename to docs/browser/rendering/transform-2.jpg diff --git a/src/docs/browser/v8-gc.md b/docs/browser/v8-gc.md similarity index 100% rename from src/docs/browser/v8-gc.md rename to docs/browser/v8-gc.md diff --git a/src/docs/browser/v8.md b/docs/browser/v8.md similarity index 100% rename from src/docs/browser/v8.md rename to docs/browser/v8.md diff --git a/src/docs/design-pattern.md b/docs/design-pattern.md similarity index 100% rename from src/docs/design-pattern.md rename to docs/design-pattern.md diff --git a/src/docs/design-pattern/design-patterns.md b/docs/design-pattern/design-patterns.md similarity index 100% rename from src/docs/design-pattern/design-patterns.md rename to docs/design-pattern/design-patterns.md diff --git a/src/docs/design-pattern/principles.md b/docs/design-pattern/principles.md similarity index 100% rename from src/docs/design-pattern/principles.md rename to docs/design-pattern/principles.md diff --git a/src/docs/devops.md b/docs/devops.md similarity index 100% rename from src/docs/devops.md rename to docs/devops.md diff --git a/src/docs/ecmascript.md b/docs/ecmascript.md similarity index 100% rename from src/docs/ecmascript.md rename to docs/ecmascript.md diff --git a/src/docs/ecmascript/2023.md b/docs/ecmascript/2023.md similarity index 100% rename from src/docs/ecmascript/2023.md rename to docs/ecmascript/2023.md diff --git a/src/docs/engineering.md b/docs/engineering.md similarity index 100% rename from src/docs/engineering.md rename to docs/engineering.md diff --git a/src/docs/engineering/vite.md b/docs/engineering/vite.md similarity index 100% rename from src/docs/engineering/vite.md rename to docs/engineering/vite.md diff --git a/src/docs/engineering/webpack-loader.md b/docs/engineering/webpack-loader.md similarity index 100% rename from src/docs/engineering/webpack-loader.md rename to docs/engineering/webpack-loader.md diff --git a/src/docs/engineering/webpack-plugin.md b/docs/engineering/webpack-plugin.md similarity index 100% rename from src/docs/engineering/webpack-plugin.md rename to docs/engineering/webpack-plugin.md diff --git a/src/docs/engineering/webpack.md b/docs/engineering/webpack.md similarity index 100% rename from src/docs/engineering/webpack.md rename to docs/engineering/webpack.md diff --git a/src/docs/index.md b/docs/index.md similarity index 100% rename from src/docs/index.md rename to docs/index.md diff --git a/src/docs/infrastructure.md b/docs/infrastructure.md similarity index 100% rename from src/docs/infrastructure.md rename to docs/infrastructure.md diff --git a/src/docs/javascript.md b/docs/javascript.md similarity index 100% rename from src/docs/javascript.md rename to docs/javascript.md diff --git a/src/docs/javascript/async-await.md b/docs/javascript/async-await.md similarity index 100% rename from src/docs/javascript/async-await.md rename to docs/javascript/async-await.md diff --git a/src/docs/javascript/request-animation-frame.md b/docs/javascript/request-animation-frame.md similarity index 100% rename from src/docs/javascript/request-animation-frame.md rename to docs/javascript/request-animation-frame.md diff --git a/src/docs/javascript/request-idle-callback.md b/docs/javascript/request-idle-callback.md similarity index 100% rename from src/docs/javascript/request-idle-callback.md rename to docs/javascript/request-idle-callback.md diff --git a/src/docs/javascript/type.md b/docs/javascript/type.md similarity index 100% rename from src/docs/javascript/type.md rename to docs/javascript/type.md diff --git a/src/docs/javascript/web-worker.md b/docs/javascript/web-worker.md similarity index 100% rename from src/docs/javascript/web-worker.md rename to docs/javascript/web-worker.md diff --git a/src/docs/leetcode.md b/docs/leetcode.md similarity index 100% rename from src/docs/leetcode.md rename to docs/leetcode.md diff --git a/src/docs/leetcode/easy/1.md b/docs/leetcode/easy/1.md similarity index 100% rename from src/docs/leetcode/easy/1.md rename to docs/leetcode/easy/1.md diff --git a/src/docs/leetcode/easy/9.md b/docs/leetcode/easy/9.md similarity index 100% rename from src/docs/leetcode/easy/9.md rename to docs/leetcode/easy/9.md diff --git a/src/docs/network.md b/docs/network.md similarity index 100% rename from src/docs/network.md rename to docs/network.md diff --git a/src/docs/network/http.md b/docs/network/http.md similarity index 100% rename from src/docs/network/http.md rename to docs/network/http.md diff --git a/src/docs/network/http2.md b/docs/network/http2.md similarity index 100% rename from src/docs/network/http2.md rename to docs/network/http2.md diff --git a/src/docs/network/http3.md b/docs/network/http3.md similarity index 100% rename from src/docs/network/http3.md rename to docs/network/http3.md diff --git a/src/docs/nodejs.md b/docs/nodejs.md similarity index 100% rename from src/docs/nodejs.md rename to docs/nodejs.md diff --git a/src/docs/nodejs/event-loop.md b/docs/nodejs/event-loop.md similarity index 100% rename from src/docs/nodejs/event-loop.md rename to docs/nodejs/event-loop.md diff --git a/src/docs/nodejs/modules.md b/docs/nodejs/modules.md similarity index 100% rename from src/docs/nodejs/modules.md rename to docs/nodejs/modules.md diff --git a/src/docs/performance.md b/docs/performance.md similarity index 100% rename from src/docs/performance.md rename to docs/performance.md diff --git a/src/docs/performance/assets/good-cls-values.svg b/docs/performance/assets/good-cls-values.svg similarity index 100% rename from src/docs/performance/assets/good-cls-values.svg rename to docs/performance/assets/good-cls-values.svg diff --git a/src/docs/performance/assets/good-fcp-values-18.svg b/docs/performance/assets/good-fcp-values-18.svg similarity index 100% rename from src/docs/performance/assets/good-fcp-values-18.svg rename to docs/performance/assets/good-fcp-values-18.svg diff --git a/src/docs/performance/assets/good-fid-values-25.svg b/docs/performance/assets/good-fid-values-25.svg similarity index 100% rename from src/docs/performance/assets/good-fid-values-25.svg rename to docs/performance/assets/good-fid-values-25.svg diff --git a/src/docs/performance/assets/good-lcp-values.svg b/docs/performance/assets/good-lcp-values.svg similarity index 100% rename from src/docs/performance/assets/good-lcp-values.svg rename to docs/performance/assets/good-lcp-values.svg diff --git a/src/docs/performance/assets/good-ttfb-values.svg b/docs/performance/assets/good-ttfb-values.svg similarity index 100% rename from src/docs/performance/assets/good-ttfb-values.svg rename to docs/performance/assets/good-ttfb-values.svg diff --git a/src/docs/performance/assets/inp-desktop-v2.svg b/docs/performance/assets/inp-desktop-v2.svg similarity index 100% rename from src/docs/performance/assets/inp-desktop-v2.svg rename to docs/performance/assets/inp-desktop-v2.svg diff --git a/src/docs/performance/assets/performance-navigation-timing-timestamp-diagram.svg b/docs/performance/assets/performance-navigation-timing-timestamp-diagram.svg similarity index 100% rename from src/docs/performance/assets/performance-navigation-timing-timestamp-diagram.svg rename to docs/performance/assets/performance-navigation-timing-timestamp-diagram.svg diff --git a/src/docs/performance/performance-index.md b/docs/performance/performance-index.md similarity index 100% rename from src/docs/performance/performance-index.md rename to docs/performance/performance-index.md diff --git a/src/docs/performance/practice.md b/docs/performance/practice.md similarity index 100% rename from src/docs/performance/practice.md rename to docs/performance/practice.md diff --git a/src/docs/public/avatar.jpeg b/docs/public/avatar.jpeg similarity index 100% rename from src/docs/public/avatar.jpeg rename to docs/public/avatar.jpeg diff --git a/src/docs/public/blog/2/immortal.mp3 b/docs/public/blog/2/immortal.mp3 similarity index 100% rename from src/docs/public/blog/2/immortal.mp3 rename to docs/public/blog/2/immortal.mp3 diff --git a/src/docs/public/home.gif b/docs/public/home.gif similarity index 100% rename from src/docs/public/home.gif rename to docs/public/home.gif diff --git a/src/docs/resource.md b/docs/resource.md similarity index 100% rename from src/docs/resource.md rename to docs/resource.md diff --git a/src/docs/source-code.md b/docs/source-code.md similarity index 100% rename from src/docs/source-code.md rename to docs/source-code.md diff --git a/src/docs/source-code/debounce.md b/docs/source-code/debounce.md similarity index 100% rename from src/docs/source-code/debounce.md rename to docs/source-code/debounce.md diff --git a/src/docs/source-code/deep-copy.md b/docs/source-code/deep-copy.md similarity index 100% rename from src/docs/source-code/deep-copy.md rename to docs/source-code/deep-copy.md diff --git a/src/docs/source-code/throttle.md b/docs/source-code/throttle.md similarity index 100% rename from src/docs/source-code/throttle.md rename to docs/source-code/throttle.md diff --git a/src/docs/thinking.md b/docs/thinking.md similarity index 100% rename from src/docs/thinking.md rename to docs/thinking.md diff --git a/src/docs/tools.md b/docs/tools.md similarity index 100% rename from src/docs/tools.md rename to docs/tools.md diff --git a/src/docs/typescript.md b/docs/typescript.md similarity index 100% rename from src/docs/typescript.md rename to docs/typescript.md diff --git a/src/docs/typescript/utility-types.md b/docs/typescript/utility-types.md similarity index 100% rename from src/docs/typescript/utility-types.md rename to docs/typescript/utility-types.md diff --git a/src/docs/vue.md b/docs/vue.md similarity index 100% rename from src/docs/vue.md rename to docs/vue.md diff --git a/src/docs/vue/computed.md b/docs/vue/computed.md similarity index 100% rename from src/docs/vue/computed.md rename to docs/vue/computed.md diff --git a/src/docs/vue/diff.md b/docs/vue/diff.md similarity index 100% rename from src/docs/vue/diff.md rename to docs/vue/diff.md diff --git a/src/docs/vue/effect-scope.md b/docs/vue/effect-scope.md similarity index 100% rename from src/docs/vue/effect-scope.md rename to docs/vue/effect-scope.md diff --git a/src/docs/vue/effect.md b/docs/vue/effect.md similarity index 100% rename from src/docs/vue/effect.md rename to docs/vue/effect.md diff --git a/src/docs/vue/reactive-effect.md b/docs/vue/reactive-effect.md similarity index 100% rename from src/docs/vue/reactive-effect.md rename to docs/vue/reactive-effect.md diff --git a/src/docs/vue/reactive.md b/docs/vue/reactive.md similarity index 100% rename from src/docs/vue/reactive.md rename to docs/vue/reactive.md diff --git a/src/docs/vue/reactivity.md b/docs/vue/reactivity.md similarity index 100% rename from src/docs/vue/reactivity.md rename to docs/vue/reactivity.md diff --git a/src/docs/vue/ref.md b/docs/vue/ref.md similarity index 100% rename from src/docs/vue/ref.md rename to docs/vue/ref.md diff --git a/src/docs/vue/router.md b/docs/vue/router.md similarity index 100% rename from src/docs/vue/router.md rename to docs/vue/router.md diff --git a/src/docs/vue/watch.md b/docs/vue/watch.md similarity index 100% rename from src/docs/vue/watch.md rename to docs/vue/watch.md diff --git a/package.json b/package.json index 862237b..e5f000f 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,9 @@ "author": "hojas", "license": "MIT", "scripts": { - "dev": "vitepress dev", - "build": "vitepress build", - "serve": "vitepress serve --host 0.0.0.0 --port 3000" + "dev": "vitepress dev docs", + "build": "vitepress build docs", + "serve": "vitepress serve docs --host 0.0.0.0 --port 3000" }, "dependencies": { "@element-plus/icons-vue": "^2.3.1", diff --git a/src/docs/blog.md b/src/docs/blog.md deleted file mode 100644 index 5c6473f..0000000 --- a/src/docs/blog.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -title: 博客文章 ---- - -# 博客文章 - -- [手写实现数组实例方法](./blog/4.md) -- [JavaScript 脚本的加载时机](./blog/3.md) -- [使用 Vue 实现音频可视化](./blog/2.md) -- [使用 Docker 一键部署带 Let's Encrypt SSL 证书的 Nginx](./blog/1.md)