diff --git a/Makefile b/Makefile index 58d07cc..98d7df7 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,13 @@ build-scipy: build-statsmodels: ./build-docset.sh statsmodels source/statsmodels.sourceforge.net/stable +build-seaborn: + find source/stanford.edu/~mwaskom/software/seaborn -maxdepth 1 -name '*.html' -type f -exec sed -i "" 's|//netdna.bootstrapcdn.com|netdna.bootstrapcdn.com|g' {} \; + find source/stanford.edu/~mwaskom/software/seaborn -mindepth 2 -name '*.html' -type f -exec sed -i "" 's|//netdna.bootstrapcdn.com|../netdna.bootstrapcdn.com|g' {} \; + find source/stanford.edu/~mwaskom/software/seaborn -maxdepth 1 -name '*.html' -type f -exec sed -i "" 's|http://cdn.mathjax.org|cdn.mathjax.org|g' {} \; + find source/stanford.edu/~mwaskom/software/seaborn -mindepth 2 -name '*.html' -type f -exec sed -i "" 's|http://cdn.mathjax.org|../cdn.mathjax.org|g' {} \; + ./build-docset.sh seaborn source/stanford.edu/~mwaskom/software/seaborn js + fetch-ipython: wget -r --no-parent -P source http://ipython.org/ipython-doc/stable/ @@ -48,12 +55,19 @@ fetch-statsmodels: wget -r --no-parent -P source http://statsmodels.sourceforge.net/stable/ wget -r --no-parent -P source http://statsmodels.sourceforge.net/stable/_static/searchtools.js +fetch-seaborn: + wget -r --no-parent -P source http://stanford.edu/~mwaskom/software/seaborn/ + wget -r --no-parent -P source http://stanford.edu/~mwaskom/software/seaborn/_static/searchtools.js + wget -r --no-parent -P source/stanford.edu/~mwaskom/software/seaborn/ http://cdn.mathjax.org/mathjax/latest/MathJax.js + wget -r --no-parent -P source/stanford.edu/~mwaskom/software/seaborn/ https://netdna.bootstrapcdn.com/bootswatch/3.0.0/flatly/bootstrap.min.css + fetch: make fetch-ipython make fetch-pandas make fetch-numpy make fetch-scipy make fetch-statsmodels + make fetch-seaborn build: make build-ipython @@ -61,3 +75,4 @@ build: make build-numpy make build-scipy make build-statsmodels + make build-seaborn diff --git a/README.md b/README.md index c61481d..4f89975 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Provides docsets for the [Dash](http://kapeli.com/dash) and [Zeal](http://zealdo * [SciPy](http://docs.scipy.org/doc/scipy/reference/) * [pandas](http://pandas.pydata.org/pandas-docs/stable/) * [statsmodels](http://statsmodels.sourceforge.net/stable/) +* [seaborn](http://stanford.edu/~mwaskom/software/seaborn/) All docsets are set to use the Python language family and are added under the `python:` keyword by default. The scripts used to build the docsets are included. @@ -19,6 +20,7 @@ Add any or all of the following feeds to Dash: * SciPy: [https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/scipy.xml](https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/scipy.xml) * pandas: [https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/pandas.xml](https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/pandas.xml) * statsmodels: [https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/statsmodels.xml](https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/statsmodels.xml) +* seaborn: [https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/seaborn.xml](https://raw.github.com/sjpfenninger/dash-docsets/master/feeds/seaborn.xml) ## Building the docsets diff --git a/build-docset.sh b/build-docset.sh index fe9070e..d5e34f9 100755 --- a/build-docset.sh +++ b/build-docset.sh @@ -2,8 +2,12 @@ # ${1} docset name # ${2} docset input folder +# ${3} whether to enable javascript doc2dash -n ${1} ${2} /usr/libexec/PlistBuddy -c "Set :DocSetPlatformFamily 'python'" ${1}.docset/Contents/Info.plist /usr/libexec/PlistBuddy -c "Add :dashIndexFilePath string 'genindex.html'" ${1}.docset/Contents/Info.plist +if [ "${3}" = "js" ]; then + /usr/libexec/PlistBuddy -c "Add :isJavaScriptEnabled bool true" ${1}.docset/Contents/Info.plist +fi tar --exclude='.DS_Store' -cvzf feeds/${1}.tgz ${1}.docset \ No newline at end of file diff --git a/feeds/seaborn.xml b/feeds/seaborn.xml new file mode 100644 index 0000000..361802b --- /dev/null +++ b/feeds/seaborn.xml @@ -0,0 +1,4 @@ + + 0.3.0 + https://github.com/sjpfenninger/dash-docsets/releases/download/v0.4/seaborn.tgz + \ No newline at end of file