Skip to content

Commit bc6c4ae

Browse files
[DOCS] Add new documentation checks to align with other OEP repositories (#691)
* [DOCS] Add new documentation checks to align with other OEP repositories Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> * Fix doc issues Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> * Update dorny Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> * Apply suggestions from code review Co-authored-by: Olena (Lena) Onyshchenko <olena.onyshchenko@intel.com> * Combine the documentation workflows * Change runner group Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> * Update license info Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> --------- Signed-off-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com> Co-authored-by: Olena (Lena) Onyshchenko <olena.onyshchenko@intel.com>
1 parent 92e8d5f commit bc6c4ae

File tree

4 files changed

+94
-6
lines changed

4 files changed

+94
-6
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Documentation Check
6+
7+
on: # yamllint disable-line rule:truthy
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
permissions: {}
14+
15+
jobs:
16+
filter:
17+
permissions:
18+
contents: read # needed for actions/checkout
19+
runs-on: dlstreamer
20+
outputs:
21+
dlstreamer_documentation_changed: ${{ steps.filter.outputs.dlstreamer_documentation }}
22+
steps:
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
with:
25+
persist-credentials: false
26+
- name: Set paths filter
27+
id: filter
28+
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d #4.01
29+
with:
30+
filters: |
31+
dlstreamer_documentation:
32+
- 'docs/user-guide/**'
33+
34+
build-dlstreamer-documentation:
35+
permissions:
36+
contents: read # needed for actions/checkout
37+
needs: filter
38+
if: ${{ needs.filter.outputs.dlstreamer_documentation_changed == 'true' }}
39+
runs-on: ubuntu-latest
40+
env:
41+
DOCS_DIR: .
42+
SIMPLE_MODE: true
43+
EXCLUDE_PATTERNS: ""
44+
steps:
45+
- name: Checkout code
46+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
47+
with:
48+
# Fetch all history, otherwise sporadic issue with missing tags
49+
fetch-depth: 0
50+
# Fetch tags
51+
fetch-tags: true
52+
# Checkout the branch that triggered the workflow
53+
# to avoid detached HEAD
54+
ref: ${{ github.event.pull_request.head.sha || github.head_ref }}
55+
persist-credentials: false
56+
57+
- name: Download template
58+
if: ${{ env.SIMPLE_MODE == 'true' }}
59+
shell: bash
60+
run: |
61+
cd "${GITHUB_WORKSPACE}/${DOCS_DIR}"
62+
wget https://docs.openedgeplatform.intel.com/template/template.tar.gz
63+
# Override any existing files with template
64+
tar xf template.tar.gz
65+
if [ -f "dictionary_append.txt" ]; then
66+
cat "dictionary_append.txt" >> "dict.txt"
67+
fi
68+
69+
- name: Add exclude patterns
70+
shell: bash
71+
run: |
72+
# Remove any spaces
73+
exclude_no_spaces="${EXCLUDE_PATTERNS// /}"
74+
# Surround patterns with quotes and create Python list
75+
exclude_pattern="[\"${exclude_no_spaces//,/\", \"}\"]"
76+
conf_files=$(find "${GITHUB_WORKSPACE}" -type f -path "*/docs/conf.py")
77+
for conf_file in $conf_files; do
78+
echo "exclude_patterns.extend(${exclude_pattern})" >> "$conf_file"
79+
done
80+
81+
- name: Build Documentation
82+
shell: bash
83+
run: |
84+
cd "${GITHUB_WORKSPACE}/${DOCS_DIR}"
85+
make build

docs/user-guide/dev_guide/latency_tracer.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ precision in the order of **milliseconds**.
1414

1515
## Elements and pipeline latency
1616

17-
### Basic configuration
17+
**Basic configuration:**
1818

1919
Sample pipeline with enabled default latency tracker:
2020

@@ -74,13 +74,12 @@ The `latency_tracer` can be configured to show latencies only for elements or a
7474
GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency_tracer(flags=element+pipeline)" gst-launch-1.0 ...
7575
```
7676

77-
7877
## Interval Configuration
7978

8079
The `latency_tracer` supports interval-based reporting that provides periodic statistics summaries.
8180
This feature allows to monitor latency trends over time by generating aggregate reports at specified intervals.
8281

83-
### Basic configuration
82+
**Basic configuration:**
8483

8584
The interval can be configured by `interval` parameter. Its default value is 1000ms (1 second).
8685
Example of configuring 2 seconds interval:

docs/user-guide/dev_guide/optimizer.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ Available **log levels** are: CRITICAL, FATAL, ERROR, WARN, INFO, DEBUG.
7070
>**Note**\
7171
>Search duration and sample duration both affect the amount of pipelines that will be explored during the search. \
7272
>The total amount should be approximately `search_duration / sample_duration` pipelines.
73-
### Example
73+
74+
**Example:**
75+
7476
```
7577
python3 . fps -- urisourcebin buffer-size=4096 uri=https://videos.pexels.com/video-files/1192116/1192116-sd_640_360_30fps.mp4 ! decodebin ! gvadetect model=/home/optimizer/models/public/yolo11s/INT8/yolo11s.xml ! queue ! gvawatermark ! fakesink
7678
[__main__] [ INFO] - GStreamer initialized successfully
@@ -179,7 +181,9 @@ optimizer.optimize_for_streams(pipeline)
179181
Runs a series of optimization steps on the pipeline searching for a better performing versions.
180182

181183
---
182-
### Example
184+
185+
**Example:**
186+
183187
```python
184188
from optimizer import get_optimized_pipeline
185189

docs/user-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ identify patterns and gain insights across multiple domains, including:
3535
- warehouse and parking management
3636
- industrial inspections
3737
- safety and regulatory compliance
38-
- security monitoring.
38+
- security monitoring
3939

4040
![image](_images/overview_pipeline_example.png)
4141

0 commit comments

Comments
 (0)