GithubHelp home page GithubHelp logo

demo-auto-wiki's Introduction

使用说明

  1. 配置信息(config/index.js
  2. 运行 node index.js
  3. 将生成的 markdown 文件 (dist/content.md),拷贝到知识库文章编辑器上
  4. 使用 extension-wiki-upload-images 插件在 chrome 浏览器上批量上传图片文件,images/4/{config.document_id} 目录下的图片
  • 打开 chrome://extensions/
  • 开启右上角【开发者模式】
  • 点击左上角【加载已解压的扩展程序】,选择 extension-wiki-upload-images 所在的目录

首次运行

  • 安装依赖,运行 PUPPETEER_SKIP_DOWNLOAD=true npm install
  • 下载最新 chromium,并解压,在 config/index.js 下指定 puppeteer.executablePath 字段,例如:[解压文件路径]/Chromium.app/Contents/MacOS/Chromium

输出结果

  1. 生成的 markdown 文件保存在 dist/content.md 文件中
  2. 需要下载的图片列表信息保存在 dist/images.json 文件中
  3. 未下载成功的图片列表信息保存在 dist/undownload_images.json 文件中
  4. 下载的图片文件保存在 images/4/{config.document_id} 目录下

其他建议

安装vscode插件:markdown-preview-enhanced (可预览最终输出的 markdown 文件)

demo-auto-wiki's People

Contributors

ruanhuhu avatar

Watchers

 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.