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

Refactor doc generation #95

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Refactor doc generation #95

merged 3 commits into from
Jan 23, 2024

Conversation

gunnarx
Copy link
Collaborator

@gunnarx gunnarx commented Dec 12, 2023

Pushing an old refactor job.

This separates the functions that "introspect" the language definition in ifex_ast.py, away from the document generation task in ifex_ast_doc.py.
Because these functions that "introspect" the model that defines the core IDL, are reusable for other things than document definition. The implementation of this is now more complete, robust, and cleaner too.

Gunnar Andersson added 3 commits September 4, 2023 21:06
Factor out functions that do walk-tree and that answer questions about the
model (e.g. is_optional()? for a particular field).  Those functions are
reusable for several tasks and should not be tied to document generation
only.

The implementations of helper functions are now also cleaner, and using
consistent naming of parameters.

The ifex_ast_doc.py was modified accordingly to make use of the new
module ifex_model_walk for walk-function and other helpers.
Other than that, very little change to the actual documentation
generation logic.

Signed-off-by: Gunnar Andersson <gunnar_dev@[email protected]>
Signed-off-by: Gunnar Andersson <gunnar_dev@[email protected]>
@gunnar-mb gunnar-mb merged commit 01eae46 into master Jan 23, 2024
5 checks passed
@gunnar-mb gunnar-mb deleted the refactor_doc_generation branch June 4, 2024 15:41
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.

2 participants