Commit c16a278
authored
Create trigger_netlify_build.yml
feat: integrate external cpp-notes repo via Netlify build
This commit integrates content from the separate 'cpp-notes' repository into the portfolio website during the Netlify build process.
Key changes:
- **netlify.toml:** Modified the Netlify build command (`[build].command`) to:
1. Clone the public 'cpp-notes' repository (https://github.com/dev-ai-kar/cpp-notes.git) into a '_cpp_notes' directory within the build environment.
2. Execute the standard 'bundle exec jekyll build' command afterwards.
This ensures the notes are available for Jekyll processing during each Netlify build.
- **_config.yml:** Added '_cpp_notes' to the 'collections' configuration.
- Set 'output: true' to generate individual HTML pages for each note.
- Defined the permalink structure as '/notes/cpp/:path.html' for the generated note pages.
This setup allows notes maintained in the 'cpp-notes' repository to be automatically pulled in and published as part of the main portfolio site whenever a Netlify build is triggered (e.g., by a push to this repo or via the build hook triggered by the 'cpp-notes' repo workflow).1 parent 2cf549b commit c16a278
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments