Open
Conversation
Co-authored-by: oscarlevin <6504596+oscarlevin@users.noreply.github.com> Agent-Logs-Url: https://github.com/PreTeXtBook/pretext-cli/sessions/2dcc278a-da1e-4d0d-9c35-f17aa1fa7f57
Copilot
AI
changed the title
[WIP] Add test for pretext generate datafile
Add test for Mar 20, 2026
pretext generate datafile
oscarlevin
reviewed
Mar 21, 2026
Member
oscarlevin
left a comment
There was a problem hiding this comment.
I think this looks right. @copilot please rebase and ensure formatting is correct
* Initial plan * Fix: print targets get better links in pelican generated site When output_filename is not set for single-file output formats (PDF, EPUB, KINDLE, BRAILLE), deploy_path() now scans the output directory for the actual output file and returns a path including the filename. This allows the pelican-generated landing page to link directly to the PDF (or other single-file output) rather than the directory containing it. Co-authored-by: oscarlevin <6504596+oscarlevin@users.noreply.github.com> Agent-Logs-Url: https://github.com/PreTeXtBook/pretext-cli/sessions/870d27e1-a45a-439c-943b-f8852da66683 * format * add copilot instructions --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: oscarlevin <6504596+oscarlevin@users.noreply.github.com> Co-authored-by: Oscar Levin <oscar.levin@unco.edu>
Co-authored-by: oscarlevin <6504596+oscarlevin@users.noreply.github.com> Agent-Logs-Url: https://github.com/PreTeXtBook/pretext-cli/sessions/2aff3401-df98-4e89-ad7d-d303784b6b77
Contributor
Author
Done — rebased onto Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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.
tests/examples/projects/datafile/with:source/main.ptxcontaining a<datafile>element with a text file referenceassets/data.csvas the external data filepublication/publication.ptxpointing to the assets directoryproject.ptxmanifesttest_generate_datafilefunction totests/test_cli.pythat:pretext generate datafilegenerated-assets/datafile/mainblackOriginal prompt
pretext generate datafile#413💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.