Code Monkey home page Code Monkey logo

martech's Introduction

UG 对外文档

新增文档流程

  • 新增文档 .md 文件,放置到 ./docs 下的非 .vuepress 目录
  • README.md文件为所在文件夹的默认文件,即可通过 /folder/ 直接访问。如 ./folder-b/README.md 可通过 https://${host}/docs/folder-b/ 访问
  • 文档标题由文档内第一个标题决定,与文件名无关

新增侧边栏

  • 修改 .vuepress/config.jssidebar 配置项
  • 根目录名由 title 决定
  • 目录下的文件名由 children 中文档标题决定
  • 文件展开的层级结构,由文档内的标题结构决定
  • 详见 VuePress - 侧边栏

新增导航栏

Markdown插件

当前仅支持Markdown基本语法和mermaidjs绘图,如需引入其他插件:

  • yarn add -D ***-plugin
  • 修改 .vuepress/config.jsplugins 配置项

开发 & 调试

# 进入docs目录
cd ./docs
# 安装vuepress相关依赖
yarn
# 启动dev模式
yarn serve
# 访问devServer,默认8080端口
open http://localhost:8080/docs

构建 & 发布

# 进入docs目录
cd ./docs
# 安装vuepress相关依赖
yarn
# vuepress 构建, 产物会直接放置到 ./cmd/web/docs 目录,方便 Gin 路由访问
yarn build
# 启动 ./cmd/web 服务,访问 docs 路径
cd ./cmd/web
go run web.go
open http://localhost:8086/docs

go get -v package from git.code.oa.com

export GOPROXY="https://goproxy.cn,direct"
export GOPRIVATE="git.code.oa.com"
go get -v git.code.oa.com/tme-server-component/kg_growth_open

martech's People

Contributors

tencent-attribution 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.