如何发布swagger编辑器左窗口作为文档(How to publish swagger editor left window as documentation)
我想发布swagger编辑器的右侧面板。
目前,团队必须共享yaml文件,每个用户必须将文本复制并粘贴到swagger编辑器中以查看正确的面板呈现。
有没有办法将内容发布到html,以便页面看起来像右边的面板?
右边有格式化外观的swagger编辑器示例: http : //azimi.me/presentations/building-swagger-editor/images/swagger-ui.png
I want to publish the right side panel of the swagger editor.
Currently, the team has to share the yaml file and each user has to copy & paste the text into the swagger editor to view the right panel rendering.
Is there a way to publish the content to html so that a page would look like the right panel ?
Example swagger editor windown with formated look on the right: http://azimi.me/presentations/building-swagger-editor/images/swagger-ui.png
原文:https://stackoverflow.com/questions/40286579
最满意答案
robots.txt应该去你网站的根目录。 看起来你应该把它放在截图中的httpdocs中。
要检查...将其复制到那里,然后导航到yoursite.com/robots.txt。 如果你得到404,那么它就在错误的地方。 如果你看到你的robots.txt文件,你很高兴!
robots.txt should go where the root of your website is. It looks like you should put it in httpdocs from your screenshots.
To check...copy it there, and navigate to yoursite.com/robots.txt . If you get a 404, then it's in the wrong place. If you see your robots.txt file, you're good to go!
相关问答
更多-
对于example.com ,需要在example.com/robots.txt上访问robots.txt。 它在服务器端如何实现并不重要。 For example.com, the robots.txt needs to be accessible at example.com/robots.txt. It it doesn’t matter how this is accomplished on the server-side.
-
不,它不会。 当文件被查看时,php将被执行,并且在顶部它具有告诉服务器吐出空白页面的代码。 任何浏览该URL的人都会看到一个空白页面。 自己验证一下... No it won't. The php will be executed when that file is viewed, and at the top, it has code which tells the server to spit out an empty page. Anyone who browses to that URL will ...
-
主题不是这样的 通常主题文件(img,css,js,ctp)将覆盖“默认”文件。 实际上,情况并非如此。 CakePHP只能处理到达php代码的请求,如果有一个与路径匹配的静态文件,将由Web服务器直接提供,因为这是默认的重写规则实现的。 使用主题CakePHP将更改请求的URL,即: app/Plugin/DebugKit/webroot/js/my_file.js成为app/webroot/debug_kit/js/my_file.js app/View/Themed/Navy/webroot/css/ ...
-
Laravel中的robots.txt(robots.txt in Laravel)[2023-09-15]
请记住,该网站地址与公共目录相关。 因此,如果您希望robot.txt在laravel中工作,则必须将其放在公共文件夹中。 Remember, that website address is relevant to public dir. So, if you want robot.txt to work in laravel, it must be placed in public folder. -
robots.txt格式有一个非标准扩展名,用于指定“允许”规则。 不是每个机器人都尊重它,有些机器人以不同于其他机器人的方式处理它们。 您可以在这篇维基百科文章中阅读更多相关信息: http : //en.wikipedia.org/wiki/Robots_exclusion_standard#Allow_directive There is a non-standard extension to the robots.txt format for specifying "Allow" rules. No ...
-
robots.txt应该去你网站的根目录。 看起来你应该把它放在截图中的httpdocs中。 要检查...将其复制到那里,然后导航到yoursite.com/robots.txt。 如果你得到404,那么它就在错误的地方。 如果你看到你的robots.txt文件,你很高兴! robots.txt should go where the root of your website is. It looks like you should put it in httpdocs from your screensh ...
-
尝试: # prevent any kind of looping: RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule ^ - [L] # first check host/robots.txt RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$ [NC] RewriteCond %{DOCUMENT_ROOT}/%2/%{REQUEST_URI} -f RewriteRule ^(robots\.txt|sitemap\.x ...
-
如果通过HTTPS(→ Allow )而不是HTTP(→ Disallow )访问它,您似乎有不同的robots.txt文件。 顺便说一下,你不需要陈述 User-agent: * Allow: / 因为允许一切都是默认的。 由于Allow不是原始robots.txt规范的一部分,您可能希望使用此代码: User-agent: * Disallow: 另请注意,记录中不应有空行。 You seem to have a different robots.txt file if accessing it v ...
-
主要搜索引擎支持*通配符以进行网址排除, Google网站管理员工具 (抓取>阻止的网址)提供了一种工具,可根据示例网址检查您的规则。 使用HTML的替代方法不是编写复杂的规则,而是在您希望从SERP中排除的URL上显示的网页上的包含 。 Major search engines do support * wildcards for URL exclusion, and Google Webmaster Tools (C ...
-
robots.txt - 禁止文件夹但允许文件夹中的文件(robots.txt - Disallow folder but allow files within folder)[2022-05-02]
如果您没有链接到您网站上的/pubstore/和/pubstore/folder/ ,则通常没有理由关心它们的404。 这是对这些URL的正确回应(因为没有内容)。 如果您仍想使用robots.txt来阻止对这些内容进行任何抓取,则必须使用Allow ,它不是原始robots.txt规范的一部分,但受Google支持。 例如: User-agent: Googlebot Disallow: /pubstore/ Allow: /pubstore/*.jpg$ Allow: /pubstore/*.JPG$ ...