如何为所有已安装的gem重新构建rdoc ?

时间:2022-03-18 07:15:34

I have several gems installed in multiple locations.

我有几个宝石安装在多个地点。

What is the hard/easy way to generate/re-generate:

生成/重新生成的困难/容易方法是什么?

  • rdoc for all these installed gems, all at once?
  • rdoc为所有这些已安装的宝石,所有一次?
  • yardoc for all these installed gems, all at once?
  • 雅多克为所有这些已安装的宝石,所有一次?

2 个解决方案

#1


9  

yard gems

or

sudo yard gems

should do the job. You may also want to use the --rebuild flag. If you want to run a local Yardoc server for your installed gems, then run

应该做这项工作。您可能还想使用-rebuild标志。如果您想要为您安装的gems运行本地Yardoc服务器,那么就运行它

yard server -g

#2


23  

Have you tried one of these?

你试过这种吗?

gem rdoc --all
gem rdoc --all --overwrite

#1


9  

yard gems

or

sudo yard gems

should do the job. You may also want to use the --rebuild flag. If you want to run a local Yardoc server for your installed gems, then run

应该做这项工作。您可能还想使用-rebuild标志。如果您想要为您安装的gems运行本地Yardoc服务器,那么就运行它

yard server -g

#2


23  

Have you tried one of these?

你试过这种吗?

gem rdoc --all
gem rdoc --all --overwrite