Skip to content

Commit

Permalink
Add docbuild workflow for PRs (#24468)
Browse files Browse the repository at this point in the history
* workflows: add docbuild to PRs

Added the docbuild workflow to PRs to inform contributors
whether any changes will break the documentation build.

Also limited the deploy step to only run on pushes to the
master branch.

Added the `--keep-going` flag to the Sphinx makefile to list all
errors instead of stopping at the first one.

Signed-off-by: Gaute Svanes Lunde <gaute.lunde@nordicsemi.no>

* doc: Fix broken references

Fixed some broken references to non-existing section "Running
Pigweed RPC console" and the path to
`docs/guides/silabs_efr32_software_update.md`

Signed-off-by: Gaute Svanes Lunde <gaute.lunde@nordicsemi.no>

Signed-off-by: Gaute Svanes Lunde <gaute.lunde@nordicsemi.no>
  • Loading branch information
gautesl authored and pull[bot] committed Oct 5, 2023
1 parent 7615721 commit 3515750
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 45 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Documentation Build

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
paths:
- '.github/workflows/docbuild.yaml'
- '**.md'
- 'docs/**'
push:
branches:
- master
Expand All @@ -9,7 +17,7 @@ permissions:
contents: write

jobs:
build-and-deploy:
build-and-publish:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -39,7 +47,7 @@ jobs:
make html
touch _build/html/.nojekyll
- name: Deploy to gh-pages
if: github.repository == 'project-chip/connectedhomeip'
if: github.repository == 'project-chip/connectedhomeip' && github.event_name == 'push' && github.ref_name == 'master'
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DOXYGEN_DEPLOY_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W -c . -d _build/doctrees
SPHINXOPTS ?= -W --keep-going -c . -d _build/doctrees
SPHINXBUILD ?= sphinx-build
SOURCEDIR = _build/src
BUILDDIR = _build
Expand Down
16 changes: 2 additions & 14 deletions examples/light-switch-app/silabs/SiWx917/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ An example showing the use of CHIP on the Silicon Labs EFR32 MG12 and MG24.
> release with added tools and documentation.
> [Silabs Matter Github](https://github.com/SiliconLabs/matter/releases)
<a name="intro"></a>

## Introduction

The EFR32 light switch example provides a baseline demonstration of a on-off
Expand All @@ -53,8 +51,6 @@ The light switch example is intended to serve both as a means to explore the
workings of Matter as well as a template for creating real products based on the
Silicon Labs platform.

<a name="building"></a>

## Building

- Download the
Expand Down Expand Up @@ -181,15 +177,13 @@ Silicon Labs platform.
$ gn gen out/debug --args='import("//with_pw_rpc.gni")'
$ ninja -C out/debug

[Running Pigweed RPC console](#running-pigweed-rpc-console)
[Running Pigweed RPC console](#running-rpc-console)

For more build options, help is provided when running the build script without
arguments

./scripts/examples/gn_efr32_example.sh

<a name="flashing"></a>

## Flashing the Application

- On the command line:
Expand All @@ -199,8 +193,6 @@ arguments

- Or with the Ozone debugger, just load the .out file.

<a name="view-logging"></a>

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down Expand Up @@ -249,8 +241,6 @@ combination with JLinkRTTClient as follows:

$ JLinkRTTClient

<a name="running-complete-example"></a>

## Running the Complete Example

- It is assumed here that you already have an OpenThread border router
Expand Down Expand Up @@ -385,8 +375,6 @@ combination with JLinkRTTClient as follows:
#Add Ipv6 route on PC(Linux) \$ sudo ip route add <Thread global ipv6 prefix>/64
via 2002::2

<a name="running-pigweed-rpc-console"></a>

## Running RPC console

- As part of building the example with RPCs enabled the chip_rpc python
Expand Down Expand Up @@ -432,7 +420,7 @@ tracking code inside the `trackAlloc` and `trackFree` function

For the description of Software Update process with EFR32 example applications
see
[EFR32 OTA Software Update](../../../docs/guides/silabs_efr32_software_update.md)
[EFR32 OTA Software Update](../../../../docs/guides/silabs_efr32_software_update.md)

## Building options

Expand Down
14 changes: 1 addition & 13 deletions examples/lock-app/silabs/SiWx917/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ An example showing the use of CHIP on the Silicon Labs EFR32 MG12 and MG24.
> release with added tools and documentation.
> [Silabs Matter Github](https://github.com/SiliconLabs/matter/releases)
<a name="intro"></a>

## Introduction

The EFR32 lock example provides a baseline demonstration of a door lock control
Expand All @@ -48,8 +46,6 @@ The lighting example is intended to serve both as a means to explore the
workings of Matter as well as a template for creating real products based on the
Silicon Labs platform.

<a name="building"></a>

## Building

- Download the
Expand Down Expand Up @@ -189,17 +185,13 @@ Mac OS X
$ ninja -C out/debug
```

[Running Pigweed RPC console](#running-pigweed-rpc-console)

For more build options, help is provided when running the build script without
arguments

```
./scripts/examples/gn_efr32_example.sh
```

<a name="flashing"></a>

## Flashing the Application

- On the command line:
Expand All @@ -211,8 +203,6 @@ arguments

- Or with the Ozone debugger, just load the .out file.

<a name="view-logging"></a>

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down Expand Up @@ -271,8 +261,6 @@ combination with JLinkRTTClient as follows:
$ JLinkRTTClient
```

<a name="running-complete-example"></a>

## Running the Complete Example

- It is assumed here that you already have an OpenThread border router
Expand Down Expand Up @@ -413,7 +401,7 @@ tracking code inside the `trackAlloc` and `trackFree` function

For the description of Software Update process with EFR32 example applications
see
[EFR32 OTA Software Update](../../../docs/guides/silabs_efr32_software_update.md)
[EFR32 OTA Software Update](../../../../docs/guides/silabs_efr32_software_update.md)

## Building options

Expand Down
16 changes: 1 addition & 15 deletions examples/window-app/silabs/SiWx917/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ An example showing the use of CHIP on the Silicon Labs EFR32 MG12 and MG24.
> release with added tools and documentation.
> [Silabs Matter Github](https://github.com/SiliconLabs/matter/releases)
<a name="intro"></a>

## Introduction

The EFR32 window-covering example provides a baseline demonstration of a Window
Expand All @@ -48,8 +46,6 @@ The window-covering example is intended to serve both as a means to explore the
workings of Matter as well as a template for creating real products based on the
Silicon Labs platform.

<a name="building"></a>

## Building

- Download the
Expand Down Expand Up @@ -145,15 +141,11 @@ Silicon Labs platform.
$ gn gen out/debug --args='import("//with_pw_rpc.gni")'
$ ninja -C out/debug

[Running Pigweed RPC console](#running-pigweed-rpc-console)

For more build options, help is provided when running the build script without
arguments

./scripts/examples/gn_efr32_example.sh

<a name="flashing"></a>

## Flashing the Application

- On the command line:
Expand All @@ -163,8 +155,6 @@ arguments

- Or with the Ozone debugger, just load the .out file.

<a name="view-logging"></a>

## Viewing Logging Output

The example application is built to use the SEGGER Real Time Transfer (RTT)
Expand Down Expand Up @@ -213,8 +203,6 @@ combination with JLinkRTTClient as follows:

$ JLinkRTTClient

<a name="running-complete-example"></a>

## Running the Complete Example

- It is assumed here that you already have an OpenThread border router
Expand Down Expand Up @@ -344,13 +332,11 @@ combination with JLinkRTTClient as follows:
# Add Ipv6 route on PC (Linux)
$ sudo ip route add <Thread global ipv6 prefix>/64 via 2002::2

<a name="running-pigweed-rpc-console"></a>

## OTA Software Update

For the description of Software Update process with EFR32 example applications
see
[EFR32 OTA Software Update](../../../docs/guides/silabs_efr32_software_update.md)
[EFR32 OTA Software Update](../../../../docs/guides/silabs_efr32_software_update.md)

## Building options

Expand Down

0 comments on commit 3515750

Please sign in to comment.