chore(docs): added link to github sources (#DS-3565)#1778
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the docs app by enabling “view source” links that point from a documentation item to its corresponding directory in the koobiq/angular-components GitHub repository (with a safe fallback to main for local dev builds).
Changes:
- Export a reusable dev placeholder version string and use it for build-token fallback.
- Extend the docs structure registry with an optional repository
pathper item (relative to repo root). - Add a “Source code” link (with icon) to the component viewer navbar when a structure item has a source
path.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/docs/src/app/version.ts | Exports a shared dev-placeholder version and uses it for local build fallback. |
| apps/docs/src/app/structure.ts | Adds path?: string to structure items and populates it for many entries to support source linking. |
| apps/docs/src/app/services/i18n.ts | Adds a translation key for the “Source code” link label. |
| apps/docs/src/app/components/component-viewer/component-viewer.template.html | Renders a conditional external link to the GitHub source directory in the viewer header. |
| apps/docs/src/app/components/component-viewer/component-viewer.component.ts | Computes the GitHub tree URL based on the current docs version (or main in dev) and exposes githubSourceUrl. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Visit the preview URL for this PR (updated for commit 5a2280f): https://koobiq-next--prs-1778-erc1pcn0.web.app (expires Mon, 27 Jul 2026 12:05:43 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
|
Выравнивание должно быть по правой стороне, а не к табам прижато. Если табов нет, то слева остается только ссылка на код |
No description provided.