-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref nRF24/RF24#1003
- Loading branch information
Showing
39 changed files
with
49 additions
and
652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""WARNING -- FOR CI ONLY | ||
This script is meant to be execute in CI only. | ||
Running this locally will alter the Doxyfile. | ||
Such changes SHOULD NOT be pushed to the remote. | ||
""" | ||
from pathlib import Path | ||
import json | ||
|
||
DOCS_DIR = Path(__file__).parent | ||
PROPERTIES = DOCS_DIR.parent / "library.json" | ||
CONFIG = DOCS_DIR / "Doxyfile" | ||
TMP = DOCS_DIR / "doxygenAction" | ||
|
||
|
||
def overwrite_doxygen_value(): | ||
properties = json.loads(PROPERTIES.read_text(encoding="utf-8")) | ||
assert "version" in properties | ||
config = CONFIG.read_text(encoding="utf-8") | ||
TMP.write_text("PROJECT_NUMBER = {}\n".format(properties["version"]), encoding="utf-8") | ||
config += f"\n@INCLUDE = {str(TMP)}\n" | ||
CONFIG.write_text(config, encoding="utf-8") | ||
|
||
if __name__ == "__main__": | ||
overwrite_doxygen_value() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.