{{ project.name }}
+{{ project.description }}
+diff --git a/docs/.markment.yml b/docs/.markment.yml index 57c749d..c89e430 100644 --- a/docs/.markment.yml +++ b/docs/.markment.yml @@ -17,7 +17,7 @@ project: zipball_download_url: https://github.com/gabrielfalcao/HTTPretty/archive/master.zip documentation_url: http://falcao.it/HTTPretty support_url: http://github.com/gabrielfalcao/HTTPretty/issues - + logo_url: https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/httpretty-logo_1.svg full_index: false documentation: - index: intro.md + index: welcome.md diff --git a/docs/about.md b/docs/about.md index 9dc6bbd..44b87a7 100644 --- a/docs/about.md +++ b/docs/about.md @@ -1,6 +1,6 @@ # Acknowledgements -## caveats with the [requests](http://docs.python-requests.org/en/latest/) library +## caveats ### `forcing_headers` + `Content-Length` @@ -9,7 +9,7 @@ if you use the `forcing_headers` options make sure to add the header [requests](http://docs.python-requests.org/en/latest/) will try to load the response endlessly -# Officially supported libraries +## supported libraries Because HTTPretty works in the socket level it should work with any HTTP client libraries, although it is [battle tested](https://github.com/gabrielfalcao/HTTPretty/tree/master/tests/functional) against: diff --git a/docs/contributing.md b/docs/contributing.md index 3962368..e4ed3ae 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -1,6 +1,6 @@ # Hacking on HTTPretty -#### create a virtual env +## creating a virtual env you will need [virtualenvwrapper](http://www.doughellmann.com/projects/virtualenvwrapper/) @@ -9,13 +9,13 @@ you will need [virtualenvwrapper](http://www.doughellmann.com/projects/virtualen mkvirtualenv --distribute --no-site-packages HTTPretty ``` -#### install the dependencies +## installing the dependencies ```console pip install -r requirements.pip ``` -#### next steps: +## next steps 1. run the tests with make: ```bash diff --git a/docs/docs.md b/docs/docs.md index 1eb2ee2..c87f401 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -1,3 +1,5 @@ +# Reference + ## testing query strings ```python @@ -20,7 +22,7 @@ def test_one(): ``` -## ohhhh, really? can that be easier? +## Using the decorator **YES** we've got a decorator @@ -41,7 +43,7 @@ the `@httpretty.activate` is a short-hand decorator that wraps the decorated function with httpretty.enable() and then calls httpretty.disable() right after. -## mocking the status code +## Providing status code ```python import requests @@ -58,7 +60,7 @@ def test_github_access(): expect(response.status_code).to.equal(201) ``` -## you can tell HTTPretty to return any HTTP headers you want +## Providing custom heades **and all you need is to add keyword args in which the keys are always lower-cased and with underscores `_` instead of dashes `-`** diff --git a/docs/welcome.md b/docs/welcome.md new file mode 100644 index 0000000..a6d641e --- /dev/null +++ b/docs/welcome.md @@ -0,0 +1 @@ +# Welcome to HTTPretty diff --git a/theme/assets/css/github.css b/theme/assets/css/github.css new file mode 100644 index 0000000..dc60655 --- /dev/null +++ b/theme/assets/css/github.css @@ -0,0 +1,61 @@ +.hll { background-color: #ffffcc } +.c { color: #999988; font-style: italic } /* Comment */ +.err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.k { color: #000000; font-weight: bold } /* Keyword */ +.o { color: #000000; font-weight: bold } /* Operator */ +.cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ +.c1 { color: #999988; font-style: italic } /* Comment.Single */ +.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.ge { color: #000000; font-style: italic } /* Generic.Emph */ +.gr { color: #aa0000 } /* Generic.Error */ +.gh { color: #999999 } /* Generic.Heading */ +.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.go { color: #888888 } /* Generic.Output */ +.gp { color: #555555 } /* Generic.Prompt */ +.gs { font-weight: bold } /* Generic.Strong */ +.gu { color: #aaaaaa } /* Generic.Subheading */ +.gt { color: #aa0000 } /* Generic.Traceback */ +.kc { color: #000000; font-weight: bold } /* Keyword.Constant */ +.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ +.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ +.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ +.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ +.kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.m { color: #009999 } /* Literal.Number */ +.s { color: #d01040 } /* Literal.String */ +.na { color: #008080 } /* Name.Attribute */ +.nb { color: #0086B3 } /* Name.Builtin */ +.nc { color: #445588; font-weight: bold } /* Name.Class */ +.no { color: #008080 } /* Name.Constant */ +.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ +.ni { color: #800080 } /* Name.Entity */ +.ne { color: #990000; font-weight: bold } /* Name.Exception */ +.nf { color: #990000; font-weight: bold } /* Name.Function */ +.nl { color: #990000; font-weight: bold } /* Name.Label */ +.nn { color: #555555 } /* Name.Namespace */ +.nt { color: #000080 } /* Name.Tag */ +.nv { color: #008080 } /* Name.Variable */ +.ow { color: #000000; font-weight: bold } /* Operator.Word */ +.w { color: #bbbbbb } /* Text.Whitespace */ +.mf { color: #009999 } /* Literal.Number.Float */ +.mh { color: #009999 } /* Literal.Number.Hex */ +.mi { color: #009999 } /* Literal.Number.Integer */ +.mo { color: #009999 } /* Literal.Number.Oct */ +.sb { color: #d01040 } /* Literal.String.Backtick */ +.sc { color: #d01040 } /* Literal.String.Char */ +.sd { color: #d01040 } /* Literal.String.Doc */ +.s2 { color: #d01040 } /* Literal.String.Double */ +.se { color: #d01040 } /* Literal.String.Escape */ +.sh { color: #d01040 } /* Literal.String.Heredoc */ +.si { color: #d01040 } /* Literal.String.Interpol */ +.sx { color: #d01040 } /* Literal.String.Other */ +.sr { color: #009926 } /* Literal.String.Regex */ +.s1 { color: #d01040 } /* Literal.String.Single */ +.ss { color: #990073 } /* Literal.String.Symbol */ +.bp { color: #999999 } /* Name.Builtin.Pseudo */ +.vc { color: #008080 } /* Name.Variable.Class */ +.vg { color: #008080 } /* Name.Variable.Global */ +.vi { color: #008080 } /* Name.Variable.Instance */ +.il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/theme/assets/css/style.css b/theme/assets/css/style.css index 8ba6981..17a3813 100644 --- a/theme/assets/css/style.css +++ b/theme/assets/css/style.css @@ -48,3 +48,21 @@ nav { a.uk-button-primary { color: white; } + + +a { + color: #3973A6; +} + +code, code *, pre, pre * { + font-family: "Monaco", "Inconsolata", "monospace"; +} + +div.highlight pre { + box-shadow: inset 0px 1px 2px 1px rgba(80, 80, 80, .15); +} + + +#docs-body { + padding-top: 120px; +} diff --git a/theme/content.html b/theme/content.html index c19a03f..f35e44e 100644 --- a/theme/content.html +++ b/theme/content.html @@ -1,32 +1,67 @@ -{% macro render_menu_item(header) -%} -
All UIkit components at a glance.
-{{ project.description }}
-