From 60e701ba3da974fed3e8faf816221d111061e5c5 Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Sat, 9 Nov 2024 13:34:59 +0000 Subject: [PATCH] fix: Document generation --- .devcontainer/devcontainer.json | 1 + .vscode/tasks.json | 55 ++++++++++++++++++++++++++++++++- Dockerfile | 3 ++ docs/conf.py | 3 +- docs/library_initialization.rst | 14 ++++----- test/README.md | 2 +- 6 files changed, 68 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a1b99f38..6e0aa222 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,6 +15,7 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ + "matepek.vscode-catch2-test-adapter", "ms-vscode.cpptools", "shardulm94.trailing-spaces", "twxs.cmake" diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2802b545..e42b64fa 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -17,6 +17,24 @@ "isDefault": true } }, + { + "label": "Note-C: Compile and Run ALL Tests (with coverage)", + "type": "cppbuild", + "command": "./scripts/run_unit_tests.sh", + "args": [ + "--coverage", + ], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": false + } + }, { "label": "Note-C: Compile and Run ALL Tests (with coverage and memory check)", "type": "cppbuild", @@ -51,6 +69,41 @@ "group": { "kind": "none" } + }, + { + "label": "Note-C: Generate Coverage HTML", + "type": "shell", + "command": "genhtml lcov.info -o tmp", + "args": [], + "options": { + "cwd": "${workspaceFolder}/build/test/coverage", + "env": { + "LC_ALL": "C" + } + }, + "problemMatcher": [], + "group": { + "kind": "none" + }, + "dependsOn": [ + "Note-C: Compile and Run ALL Tests (with coverage)" + ] + }, + { + "label": "Note-C: Generate Documentation", + "type": "shell", + "command": "./scripts/build_docs.sh", + "args": [], + "options": { + "cwd": "${workspaceFolder}", + "env": { + "LC_ALL": "C" + } + }, + "problemMatcher": [], + "group": { + "kind": "none" + } } ] -} \ No newline at end of file +} diff --git a/Dockerfile b/Dockerfile index 0368b33b..0d4b69e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,9 @@ ARG USER # Local Argument(s) +# Local Environment Variable(s) +ENV LC_ALL="C.UTF-8" + # Create Non-Root User RUN ["dash", "-c", "\ addgroup \ diff --git a/docs/conf.py b/docs/conf.py index 5a04823d..7b7a4a1b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,7 +63,8 @@ # Options for HTML output html_theme = 'sphinx_rtd_theme' -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +# WARNING: Calling get_html_theme_path is deprecated. If you are calling it to define html_theme_path, you are safe to remove that code. +#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_logo = str(NOTE_C_BASE / 'assets' / 'blues_logo_no_text.png') html_theme_options = { 'logo_only': True, diff --git a/docs/library_initialization.rst b/docs/library_initialization.rst index 12356059..9f5ba40a 100644 --- a/docs/library_initialization.rst +++ b/docs/library_initialization.rst @@ -149,7 +149,7 @@ The code below from `Src/main.c