Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cdnjs data
  • Loading branch information
ralsina committed May 3, 2015
1 parent 6eeff35 commit 28c7b0e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ New in master
Features
--------

* Smarter CDN support (Issue #1676)
* Four new filters: html_tidy_nowrap, html_tidy_wrap, html_tidy_wrap_attr,
and html_tidy_mini for prettification and minification. Requires tidy5.
* Multilingual sitemaps (Issue #1610)
Expand Down
1 change: 1 addition & 0 deletions nikola/plugins/task/cdnjsdata.json

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions scripts/get-cdnjs-list.py
@@ -0,0 +1,16 @@
#!/usr/bin/env python

import json
import subprocess

links = {}
data = subprocess.check_output(['links', '-dump', 'https://cdnjs.com/'])
for l in data.splitlines():
l = l.strip()
if not 'https' in l:
continue
name, url = [x.strip() for x in l.split('https:')]
links[name] = url

json.dump(links,open('cdnjsdata.json', 'w'))

0 comments on commit 28c7b0e

Please sign in to comment.