Draft
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Add Automated Grading Report Generation and PDF Conversion Tools
Summary
This pull request introduces a new automated workflow for generating and finalizing student grading reports. It includes two primary command-line interface (CLI) tools: one for creating standardized Markdown reports from a template, and another for converting these reports into high-quality PDFs.
This feature aims to reduce manual effort, ensure consistency in feedback, and produce professional-looking artifacts for students.
Changes
report_tool.py: 📝argparsefor flexible command-line options (e.g., specifying activity name, grader, output directory).template.mdwith student-specific and activity-specific details.convert_to_pdf.py: 📄.md) files in a directory and convert them to PDF.pyppeteer(headless Chrome) to ensure high-fidelity rendering.mdit-py-pluginslibrary.template.md: 📋${student_name}and${activity_title}that are dynamically replaced by thereport_tool.pyscript.README.md: 📖How to Test
Set up the environment:
README.md:Test the Report Generation:
/test_gradingdirectory.Student_A_Test_Assignment_1_correctionfolder (and a similar one for Student B) has been created inside each student's directory. Confirm that it contains a.mdfile and asrcfolder.Test the PDF Conversion:
.pdffile has been created alongside the.mdfile in each correction folder. Open the PDF to ensure the content, tables, and the LaTeX formula from the template are rendered correctly.