dongyou8368 2015-08-18 18:09
浏览 45

当使用mdblue文件使用md文件和模板文件生成output.html时,生成的文件为空

I went through following steps:

  1. Install go and add $GOPATH env variable to a new empty directory.
  2. Install snowcrash. Parses markdown file according to apiblueprint spec.
  3. Install mercurial. On a Mac using homebrew use: brew install hg

  4. Install these Go modules:

  5. go get bitbucket.org/pkg/inflect

  6. go get github.com/hashicorp/go-version

  7. go get github.com/russross/blackfriday

  8. symlink this repo's generator directory to $GOPATH/src/generator

  9. Run the html generator:

    a. cd $GOPATH/src/generator/main

    b. go run main.go -spec ~/projects/repo/filename.md -template ~/projects/repo/filename.tmpl -out test.html

  • 写回答

1条回答 默认 最新

  • dongzhuang6247 2015-11-26 11:10
    关注

    I'd recommend you take a look at aglio, an API Blueprint renderer which can render your API Blueprint as HTML.

    $ npm install -g aglio
    $ aglio -i input.apib -o output.html
    

    This should do everything you need.

    评论

报告相同问题?

悬赏问题

  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能