shawnbot/swagger-template

What about stylesheets?

開放

#1 建立於 2015年2月3日

 (0 則留言) (0 個反應) (0 位負責人) (0 個分叉)github user discovery
help wanted

倉庫指標

星標
 (2 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

This was originally part of shawnbot/swagger-static#1, but I'm moving it here for safe keeping.

Here are some options for distributing stylesheets:

  1. Just bundle a stylesheet with swagger-template and let people copy it as needed.

  2. Make a CDN-hosted default stylesheet and reference that in the swagger-template.

  3. Ignore styling altogether and let users specify stylesheets in a custom template, as in:

    {% extend "swagger.html" %}
    {% block css %}
    <link rel="stylesheet" href="path/to/custom.css">
    {% endblock %}
    

貢獻者指南