Skip to content

Commit c7acf9f

Browse files
committed
docs: update index
1 parent ad954ee commit c7acf9f

5 files changed

Lines changed: 1545 additions & 87 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {defineConfig} from 'vitepress'
2+
import {withMermaid} from 'vitepress-plugin-mermaid'
23

34
// https://vitepress.dev/reference/site-config
4-
export default defineConfig({
5+
export default withMermaid(defineConfig({
56
base: '/CrawlerTutorial/',
67
title: "程序员阿江-Relakkes的爬虫教程",
78
description: "程序员阿江-Relakkes的爬虫教程",
@@ -63,6 +64,23 @@ export default defineConfig({
6364
link: '/爬虫入门/12_爬虫入门实战5_编写易于维护的爬虫代码'
6465
}
6566
]
67+
},
68+
{
69+
text: 'Python爬虫进阶',
70+
collapsed: false,
71+
items: [
72+
{text: '01_工程化爬虫开发规范', link: '/爬虫进价/01_工程化爬虫开发规范'},
73+
{text: '02_反爬虫对抗基础_请求伪装', link: '/爬虫进价/02_反爬虫对抗基础_请求伪装'},
74+
{text: '03_代理IP的使用与管理', link: '/爬虫进价/03_代理IP的使用与管理'},
75+
{text: '04_Playwright浏览器自动化入门', link: '/爬虫进价/04_Playwright浏览器自动化入门'},
76+
{text: '05_Playwright进阶_反检测与性能优化', link: '/爬虫进价/05_Playwright进阶_反检测与性能优化'},
77+
{text: '06_登录认证_Cookie与Session管理', link: '/爬虫进价/06_登录认证_Cookie与Session管理'},
78+
{text: '07_登录认证_扫码与短信登录实现', link: '/爬虫进价/07_登录认证_扫码与短信登录实现'},
79+
{text: '08_验证码识别与处理', link: '/爬虫进价/08_验证码识别与处理'},
80+
{text: '09_数据清洗与预处理', link: '/爬虫进价/09_数据清洗与预处理'},
81+
{text: '10_数据分析与可视化', link: '/爬虫进价/10_数据分析与可视化'},
82+
{text: '11_进阶综合实战项目', link: '/爬虫进价/11_进阶综合实战项目'}
83+
]
6684
}
6785
],
6886

@@ -71,4 +89,4 @@ export default defineConfig({
7189
]
7290
},
7391

74-
})
92+
}))

docs/.vitepress/theme/DynamicAds.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const fetchAds = async () => {
1111
return [
1212
{
1313
id: 1,
14-
imageUrl: 'https://nm.zizhi1.com/static/img/40097e36a617f58db1dd132b5841cb1e.ad_pla1.webp',
15-
landingUrl: 'https://nanmicoder.github.io/MediaCrawler/%E4%BD%9C%E8%80%85%E4%BB%8B%E7%BB%8D.html',
16-
text: '⚡️【广告位招租】⚡️投放广告请联系微信:yzglan'
14+
imageUrl: 'https://github.com/NanmiCoder/MediaCrawler/raw/main/docs/static/images/MediaCrawlerPro.jpg',
15+
landingUrl: 'https://github.com/MediaCrawlerPro',
16+
text: '👏欢迎大家来订阅MediaCrawlerPro源代码'
1717
}
1818
]
1919
}
@@ -63,7 +63,8 @@ onUnmounted(() => {
6363
}
6464
6565
.ad-image {
66-
max-width: 130px;
66+
max-width: 100%;
67+
width: 280px;
6768
height: auto;
6869
margin-bottom: 0.5rem;
6970
}

docs/.vitepress/theme/custom.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
:root {
77
--vp-sidebar-width: 285px;
88
--vp-sidebar-bg-color: var(--vp-c-bg-alt);
9-
}
9+
--vp-aside-width: 300px;
10+
}

0 commit comments

Comments
 (0)