Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/workflows/docs-reusable-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

name: "Build Documentation"

on: # yamllint disable-line rule:truthy rule:line-length
workflow_call:
inputs:
docs_directory:
description: >-
Documentation directory where the job will run, defaults to '.'
required: false
default: "."
type: string
simple_mode:
description: >-
When true, override configuration for simple documentation sites
required: false
default: true
type: boolean
exclude_patterns:
description: >-
Comma separated list of exclude patterns to use during the build,
defaults to empty list
required: false
default: ""
type: string

permissions:
contents: read

jobs:
build-documentation:
permissions:
contents: read # minimal privilege required
runs-on: ubuntu-latest
env:
DOCS_DIR: ${{ inputs.docs_directory }}
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check whether this version v6.0.2 is right

with:
# Fetch all history, otherwise sporadic issue with missing tags
fetch-depth: 0
# Fetch tags
fetch-tags: true
# Checkout the branch that triggered the workflow
# to avoid detached HEAD
ref: ${{ github.event.pull_request.head.sha || github.head_ref }}
persist-credentials: false

- name: Download template
if: ${{ inputs.simple_mode }}
shell: bash
run: |
cd "${GITHUB_WORKSPACE}/${DOCS_DIR}"
wget https://docs.openedgeplatform.intel.com/template/template.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding error handling and checksum verification for the downloaded tarball:

Suggested change
wget https://docs.openedgeplatform.intel.com/template/template.tar.gz
wget -q --show-progress https://docs.openedgeplatform.intel.com/template/template.tar.gz || { echo "Failed to download template"; exit 1; }
# Verify checksum if available
# sha256sum -c template.tar.gz.sha256

# Override any existing files with template
tar xf template.tar.gz
if [ -f "dictionary_append.txt" ]; then
cat "dictionary_append.txt" >> "dict.txt"
fi

- name: Add exclude patterns
env:
EXCLUDE: ${{ inputs.exclude_patterns }}
shell: bash
run: |
# Remove any spaces
exclude_no_spaces="${EXCLUDE// /}"
# Surround patterns with quotes and create Python list
exclude_pattern="[\"${exclude_no_spaces//,/\", \"}\"]"
conf_files=$(find "${GITHUB_WORKSPACE}" -type f -path "*/docs/conf.py")
for conf_file in $conf_files; do
echo "exclude_patterns.extend(${exclude_pattern})" >> "$conf_file"
done

- name: Build Documentation
env:
SIMPLE_MODE: ${{ inputs.simple_mode }}
shell: bash
run: |
cd "${GITHUB_WORKSPACE}/${DOCS_DIR}"
make build
41 changes: 41 additions & 0 deletions .github/workflows/documentation-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

name: Documentation Check

on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
workflow_dispatch:

permissions: {}

jobs:
filter:
permissions:
contents: read # needed for actions/checkout
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change runner group to dlstreamer

outputs:
dlstreamer_documentation_changed: ${{ steps.filter.outputs.dlstreamer_documentation }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set paths filter
id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update version to v4.0.1 and add comment with this version:
uses: dorny/paths-filter@fbd0ab8 #v4.0.1

with:
filters: |
dlstreamer_documentation:
- 'docs/user-guide/**'
build-dlstreamer-documentation:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.dlstreamer_documentation_changed == 'true' }}
uses: ./.github/workflows/docs-reusable-workflow.yaml
with:
docs_directory: .
5 changes: 2 additions & 3 deletions docs/user-guide/dev_guide/latency_tracer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ precision in the order of **milliseconds**.

## Elements and pipeline latency

### Basic configuration
**Basic configuration:**

Sample pipeline with enabled default latency tracker:

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


## Interval Configuration

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

### Basic configuration
**Basic configuration:**

The interval can be configured by `interval` parameter. Its default value is 1000ms (1 second).
Example of configuring 2 seconds interval:
Expand Down
8 changes: 6 additions & 2 deletions docs/user-guide/dev_guide/optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ Available **log levels** are: CRITICAL, FATAL, ERROR, WARN, INFO, DEBUG.
>**Note**\
>Search duration and sample duration both affect the amount of pipelines that will be explored during the search. \
>The total amount should be approximately `search_duration / sample_duration` pipelines.
### Example

**Example:**

```
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
[__main__] [ INFO] - GStreamer initialized successfully
Expand Down Expand Up @@ -179,7 +181,9 @@ optimizer.optimize_for_streams(pipeline)
Runs a series of optimization steps on the pipeline searching for a better performing versions.

---
### Example

**Example:**

```python
from optimizer import get_optimized_pipeline

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ identify patterns and gain insights across multiple domains, including:
- warehouse and parking management
- industrial inspections
- safety and regulatory compliance
- security monitoring.
- security monitoring

![image](_images/overview_pipeline_example.png)

Expand Down
Loading