Skip to content

Commit 905e05b

Browse files
authored
Add query benchmark module and performance docs page (#336)
* Add query benchmark module and performance docs page - Simulates XYZ tile queries for collections with different item layouts - Adds a new page to docs outlining tradeoffs between number of items and speed of queries - Adds mkdocs-jupyter to the dependencies for the mkdocs site * build docs on PRs where docs change * add morecantile to test dependencies
1 parent ff434af commit 905e05b

File tree

6 files changed

+4730
-9
lines changed

6 files changed

+4730
-9
lines changed

.github/workflows/deploy_mkdocs.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,38 @@ on:
55
branches:
66
- main
77
paths:
8-
# Only rebuild website when docs have changed
8+
- 'README.md'
9+
- 'CHANGELOG.md'
10+
- 'CONTRIBUTING.md'
11+
- 'docs/**'
12+
pull_request:
13+
paths:
914
- 'README.md'
1015
- 'CHANGELOG.md'
1116
- 'CONTRIBUTING.md'
1217
- 'docs/**'
1318

1419
jobs:
15-
build:
16-
name: Deploy docs
20+
docs:
21+
name: ${{ github.event_name == 'push' && 'Deploy docs' || 'Build docs' }}
1722
runs-on: ubuntu-latest
1823
steps:
19-
- name: Checkout master
20-
uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2125

22-
- name: Set up Python 3.8
23-
uses: actions/setup-python@v2
26+
- name: Set up Python 3.12
27+
uses: actions/setup-python@v5
2428
with:
25-
python-version: 3.8
29+
python-version: 3.12
2630

2731
- name: Install dependencies
2832
run: |
2933
python -m pip install --upgrade pip
30-
python -m pip install mkdocs mkdocs-material
34+
python -m pip install mkdocs mkdocs-material mkdocs-jupyter pandas seaborn folium
35+
36+
- name: Build docs
37+
if: github.event_name == 'pull_request'
38+
run: mkdocs build -f docs/mkdocs.yml
3139

3240
- name: Deploy docs
41+
if: github.event_name == 'push'
3342
run: mkdocs gh-deploy --force -f docs/mkdocs.yml

docs/mkdocs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ nav:
2020
- Home: "index.md"
2121
- PgSTAC: "pgstac.md"
2222
- pyPgSTAC: "pypgstac.md"
23+
- Performance:
24+
- item_size_analysis.ipynb
2325
- Development - Contributing: "contributing.md"
2426
- Release Notes: "release-notes.md"
2527

2628
plugins:
2729
- search
30+
- mkdocs-jupyter:
31+
include_source: True
32+
include_requirejs: True
33+
execute: True
34+
show_input: False
2835

2936
theme:
3037
name: material

0 commit comments

Comments
 (0)