Description: Move assets to /usr/share and use bootstrap from libjs-bootstrap
Author: Ondřej Nový <onovy@debian.org>
Forwarded: not-needed
Last-Update: 2016-07-16

Index: python-os-api-ref/os_api_ref/__init__.py
===================================================================
--- python-os-api-ref.orig/os_api_ref/__init__.py
+++ python-os-api-ref/os_api_ref/__init__.py
@@ -635,23 +635,13 @@ def resolve_rest_references(app, doctree
 
 def copy_assets(app, exception):
     assets = ('api-site.css', 'api-site.js', 'combobox.js')
-    fonts = (
-        'glyphicons-halflings-regular.ttf',
-        'glyphicons-halflings-regular.woff'
-    )
     builders = ('html', 'readthedocs', 'readthedocssinglehtmllocalmedia')
     if app.builder.name not in builders or exception:
         return
     LOG.info('Copying assets: %s', ', '.join(assets))
-    LOG.info('Copying fonts: %s', ', '.join(fonts))
     for asset in assets:
         dest = os.path.join(app.builder.outdir, '_static', asset)
-        source = os.path.abspath(os.path.dirname(__file__))
-        copyfile(os.path.join(source, 'assets', asset), dest)
-    for font in fonts:
-        dest = os.path.join(app.builder.outdir, '_static/fonts', font)
-        source = os.path.abspath(os.path.dirname(__file__))
-        copyfile(os.path.join(source, 'assets', font), dest)
+        os.symlink(os.path.join(os.sep, 'usr', 'share', 'python-os-api-ref', asset), dest)
 
 
 def add_assets(app):
