Git Product home page Git Product logo

vuepressblog's Introduction

介绍

这是一个 VuePress 搭建的文档

如何使用

# 1. 首先拷贝该项目
git clone [email protected]:ynzy/VuePressBlog.git

# 2. 安装依赖
yarn add # 或者 npm i

# 3. 本地运行查看(在运行前请先进行相关配置)
yarn docs:dev # 或者 npm run docs:dev

# 4. 推送到 github 的 gh 分支
yarn deploy # 或者 npm run deploy

配置

在使用该项目之前需要进行配置 因为本地尚未推送 Valine 的 appId 和 appKey 所以需要在 config 目录下新建 secretKeyConf.js 文件并暴露先关内容

1. secretKeyConf 配置项

# Valine
1. appId
2. appKey
# google analytics
3. ga
# google 网站认证
4. googleSearchConsole

2. 修改 node_modules 文件

  1. 在默认主题上添加 Valine 组件

    路径为

    # node_modules/@vuepress/theme-default/components/Page.vue

    修改内容为

        </div>
    
        <slot name="bottom"/>
        <!-- 仅需添加 <Valine></Valine> 即可 -->
        <Valine></Valine>
      </main>
    </template>

vuepressblog's People

Contributors

ynzy avatar yunyifei avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.