-
Notifications
You must be signed in to change notification settings - Fork 125
Constraints #1072
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
Constraints #1072
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -652,6 +652,18 @@ if (MFC_DOCUMENTATION) | |||||
| VERBATIM | ||||||
| ) | ||||||
|
|
||||||
| # Generate case_constraints.md from case_validator.py and examples/ | ||||||
| add_custom_command( | ||||||
| OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/docs/documentation/case_constraints.md" | ||||||
| DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/gen_case_constraints_docs.py" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Include Prompt for AI agents
Suggested change
|
||||||
| "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/case_validator.py" | ||||||
| "${examples_DOCs}" | ||||||
| COMMAND "bash" "${CMAKE_CURRENT_SOURCE_DIR}/docs/gen_constraints.sh" | ||||||
| "${CMAKE_CURRENT_SOURCE_DIR}" | ||||||
| COMMENT "Generating case_constraints.md" | ||||||
| VERBATIM | ||||||
| ) | ||||||
|
|
||||||
| file(GLOB common_DOCs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/docs/*") | ||||||
|
|
||||||
| # GEN_DOCS: Given a target name (herein <target>), this macro sets up a | ||||||
|
|
@@ -685,8 +697,10 @@ if (MFC_DOCUMENTATION) | |||||
| "${CMAKE_CURRENT_BINARY_DIR}/${target}-Doxyfile" @ONLY) | ||||||
|
|
||||||
| set(opt_example_dependency "") | ||||||
| set(opt_constraints_dependency "") | ||||||
| if (${target} STREQUAL documentation) | ||||||
| set(opt_example_dependency "${CMAKE_CURRENT_SOURCE_DIR}/docs/documentation/examples.md") | ||||||
| set(opt_constraints_dependency "${CMAKE_CURRENT_SOURCE_DIR}/docs/documentation/case_constraints.md") | ||||||
| endif() | ||||||
|
|
||||||
| file(GLOB_RECURSE ${target}_DOCs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/docs/${target}/*") | ||||||
|
|
@@ -696,6 +710,7 @@ if (MFC_DOCUMENTATION) | |||||
| OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${target}/html/index.html" | ||||||
| DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${target}-Doxyfile" | ||||||
| "${opt_example_dependency}" | ||||||
| "${opt_constraints_dependency}" | ||||||
| "${${target}_SRCs}" "${${target}_DOCs}" | ||||||
| COMMAND "${DOXYGEN_EXECUTABLE}" "${target}-Doxyfile" | ||||||
| WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
| # Generate case constraints documentation from case_validator.py | ||
|
|
||
| set -e | ||
|
|
||
| REPO_ROOT="$1" | ||
|
|
||
| if [ -z "$REPO_ROOT" ]; then | ||
| echo "Usage: $0 <repo_root>" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Generating case constraints documentation..." | ||
| python3 "$REPO_ROOT/toolchain/mfc/gen_case_constraints_docs.py" > "$REPO_ROOT/docs/documentation/case_constraints.md" | ||
sbryngelson marked this conversation as resolved.
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Avoid truncating Prompt for AI agents |
||
| echo "✓ Generated docs/documentation/case_constraints.md" | ||
|
|
||
|
|
||
sbryngelson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.