-
Notifications
You must be signed in to change notification settings - Fork 13
Extract LaTeX macros into separate repository as git submodule #305
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
Conversation
- Created latex-macros/ directory with its own git repo - Moved macros.qmd to latex-macros/macros.qmd - Added .gitmodules file for submodule configuration - Updated all 52 .qmd files to reference latex-macros/macros.qmd - Removed old macros.qmd from root - Added setup instructions in SUBMODULE_SETUP.md Co-authored-by: d-morrison <[email protected]>
- Added submodules: recursive to preview.yml workflow - Added submodules: recursive to publish.yml workflow - Updated SUBMODULE_SETUP.md to reflect workflow changes Co-authored-by: d-morrison <[email protected]>
- Added Getting Started section with git submodule clone instructions - Added reference to SUBMODULE_SETUP.md for details Co-authored-by: d-morrison <[email protected]>
|
@copilot I want the new repo to be called |
- Updated .gitmodules URL to d-morrison/macros - Updated all references in SUBMODULE_SETUP.md Co-authored-by: d-morrison <[email protected]>
|
import https://github.com/d-morrison/macros as a git submodule |
|
@copilot import https://github.com/d-morrison/macros as a git submodule |
- Initialized latex-macros submodule from https://github.com/d-morrison/macros.git - Updated submodule reference to commit 902bab8 (latest from remote) - Submodule now properly tracks the remote repository Co-authored-by: d-morrison <[email protected]>
Done! The submodule has been imported from https://github.com/d-morrison/macros in commit 722ac1a. The latex-macros directory now properly tracks the remote repository at commit 902bab8. |
- Marked setup as complete - Updated documentation to show current status - Removed setup instructions since submodule is now configured Co-authored-by: d-morrison <[email protected]>
|
|
@copilot fix failing checks |
Co-authored-by: d-morrison <[email protected]>
d-morrison
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix checks
- Added LaTeX, gitmodules, recurse, submodule, submodules to inst/WORDLIST - Fixes spellcheck failures from new documentation Co-authored-by: d-morrison <[email protected]>
Fixed in commit 1a34c02. The spellcheck was failing because new terminology (LaTeX, gitmodules, recurse, submodule, submodules) wasn't in the WORDLIST. Added these words to inst/WORDLIST. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR extracts LaTeX macros from the repository into a separate git submodule to enable reuse across multiple projects. The change relocates the macros.qmd file to a dedicated repository (https://github.com/d-morrison/macros.git) and references it as a git submodule at latex-macros/.
Key changes:
- Moved LaTeX macros to external repository as git submodule
- Updated all 52
.qmdfile includes to referencelatex-macros/macros.qmd - Configured GitHub Actions workflows to recursively checkout submodules
- Added documentation for cloning and updating the submodule
Reviewed changes
Copilot reviewed 61 out of 61 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.gitmodules |
Defines the new latex-macros submodule configuration |
latex-macros |
Git submodule reference pointing to commit 902bab8 |
macros.qmd |
Removed (moved to submodule repository) |
shared-config.qmd, notation.qmd, etc. (52 files) |
Updated include paths from macros.qmd to latex-macros/macros.qmd |
.github/workflows/*.yml |
Added submodules: recursive to checkout actions |
inst/WORDLIST |
Added submodule-related terms for spellcheck |
SUBMODULE_SETUP.md |
New documentation for submodule setup and usage |
README.Rmd |
Added getting started section with submodule instructions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Original prompt
💡 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.