Update installation instructions (#496)
The `./docsearch docker:build` command cannot be run without previously installing the python dependencies as those dependencies are needed to run the CLI.
This commit is contained in:
parent
8339e568e2
commit
f9a11a0a20
1 changed files with 7 additions and 6 deletions
|
|
@ -12,12 +12,12 @@ make this even easier for you to use.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Start by cloning [the repository][1] and then running `./docsearch docker:build`
|
Start by cloning [the repository][1] and then installing the python 2
|
||||||
to create the local image.
|
dependencies using `pip install -r requirements.txt`. This will give you access
|
||||||
|
to the `./docsearch` command-line tool.
|
||||||
|
|
||||||
Even if not recommended, you can run DocSearch directly from you host. For that,
|
We then recommend using DocSearch from inside a Docker image. You can setup one
|
||||||
you'll need to have `python` and `pip` installed, and then run
|
by running `./docsearch docker:build`.
|
||||||
`pip install --user -r requirements.txt`.
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ You can test your results by running `./docsearch playground`. This will open a
|
||||||
web page with a search input where you can do live tests against the indexed
|
web page with a search input where you can do live tests against the indexed
|
||||||
results.
|
results.
|
||||||
|
|
||||||
 {mt-2}
|
![Playground][6] {mt-2}
|
||||||
|
|
||||||
_Note that if the command fails (it can happen on non-Mac machines), you can get
|
_Note that if the command fails (it can happen on non-Mac machines), you can get
|
||||||
the same result by running a live server in the `./playground` subdirectory.\`_
|
the same result by running a live server in the `./playground` subdirectory.\`_
|
||||||
|
|
@ -127,3 +127,4 @@ hosted version, so you might not need all the listed commands.
|
||||||
[3]: ./config-file.html
|
[3]: ./config-file.html
|
||||||
[4]: https://github.com/algolia/docsearch-configs/tree/master/configs
|
[4]: https://github.com/algolia/docsearch-configs/tree/master/configs
|
||||||
[5]: ./dropdown.html
|
[5]: ./dropdown.html
|
||||||
|
[6]: ./assets/playground.png
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue