Skip to content

Commit e1fad36

Browse files
authored
docs: add API documentation for benchmarking (#21)
* docs: add API documentation for benchmarking Signed-off-by: Elizabeth J Lee <[email protected]>
1 parent a80114d commit e1fad36

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

Dockerfile.docs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@
77
# Useful for local testing
88

99
FROM python:3-slim
10-
RUN apt-get update && apt-get install --no-install-recommends -y git \
11-
&& pip install mkdocs "mkdocs-material>=8.2" "mkdocs-htmlproofer-plugin>=0.8" "mkdocs-swagger-ui-tag" && \
10+
RUN apt-get update && apt-get install --no-install-recommends -y git wget unzip \
11+
&& pip install mkdocs "mkdocs-material>=8.2" "mkdocs-htmlproofer-plugin>=0.8" \
12+
"mkdocs-swagger-ui-tag" "mkdocstrings>=0.24.3" "mkdocstrings-python>=1.9.2" && \
1213
rm -rf /var/lib/apt/lists/*
14+
15+
WORKDIR /apis
16+
RUN wget https://github.com/intel-retail/performance-tools/archive/refs/heads/main.zip
17+
RUN unzip main.zip
18+
WORKDIR /benchmark-scripts
19+
RUN mv /apis/performance-tools-main/benchmark-scripts/* .
20+
1321
EXPOSE 8000
1422
ENTRYPOINT ["mkdocs"]
1523
CMD ["serve", "--dev-addr=0.0.0.0:8000"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# API Documentation for Benchmark Scripts
2+
3+
## Benchmark Package
4+
5+
::: benchmark
6+
handler: python
7+
options:
8+
show_source: false

mkdocs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repo_name: "intel-retail/documentation"
44
repo_url: "https://github.com/intel-retail/documentation"
55
docs_dir: ./docs_src
66
site_dir: ./docs
7-
copyright: 'Copyright &copy; 2023 Intel Corporation'
7+
copyright: 'Copyright &copy; 2024 Intel Corporation'
88
use_directory_urls: false
99
theme:
1010
name: 'material'
@@ -27,8 +27,11 @@ theme:
2727
- toc.integrate
2828
plugins:
2929
- search
30-
repo_url: https://github.com/intel-retail/documentation
31-
repo_name: intel-retail/documentation
30+
- mkdocstrings:
31+
enable_inventory: true
32+
handlers:
33+
python:
34+
paths: [../benchmark-scripts]
3235
nav:
3336
- Home: 'index.md'
3437
- Architecture Decisions:
@@ -41,6 +44,7 @@ nav:
4144
- Target Device: 'Architecture/target-device.md'
4245
- Performance Tools:
4346
- Benchmarking: 'performance-tools/benchmark.md'
47+
- Benchmarking APIs: 'performance-tools/api-docs.md'
4448
extra_css:
4549
- ./stylesheets/index.css
4650
- https://fonts.googleapis.com/icon?family=Material+Icons

0 commit comments

Comments
 (0)