VuePress30分钟制作一个Vue静态网站

1、vuepress新手入门课程(一)

1-1、vuepress简介与安装

  • https://www.vuepress.cn/

  • https://node.org/zh-ch

  • node -v

  • npm config set registry=http://registry.npm.taobao.org

  • npm config list

  • npm install -g yarn 安装yarn

  • npm init

  • npm add -D vuepress

  • mkdir docs && echo '# Hello VuePress' > docs/README.md

  • {
      "name": "mao2022",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "author": "",
      "license": "ISC",
      "devDependencies": {
        "vuepress": "^1.8.2"
      },
      "scripts": {
        "docs:dev": "vuepress dev docs",
        "docs:build": "vuepress build docs"
      }
    }
    
  • npm run docs:dev

1-2、目录配置

module.exports={
    title:"mao2022",
    description:"学习vuepress",
    head:[
        ['link',{rel:"icon",href:"./logo.jpg"}]
    ]
}

1-3、主题配置01

module.exports={
    title:"mao2022",
    description:"学习vuepress",
    head:[
        ['link',{rel:"icon",href:"./logo.png"}]
    ],
    themeConfig:{
        logo:"./logo.png",
        nav:[
            {text:'首页','link':'/'},
            {text:'前端','link':'/front/'},
            {text:'后端','link':'/after/'},
            {text:'CSDN','link':'https://blog.csdn.net/weixin_42148729'},
        ]
    }
}

1-4、主题配置02

module.exports={
    title:"mao2022",
    description:"学习vuepress",
    head:[
        ['link',{rel:"icon",href:"./logo.png"}]
    ],
    themeConfig:{
        logo:"./logo.png",
        navbar: true,
        nav:[
            {text:'首页','link':'/'},
            {text:'前端','link':'/front/',items:[
                {text:'Vuepress','link':'/vuepress/'},
                {text:'HTML','link':'/html/'},
                {text:'CSS','link':'/css/'},
            ]},
            {text:'后端','link':'/after/',items:[
                {
                    text:'理论知识',
                    items:[
                        {text:'PHP','link':'/php/'},
                        {text:'PHP插件','link':'/phplib/'}
                    ]
                },{
                    text:'框架',
                    items:[
                        {text:'ThinkPHP','link':'/thinkphp/'},
                        {text:'Laravel','link':'/laravel/'}
                    ]
                }
            ]},
            {text:'CSDN','link':'https://blog.csdn.net/weixin_42148729'},
        ],
        sidebar:[
            ['/','首页'],
            {
                title:'前端',
                path:'/front/',
                children:[
                    ['/vuepress/','Vuepress'],
                    ['/html/','HTML'],
                    ['/css/','CSS']
                ]
            },
            
        ]
    },
}

第2章 vuepress新手入门课程(二)

2-1、markdown语法01

2-2、markdown语法02

ID  | name
:-- | :-:
1   | bob

2-3、markdown拓展

1、自定义容器

2、```html {9}

image-20210828150447852

3、emoji表情

:1234:
:100:

image-20210828152626446

第3章 vuepress新手入门课程(三)

3-1、更多配置01

3-2、更多配置02

vuepress新手入门课程(四)

4-1、插件

4-2、主题

4-3、总结

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

互联网小队

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值