Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🛠️ Updatedocs.py generate-readme command to remove permalinks from headers#14055

Merged
tiangolo merged 2 commits intofastapi:masterfrom
YuriiMotov:remove-permalinks-from-readme
Sep 20, 2025
Merged

🛠️ Updatedocs.py generate-readme command to remove permalinks from headers#14055
tiangolo merged 2 commits intofastapi:masterfrom
YuriiMotov:remove-permalinks-from-readme

Conversation

@YuriiMotov
Copy link
Member

Currentlydocs.py generate-readme command copies content fromindex.md and that document contains permalinks for headers.
Thus, these permalinks are displayed when people readREADME.md on GitHub:https://github.com/fastapi/fastapi?tab=readme-ov-file#sponsors--sponsors-

This PR modifiesdocs.py script to remove permalinks whenREADME.md is generated

svlandeg reacted with thumbs up emoji
@github-actions
Copy link
Contributor

📝 Docs preview for commitd8ffc5d at:https://b9ce87d1.fastapitiangolo.pages.dev

Copy link
Member

@tiangolotiangolo left a comment

Choose a reason for hiding this comment

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

Excellent job, thanks@YuriiMotov! 🙌

site_path = Path("site").absolute()
build_site_path = Path("site_build").absolute()

header_with_permalink_pattern = re.compile(r"^(#{1,6}) (.+?)(\s*\{\s*#.*\s*\})\s*$")
Copy link
Member

Choose a reason for hiding this comment

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

Fancy RegEx! 🤯 😎

svlandeg reacted with laugh emoji
@tiangolotiangolo merged commit47acc62 intofastapi:masterSep 20, 2025
56 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tiangolotiangolotiangolo approved these changes

@svlandegsvlandegsvlandeg approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@YuriiMotov@tiangolo@svlandeg

Comments


[8]ページ先頭

©2009-2026 Movatter.jp