简体   繁体   English

“在Github上” Rails API文档链接发生了什么?

[英]What happened to the “on Github” rails API documentation links?

A few months ago there was a feature in the Rails API documentation that let you visit the a Rails source file on Github by clicking "on Github". 几个月前,Rails API文档中有一个功能,通过单击“在Github上”,您可以访问Github上的Rails源文件。 Ryan Bates even tweeted about it . 瑞安贝茨(Ryan Bates)甚至发表了推文 This was a great feature because you could easily explore the source for the entire file instead of just for a single method. 这是一个很棒的功能,因为您可以轻松地浏览整个文件的源代码,而不仅仅是单个方法。

Does anyone know what happened to this feature? 有人知道此功能发生了什么吗?

在此处输入图片说明

I believe they removed them when they started using Ajax for the show. 我相信当他们开始使用Ajax进行表演时,他们将它们删除了。 This happened when they switched to sdoc. 当他们切换到sdoc时发生了这种情况。 Perhaps its an sdoc limitation, as everyone seemed to enjoy it. 也许这是一个限制,因为每个人似乎都喜欢它。

I would recommend posting on the google group and get a discussion going requesting more information and/or getting them back. 我建议在Google网上论坛上发帖,并进行讨论以要求更多信息和/或找回他们。

You can find the group here . 您可以在这里找到群组。

Rails documentation generated from using the standard Rdoc Rake task provided with the rails source still produces this extra link to github. 使用rails源提供的标准Rdoc Rake任务生成的Rails文档仍然会产生指向github的额外链接。

There's still a flag for it in the rakefile . rakefile中仍然有一个标志

Whatever or whoever generates the documentation for the API must be omitting this flag. 无论是谁生成API文档的任何人,都必须省略此标志。

It looks like the github links are back as of Rails 3.2.0! 看起来从Rails 3.2.0开始,github链接又回来了!

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM