Improve courseware robustness - #1
Open
vjcitn wants to merge 9 commits into
Open
Conversation
… internet archive sufficient to get a first build; also factored out most hardcoded urls to _variables.yml
… build output
- Replace rafalab and site URLs with {{< var >}} shortcodes in all slide QMDs
- Update _quarto.yml site-url/repo-url/title from datasciencelabs to vjcitn
- Add **/*.quarto_ipynb to .gitignore
- Include re-rendered figure PNGs from clean quarto preview build
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Constrain sidebar-logo to max 120px and suppress the dark-content duplicate that Bootstrap d-lg-inline was showing in light mode. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
docs/site_libs/ was in .gitignore, which meant the Bootstrap/Quarto CSS grid layout never reached GitHub Pages — causing the sidebar to render as an unstyled block at the top of every page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
check_packages.R scans for all 49 packages used across course QMD files (47 CRAN + 2 GitHub: excessmort, ThemePark) and reports missing ones with exact install commands. Exits non-zero so make precheck fails visibly when the environment is incomplete. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Packages guarded by eval:false (excessmort, gganimate, gsheet) are noted as informational warnings but do not fail the check. Only the 45 packages that execute during quarto render cause a non-zero exit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
check_packages.R now distinguishes CRAN vs GitHub sources and explains the sustainability risk: GitHub-hosted packages (ThemePark, excessmort) can disappear without notice. make check-cran pings CRAN to verify all 44 CRAN packages are still listed, useful at each course iteration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Building from original source failed. Two important events: "summarise" needed to be altered to "reframe" in a number of uses, and "stevetheump" payroll data left the web.
I also wanted to reduce the scattering of direct URL references throughout the materials and adopted a _variables.yml discipline so that there is a central spot to manage external references. This could be used to simplify substitutions of other kinds like instructor/TF names.
Also added a Makefile and a target "precheck" that verifies that the system that builds the materials has the necessary packages.