Skip to content

Add favicon and implement markdown copy functionality with UI enhancements#5339

Merged
gautamdsheth merged 1 commit into
devfrom
feat/update-docs-favi
May 31, 2026
Merged

Add favicon and implement markdown copy functionality with UI enhancements#5339
gautamdsheth merged 1 commit into
devfrom
feat/update-docs-favi

Conversation

@gautamdsheth
Copy link
Copy Markdown
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Updated docs with copy markdown and favico and stuff

Copilot AI review requested due to automatic review settings May 31, 2026 20:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a "Copy as Markdown" UI to documentation pages, replaces the favicon with a PnP-branded SVG, and updates the build script to publish raw Markdown source files alongside the rendered DocFX site so the new copy/view button can fetch them.

Changes:

  • Introduces page-level Markdown copy + "View as Markdown" dropdown in the custom modern template (JS + CSS), wired in via the template's start() hook.
  • Updates Build-Site.ps1 to copy root, articles/, and cmdlets/ Markdown into _site/markdown/ after docfx build, matching the client-side URL mapping.
  • Switches _appFaviconPath to a new local images/favicon-pnp.svg and adds manual validation steps to the build documentation.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pages/templates/pnp-modern/public/main.js Adds Markdown URL resolver, clipboard helper, dropdown/button UI, and start() initialization.
pages/templates/pnp-modern/public/main.css Adds styling for the copy Markdown button group, dropdown menu, and dark-mode variants.
pages/Build-Site.ps1 Adds Copy-MarkdownFiles/Copy-MarkdownSourceFiles and invokes after DocFX build.
pages/docfx.json Points _appFaviconPath to the new local SVG favicon.
pages/images/favicon-pnp.svg New PnP-branded SVG favicon resource.
pages/articles/buildingdocumentation.md Adds favicon and copy-Markdown items to manual validation checklist.

@gautamdsheth gautamdsheth merged commit 6354727 into dev May 31, 2026
4 checks passed
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