Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurD1 committed Mar 29, 2024
1 parent 9912f05 commit 908f5db
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ interface subpackage.

Try running the following command:

(cd vendors/mkui; pnpm exec playwright install)
(cd harp_apps/dashboard/frontend; pnpm exec playwright install)

It should download the expected browser versions in your local cache, allowing to run the interface tests.
1 change: 1 addition & 0 deletions docs/features/alerting.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Alerting
========
.. TODO remove or elaborate about the overview, maybe rename in monitoring
4 changes: 3 additions & 1 deletion docs/features/basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ alerting, retrying...).
You can read more about the core HTTP proxy features in the :doc:`http-proxy` section of the documentation.

By default, it respects HTTP cache headers and will speed up your API calls without further configuration. Of course,
a lot of APIs are non-standard or bahve strangely, and one goal of HARP is to give you a toolkit for fixing those.
a lot of APIs are non-standard or behave strangely, and one goal of HARP is to give you a toolkit for fixing those.

Most usually complex but must-have features can be configured using very few lines of code (most often one or less),
and you can extend the existing or write your own using Python or Cython (for incredible speed and efficience, if
Expand All @@ -21,6 +21,7 @@ You run it locally, and query the local server instead of the remote API.

The easiest way to get started is to run it through docker:

.. # TO DO update this with a working command for docker
.. code-block:: bash
docker run -it --rm -p 4000:4000 -p 4080:4080 -e HARP_ENDPOINT_URL=https://httpbin.org makersquad/harp-proxy
Expand All @@ -47,6 +48,7 @@ configure it using its python API and/or a configuration file (various formats a

Here is a simple example of a bootstrap script that will do the exact same thing as the docker command above:

.. TODO This is outdated, I don't think it exists anymore.
.. code-block:: python
from harp import ProxyFactory
Expand Down
3 changes: 3 additions & 0 deletions docs/features/batching.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Batching
========

.. todo::
remove?
3 changes: 2 additions & 1 deletion docs/features/caching.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Caching
=======

.. todo::
remove or elaborate?
Gentle, Strict, Stale-While-Revalidate ...
2 changes: 2 additions & 0 deletions docs/features/configuration.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Configuration
=============
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/intelligence.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Intelligence
============
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/normalization-and-typing.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Normalization and Typing
========================
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/prefetching.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Prefetching
===========
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/retrying.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Retrying
========
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/rewriting.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Rewriting
=========
.. todo::
remove?
2 changes: 2 additions & 0 deletions docs/features/routing.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
Routing
=======
.. todo::
remove?
5 changes: 3 additions & 2 deletions docs/quickstart/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The easiest way to run it is to use our docker image. It is available on docker

.. tab-set-code::


.. code-block:: docker
# TODO review needed (config format updated since written)
Expand All @@ -20,7 +21,7 @@ The easiest way to run it is to use our docker image. It is available on docker
makersquad/harp-proxy:latest
.. code-block:: compose
# Should we provide a basic yaml file?
$ cat <<EOF > docker-compose.yml
version: '3'
Expand All @@ -39,7 +40,7 @@ The easiest way to run it is to use our docker image. It is available on docker
$ docker compose up -d
.. note::

# The doc from all the installation methods don't exist yet, even the ones that exist.
Other installation options exist but are out of the scope of this quick start guide.

You can read more about :doc:`installing with docker <../installation/docker>`, :doc:`installing with docker
Expand Down
4 changes: 0 additions & 4 deletions harp_apps/dashboard/docs/development/testing.rst

This file was deleted.

0 comments on commit 908f5db

Please sign in to comment.