Skip to content

chore(docs): added link to github sources (#DS-3565)#1778

Open
artembelik wants to merge 3 commits into
mainfrom
chore/DS-3565
Open

chore(docs): added link to github sources (#DS-3565)#1778
artembelik wants to merge 3 commits into
mainfrom
chore/DS-3565

Conversation

@artembelik

Copy link
Copy Markdown
Contributor

No description provided.

@artembelik artembelik self-assigned this Jul 24, 2026
Copilot AI review requested due to automatic review settings July 24, 2026 10:23
@artembelik
artembelik requested a review from lskramarov as a code owner July 24, 2026 10:23

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 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 path per 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.

Comment thread apps/docs/src/app/services/i18n.ts
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

@artembelik
artembelik requested a review from rmnturov July 24, 2026 10:35
@rmnturov

Copy link
Copy Markdown
Contributor

Выравнивание должно быть по правой стороне, а не к табам прижато. Если табов нет, то слева остается только ссылка на код

@artembelik

Copy link
Copy Markdown
Contributor Author

Выравнивание должно быть по правой стороне, а не к табам прижато. Если табов нет, то слева остается только ссылка на код

@NikGurev @rmnturov поправил

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.

4 participants