Skip to content

Conversation

@Borda
Copy link
Member

@Borda Borda commented Jan 7, 2026

This pull request standardizes and simplifies the way internal documentation and badges link to the project's license and other files, switching from absolute GitHub URLs to relative paths. It also introduces a script to augment relative links in markdown files to point directly to GitHub URLs, and updates the build workflow to use this script for the README.md. These changes improve maintainability and ensure that links work both locally and on GitHub.

Link standardization and simplification:

  • Updated license badge and documentation links in README.md and docs/index.md to use relative paths instead of full GitHub URLs, making them more robust and easier to maintain. [1] [2] [3] [4] [5] [6]
  • Changed the license link in CONTRIBUTING.md to use a relative path, aligning it with the new standard.
  • Updated the "end-to-end examples" link in README.md to use a relative path.

Automation and workflow improvements:

  • Added a new script, .github/scripts/augment_links.py, which converts relative links in markdown files to GitHub URLs, automating link management in documentation.
  • Modified the build workflow (.github/workflows/build-package.yml) to run a script that augments paths in the README.md, ensuring that links are correctly formatted before distribution.

@Borda
Copy link
Member Author

Borda commented Jan 12, 2026

waiting for #2050

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52%. Comparing base (09de0f4) to head (4d51ae6).

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #2061   +/-   ##
=======================================
  Coverage       52%     52%           
=======================================
  Files           61      61           
  Lines         7076    7076           
=======================================
  Hits          3657    3657           
  Misses        3419    3419           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Borda Borda requested a review from SkalskiP January 12, 2026 20:28
@Borda Borda marked this pull request as ready for review January 13, 2026 18:55
Copilot AI review requested due to automatic review settings January 13, 2026 18:55
Copy link
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

This PR converts hardcoded GitHub blob URLs in markdown files to relative links, and introduces a script to augment these relative links back to GitHub URLs during the package build process. This approach allows for better maintainability of documentation while ensuring published documentation still contains full GitHub URLs.

Changes:

  • Convert GitHub blob URLs to relative links in markdown documentation files
  • Add a Python script to augment relative links to GitHub URLs during builds
  • Integrate the augmentation script into the package build workflow

Reviewed changes

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

Show a summary per file
File Description
docs/index.md Converted 4 GitHub blob URLs for LICENSE.md to relative paths (../LICENSE.md)
README.md Converted GitHub URLs to relative paths for LICENSE.md, examples directory, and CONTRIBUTING.md
CONTRIBUTING.md Converted GitHub blob URL for LICENSE.md to relative path (./LICENSE.md)
.github/scripts/augment_links.py New Python script to convert relative links in markdown files to GitHub blob/tree URLs
.github/workflows/build-package.yml Added workflow step to run the augmentation script on README.md before building package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +30 to +31
with open(file_path) as f:
content = f.read()
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The file is opened without specifying an encoding parameter. For better portability and to avoid potential encoding issues on different systems, it's recommended to explicitly specify encoding='utf-8' when opening text files.

Copilot uses AI. Check for mistakes.
Comment on lines +54 to +55
with open(file_path, "w") as f:
f.write(new_content)
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The file is opened for writing without specifying an encoding parameter. For consistency and to avoid potential encoding issues, it's recommended to explicitly specify encoding='utf-8' when opening text files.

Copilot uses AI. Check for mistakes.
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.

3 participants