Skip to content

fix: ability to link md files with relative paths when paths contain space - #5270

Merged
slorber merged 2 commits into
masterfrom
slorber/fix-site-space-linkify-bug
Aug 2, 2021
Merged

slorber merged 2 commits into
masterfrom
slorber/fix-site-space-linkify-bug

Conversation

@slorber

@slorber slorber commented Aug 2, 2021 •

Copy link
Copy Markdown
Collaborator

Motivation

The linkify function does not succeed to linkify docs properly when paths contain spaces.

Reported #4610 (reply in thread)

image

We'll now have better support for spaces in site folder, docs folder and docs filenames.

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

Preview should keep building with newly added docs.

End 2 end tests through the dogfooding plugin instance

(we should create unit tests infra for this linkify function but it doesn't exist yet)

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 2, 2021
@slorber
slorber requested a review from lex111 as a code owner August 2, 2021 15:28
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 2, 2021
@netlify

netlify Bot commented Aug 2, 2021

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 2, 2021

Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟢 Performance 94
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5270--docusaurus-2.netlify.app/

@github-actions

github-actions Bot commented Aug 2, 2021

Copy link
Copy Markdown

Size Change: +1.05 kB (0%)

Total Size: 786 kB

Filename Size Change
website/.docusaurus/globalData.json 35.9 kB +272 B (+1%)
website/build/assets/js/main.********.js 402 kB +781 B (0%)
ℹ️ View Unchanged
Filename Size Change
website/build/assets/css/styles.********.css 93.4 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 63.9 kB 0 B
website/build/blog/index.html 27.8 kB 0 B
website/build/docs/index.html 41.9 kB -1 B (0%)
website/build/docs/installation/index.html 49.6 kB -1 B (0%)
website/build/index.html 28.7 kB 0 B
website/build/tests/docs/index.html 22.6 kB 0 B
website/build/tests/docs/standalone/index.html 20.5 kB 0 B

compressed-size-action

@slorber
slorber merged commit bb825fa into master Aug 2, 2021
@slorber
slorber deleted the slorber/fix-site-space-linkify-bug branch August 2, 2021 16:02
@slorber slorber mentioned this pull request Aug 2, 2021
4 of 5 tasks
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
…space (meta#5270)

* fix md linkify function when spaces in paths

* fix linkify
sparanoid pushed a commit to sparanoid/docusaurus that referenced this pull request Oct 12, 2026
…space (meta#5270)

* fix md linkify function when spaces in paths

* fix linkify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants