Skip to content

Commit

Permalink
Added seaborn
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpfenninger committed Apr 14, 2014
1 parent 608bdf7 commit 2a46139
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand All @@ -48,16 +55,24 @@ 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
make build-pandas
make build-numpy
make build-scipy
make build-statsmodels
make build-seaborn
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions build-docset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions feeds/seaborn.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<entry>
<version>0.3.0</version>
<url>https://github.com/sjpfenninger/dash-docsets/releases/download/v0.4/seaborn.tgz</url>
</entry>

0 comments on commit 2a46139

Please sign in to comment.