Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docs error blocking API-doc generation under Windows... #6990

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vwheeler63
Copy link
Contributor

...in the case where TMPDIR environment variable pointed to a drive different than the LVGL project directory. (TMPDIR is used by Python tempfile.mkdtemp() used in build.py.) The result was on Windows Doxygen was running in the LVGL project's ./docs/ directory instead of the temporary directory where it was intended to run, causing Doxygen to generate XML files for the API pages in in the wrong place. The solution was to replace the attempted cd with a cross-platform compatible cd built into Python's os library by temporarily having the build.py script change directories to where Doxygen should run and change back again after running it.

Additionally:

  1. Handled 2 Python warnings where a regex string was using an illegal escape sequence by making it a "raw" string, since the escape backslash needs to be passed un-interpreted to the regex.

  2. Replaced build.pys get_version() function with one that works on both Linux and Windows platforms. Credit: @kdschlosser.

Resolves #6924.

Notes

...in the case where TMPDIR environment variable pointed to a drive
different than the LVGL project directory.  (TMPDIR is used by Python
`tempfile.mkdtemp()` used in `build.py`.)  The result was on Windows
Doxygen was running in the LVGL project's `./docs/` directory instead
of the temporary directory where it was intended to run, causing
Doxygen to generate XML files for the API pages in in the wrong place.
The solution was to replace the attempted `cd` with a cross-platform
compatible `cd` built into Python's `os` library by temporarily having
the `build.py` script change directories to where Doxygen should run
and change back again after running it.

Additionally:

1.  Handled 2 Python warnings where a regex string was using an illegal
    escape sequence by making it a "raw" string, since the escape
    backslash needs to be passed un-interpreted to the regex.

2.  Replaced `build.py`s get_version() function with one that works
    on both Linux and Windows platforms.  Credit:  @kdschlosser.

Resolves lvgl#6924.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs Generation: breathe/sphinx Warning: doxygenfile: Cannot find file "lv_button.h
1 participant