Skip to content

Commit

Permalink
Docs: make base64 image a single line to decrease diff sizes (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexklibisz authored Nov 29, 2023
1 parent 8d02b6d commit a74973a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 824 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tasks:
- venv/bin/python run.py --dataset fashion-mnist-784-euclidean --algorithm elastiknn-l2lsh --runs 3 --count 100 --parallelism 1 --force --local
- mkdir -p $RESULTS_DIR
- venv/bin/python plot.py --dataset fashion-mnist-784-euclidean --count 100 --output $RESULTS_DIR/plot.png | venv/bin/python ../parse_results.py > $RESULTS_DIR/results.md
- base64 -i $RESULTS_DIR/plot.png > $RESULTS_DIR/plot.b64
- base64 -b 0 -i $RESULTS_DIR/plot.png > $RESULTS_DIR/plot.b64
- cat $RESULTS_DIR/results.md

annbRunOfficialFashionMnist:
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Elastiknn
description: >- # this means to ignore newlines until "baseurl:"
An Elasticsearch Plugin for Exact and Approximate Nearest Neighbors Search in High Dimensional Vector Spaces
url: "https://alexklibisz.github.io"
baseurl: "elastiknn"
baseurl: "/elastiknn"

theme: minimal-mistakes-jekyll
minimal_mistakes_skin: dark
Expand Down
1 change: 1 addition & 0 deletions docs/pages/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ See the ann-benchmarks directory in the Elastiknn repository for more details.

### Fashion MNIST

<!-- Using base64 here to avoid messing with image URLs -->
<img src="data:image/png;base64, {% include_relative performance/fashion-mnist/plot.b64 %}" width="600px" height="auto"/>

{% include_relative performance/fashion-mnist/results.md %}
Expand Down
Loading

0 comments on commit a74973a

Please sign in to comment.