Skip to content

Commit

Permalink
optimized grabber and build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Mar 20, 2015
1 parent 09c3dee commit fc835e2
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 22 deletions.
11 changes: 1 addition & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
SlimFramework.docset/Contents/Resources/Document
SlimFramework.docset/Contents/Resources/Documents/hts-cache/*
SlimFramework.docset/Contents/Resources/Documents/docs.slimframework.com/_themes/*
SlimFramework.docset/Contents/Resources/Documents/fade.gif
SlimFramework.docset/Contents/Resources/Documents/hts-log.txt
SlimFramework.docset/Contents/Resources/Documents/index.html
SlimFramework.docset/Contents/Resources/Documents/docs.slimframework.com/pages/view-rendering-templates.html

SlimFramework.docset/Contents/Resources/Documents/backblue.gif

cache
slimframework.tgz
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@

dash-slimframework is a docset for [Dash.app][] containing the latest SlimFramework documentation.

![](screenshot.png)

## Installing

Install by opening Dash.app preferences, switch to `Downloads`, click `+`, and enter the feed URL
`https://raw.githubusercontent.com/pfefferle/dash-slimframework/master/SlimFramework.xml`.

## Build

To rebuild or update this docset run the following commands in the following order:

1. `$ sh sync.sh` to grab the newest version of the documentation
1. `$ python rebuild.py` to generate the docset from the grabbed sources
1. `$ sh pack.sh` to build the tgz file for a new release

## Thanks

The [`sync.sh`][] and [`rebuild.py`][] scripts are based on [@willnorris][]' awesome [RFCDash Docset][] versions.

[Dash.app]: http://kapeli.com/dash
[open an issue]: https://github.com/pfefferle/dash-slimframework/issues
[`sync.sh`]: https://github.com/pfefferle/dash-slimframework/blob/master/sync
[`pack.sh`]: https://github.com/pfefferle/dash-slimframework/blob/master/pack.sh
[`sync.sh`]: https://github.com/pfefferle/dash-slimframework/blob/master/sync.sh
[`rebuild.py`]: https://github.com/pfefferle/dash-slimframework/blob/master/rebuild.py
[@willnorris]: https://willnorris.com
[RFCDash Docset]: https://github.com/willnorris/rfcdash

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html><!-- Mirrored from docs.slimframework.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Mar 2015 14:29:34 GMT --><head>
<html><!-- Mirrored from docs.slimframework.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 20 Mar 2015 21:00:06 GMT --><head>
<meta charset="utf-8"/>
<title>Slim Framework Documentation</title>
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"/>
Expand Down Expand Up @@ -2602,7 +2602,7 @@ <h2 class="page-article-header">View Data</h2>
<div class="alert alert-info">
<strong>Heads Up!</strong> Rarely will you set or append data directly on the view object. Usually, you
pass data to the view with the Slim application’s `render()` method.
See <a href="pages/view-rendering-templates.html">Rendering Templates</a>.
See <a href="http://docs.slimframework.com/pages/view-rendering-templates">Rendering Templates</a>.
</div>

<p>The view object’s <code>setData()</code> and <code>appendData()</code> methods inject data into the view object; the injected data is
Expand Down Expand Up @@ -3600,4 +3600,4 @@ <h3>Closure resources</h3>



</body><!-- Mirrored from docs.slimframework.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Mar 2015 14:29:34 GMT --></html>
</body><!-- Mirrored from docs.slimframework.com/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 20 Mar 2015 21:00:07 GMT --></html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.mbs{margin-bottom:20px;}
.pts{padding-top:20px;}
@font-face{font-family:'FontAwesome';src:url('http://docs.slimframework.com/styles/font/fontawesome-webfont.eot?v=3.0.1');src:url('http://docs.slimframework.com/styles/font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),url('http://docs.slimframework.com/styles/font/fontawesome-webfont.woff?v=3.0.1') format('woff'),url('http://docs.slimframework.com/styles/font/fontawesome-webfont.ttf?v=3.0.1') format('truetype');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0;}
@font-face{font-family:'FontAwesome';src:url('../font/fontawesome-webfont3294.eot?v=3.0.1');src:url('../font/fontawesome-webfontd41d.eot?#iefix&v=3.0.1') format('embedded-opentype'),url('../font/fontawesome-webfont3294.woff?v=3.0.1') format('woff'),url('../font/fontawesome-webfont3294.ttf?v=3.0.1') format('truetype');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0;}
.icon-white,.nav-pills>.active>a>[class^="icon-"],.nav-pills>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^="icon-"],.nav-list>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^="icon-"],.navbar-inverse .nav>.active>a>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^="icon-"],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>.active>a>[class^="icon-"],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^="icon-"],.dropdown-submenu:hover>a>[class*=" icon-"]{background-image:none;}
[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none;}
a [class^="icon-"],a [class*=" icon-"]{display:inline-block;}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified SlimFramework.docset/Contents/Resources/docSet.dsidx
Binary file not shown.
4 changes: 2 additions & 2 deletions SlimFramework.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<entry>
<version>1.0.0</version>
<url>https://github.com/pfefferle/dash-slimframework/releases/download/v1.0.0/slimframework.tgz</url>
<version>1.0.1</version>
<url>https://github.com/pfefferle/dash-slimframework/releases/download/v1.0.1/slimframework.tgz</url>
</entry>
3 changes: 3 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

tar --exclude='.DS_Store' -cvzf slimframework.tgz SlimFramework.docset
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions sync.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

cd SlimFramework.docset/Contents/Resources/Documents

httrack http://docs.slimframework.com/ \
-O SlimFramework.docset/Contents/Resources/Documents,cache -I0 \
--display=2 --timeout=60 --retries=99 --sockets=7 \
--connection-per-second=5 --max-rate=250000 \
--keep-alive --depth=2 --mirror --robots=0 \
--keep-alive --depth=5 --mirror --clean --robots=0 \
--user-agent '$(httrack --version); dash-slimframework ()' \
"-docs.slimframework.com/_themes/*" "-docs.slimframework.com/pages/*" \
"+docs.slimframework.com/bootstrap/css/*" "+docs.slimframework.com/styles/*"

0 comments on commit fc835e2

Please sign in to comment.