Skip to content
Permalink
Browse files

cdnjs data

  • Loading branch information
ralsina committed May 3, 2015
1 parent 6eeff35 commit 28c7b0ef8d8df5ea478b6f3cdf7991fc1d5139c7
Showing with 18 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +1 −0 nikola/plugins/task/cdnjsdata.json
  3. +16 −0 scripts/get-cdnjs-list.py
@@ -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)

Large diffs are not rendered by default.

@@ -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.