Skip to content

Commit

Permalink
Merge pull request #565 from UncleRus/bugfix/build-docs-ci
Browse files Browse the repository at this point in the history
chore: add check doxygen warnings to ci
  • Loading branch information
UncleRus authored Aug 19, 2023
2 parents f72ffcf + 3fd4d34 commit b564a34
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 47 deletions.
25 changes: 0 additions & 25 deletions .github/release-drafter.yml

This file was deleted.

12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,19 @@ jobs:
sudo apt-get update
sudo apt-get install python3-sphinx python3-sphinx-rtd-theme python3-breathe doxygen
# FIXME: extract doxygen and sphinx errors and warnings, not just run make!
# FIXME: extract sphinx errors and warnings, not just run make!
- id: build
name: Build docs
run: |
make -C docs dirhtml
cd docs
make dirhtml
if [ -s doxygen.log ]; then
echo "========================================================="
echo "Found errors:"
echo "========================================================="
cat doxygen.log
exit 1
fi
build_esp32xx:
name: Build for ESP32xx
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/release-drafter.yml

This file was deleted.

4 changes: 3 additions & 1 deletion components/ls7366r/ls7366r.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ esp_err_t ls7366r_clear_counter(ls7366r_t *dev);
* @return `ESP_OK` on success
*/
esp_err_t ls7366r_counter_enable(ls7366r_t *dev, bool enable);

#ifdef __cplusplus
}
#endif

/**@}*/

#endif /* __LS7366R_H__ */
1 change: 0 additions & 1 deletion components/mpu6050/mpu6050.h
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,6 @@ esp_err_t mpu6050_get_motion(mpu6050_dev_t *dev, mpu6050_acceleration_t *data_ac
* information regarding the characteristics of Slave 4, please refer to
* Registers 49 to 53.
*
* @example
* Suppose that Slave 0 is enabled with 4 bytes to be read (I2C_SLV0_EN = 1 and
* I2C_SLV0_LEN = 4) while Slave 1 is enabled with 2 bytes to be read so that
* I2C_SLV1_EN = 1 and I2C_SLV1_LEN = 2. In such a situation, EXT_SENS_DATA _00
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/latex/
/build/
/xml/
doxygen.log
5 changes: 4 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ help:
@echo " man to make manual pages"
@echo " all to make all of the above"

xml/index.xml:
$(BUILDDIR):
mkdir $(BUILDDIR)

xml/index.xml: $(BUILDDIR)
doxygen doxygen.conf
sed -i 's/LIB8STATIC_ALWAYS_INLINE/inline static/g' xml/*.xml
sed -i 's/LIB8STATIC/inline static/g' xml/*.xml
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ WARN_LINE_FORMAT = "at line $line of file $file"
# specified the warning and error messages are written to standard output
# (stdout).

WARN_LOGFILE =
WARN_LOGFILE = doxygen.log

#---------------------------------------------------------------------------
# Configuration options related to the input files
Expand Down

0 comments on commit b564a34

Please sign in to comment.