首页 \ 问答 \ 如何发布swagger编辑器左窗口作为文档(How to publish swagger editor left window as documentation)

如何发布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
更新时间:2023-10-23 16:10

最满意答案

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/ ...
  • 请记住,该网站地址与公共目录相关。 因此,如果您希望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 ...
  • 如果您没有链接到您网站上的/pubstore/和/pubstore/folder/ ,则通常没有理由关心它们的404。 这是对这些URL的正确回应(因为没有内容)。 如果您仍想使用robots.txt来阻止对这些内容进行任何抓取,则必须使用Allow ,它不是原始robots.txt规范的一部分,但受Google支持。 例如: User-agent: Googlebot Disallow: /pubstore/ Allow: /pubstore/*.jpg$ Allow: /pubstore/*.JPG$ ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)