Skip to content

Fix content-engine metadata copy#161

Merged
DanWahlin merged 1 commit into
mainfrom
fix/content-engine-copy-generated-metadata
Jun 10, 2026
Merged

Fix content-engine metadata copy#161
DanWahlin merged 1 commit into
mainfrom
fix/content-engine-copy-generated-metadata

Conversation

@DanWahlin

@DanWahlin DanWahlin commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Generate content-engine schema and index.yml files during the copy step

  • Keep GitHub README metadata hidden while unwrapping it only in copied output
  • Add hidden metadata to optional MCP and appendix pages copied to content-engine
  • Remove root schema.json and index.yml from the source repo

Generate content-engine schema and directory indexes during the copy step so the source repo does not need root migration metadata files. Also unwrap hidden Markdown metadata only in the copied output and add missing hidden metadata for optional pages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 22:36
@DanWahlin DanWahlin merged commit bddd5ef into main Jun 10, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the repo’s “content-engine” export workflow by generating schema.json and index.yml during a new copy step, keeping frontmatter metadata hidden in GitHub-rendered Markdown while unwrapping it in copied output.

Changes:

  • Adds a new npm run copy:content-engine script that copies the course subset, generates schema.json / index.yml, unwraps hidden frontmatter, and validates copied Markdown.
  • Adds hidden frontmatter metadata blocks to appendices and an optional MCP page so they can be exported with required metadata.
  • Removes the root-level schema.json and index.yml from the source repo (now generated during the copy step).
Show a summary per file
File Description
schema.json Removed from source repo (now generated during copy step).
index.yml Removed from source repo (now generated during copy step).
package.json Adds copy:content-engine npm script entry.
appendices/README.md Adds hidden frontmatter for content-engine export.
appendices/ci-cd-integration.md Adds hidden frontmatter for content-engine export.
appendices/additional-context.md Adds hidden frontmatter for content-engine export.
06-mcp-servers/mcp-custom-server.md Adds hidden frontmatter for content-engine export of optional page.
.github/scripts/copy-content-engine-files.js New copy/export script that generates schema/index and validates output.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 2

Comment on lines +20 to +23
const sourceRoot = process.cwd();
const destinationRoot = '/Users/danwahlin/Desktop/projects/cse-content-engine/content/learning-pathways/copilot-cli-for-beginners';
const destinationParent = dirname(destinationRoot);
const contentEngineSchema = {
Comment on lines +93 to +95
if (resolvedDestination.startsWith(`${resolvedSource}/`)) {
fail('Destination cannot be inside the source repository.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants