Take the article Markdown copy path from the page source - #44
Merged
Merged
Conversation
| advertised[page.relative_to(site).as_posix()] = parser.md_paths | ||
|
|
||
| # The home page hides the actions on purpose; every other page advertises one copy. | ||
| assert advertised.pop("index.html") == [] |
Alice39s
force-pushed
the
fix/markdown-copy-path
branch
from
September 15, 2026 14:29
946937f to
dd100b1
Compare
Deploying nmteam-support with
|
| Latest commit: |
dd100b1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1c21a7ed.nmbot-telegram-doc.pages.dev |
| Branch Preview URL: | https://fix-markdown-copy-path.nmbot-telegram-doc.pages.dev |
agoudbg
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
8608954 已经把副本路径的来源改成
page.file.src_uri,但前端还保留了一段按 URL 反推.md的兜底逻辑。同一个路径语义写在两处,容易再次走岔。做法
.md;非本站来源拒绝。index.md、目录页由插件生成的目录。Fixes #43