fix: source file (raw/blob) view button generates invalid file path
Discoved in https://github.com/Atlas-OS/docs/issues/281
> ### [BUG]: Page Source Link is Wrong on Text Editors
>
> On the [Text Editors page](https://docs.atlasos.net/getting-started/post-installation/software/text-editors/), clicking the view source link leads to a 404. The link looks to be changed from text-editors.md to text-rawors.md with edit -> raw.
>
## fix: source file (raw/blob) view button generates invalid file path
This PR is to fix the gen logic for the view buttons, which wrongfully converted all text in the **docs edit link** with the word `edit` to `raw`. PR tested locally with `mkdocs-serve` and confirm fixes the issue.
e.g. for http://docs.atlasos.net/post-install/software/text-editors/
#### Edit link:
github.com/Atlas-OS/docs/**edit**/main/docs/post-install/software/text-**edit**ors.md
#### What its supposed to convert to:
github.com/Atlas-OS/docs/**raw**/main/docs/post-install/software/text-**edit**ors.md
#### But it was presented as:
github.com/Atlas-OS/docs/**raw**/main/docs/post-install/software/text-**raw**ors.md
### Affected files:
https://github.com/squidfunk/mkdocs-material/blob/0d11a2d01174a0ab3bec97300c4432da44128253/src/templates/partials/actions.html#L47
合并状态:未合并 关闭于 2026-01-27 4 条评论