Giter Site home page Giter Site logo

feishu2md's Introduction

Feishu2Md

这是一个下载飞书文档为 Markdown 文件的工具,使用 Go 语言实现。

如何使用

借助 Go 语言跨平台的特性,已预先编译好了 x86 平台的可执行文件,可以在 Release 中下载,并将相应平台的 feishu2md 可执行文件放置在 PATH 路径中即可。

查阅帮助文档:

$ feishu2md -h
NAME:
   feishu2md - download feishu doc as markdown file

USAGE:
   feishu2md [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config    generate config file (default: false)
   --help, -h  show help (default: false)

生成配置文件:

通过 feishu2md --config 命令即可生成该工具的配置文件。生成的配置文件路径为:

  • Windows: %AppData%/feishu2md/config.json

  • Linux: $XDG_CONFIG_HOME/feishu2md/config.json

  • Mac: $XDG_CONFIG_HOME/feishu2md/config.json

如无配置 XDG_CONFIG_HOME 环境变量,则默认为 ~/.config 目录。

生成的配置文件需要填写 APP ID 和 APP SECRET 信息,请参考 飞书官方文档 获取。

Image Dir 为存放文档中图片的文件夹名称。

{
 "feishu": {
  "app_id": "",
  "app_secret": ""
 },
 "output": {
  "image_dir": "static"
 }
}

下载为 Markdown:

通过 feishu2md <your feishu doc url> 直接下载,文档链接可以通过 分享 > 开启链接分享 > 复制链接 获得。

示例:

$ feishu2md https://domain.feishu.cn/docs/doctoken

感谢

feishu2md's People

Contributors

wsine 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.