Skip to content

feat(v2): editUrl functions should receive md doc permalink#4232

Merged
slorber merged 1 commit into
masterfrom
slorber/improve-docs-editUrl-fn
Feb 17, 2021
Merged

feat(v2): editUrl functions should receive md doc permalink#4232
slorber merged 1 commit into
masterfrom
slorber/improve-docs-editUrl-fn

Conversation

@slorber

@slorber slorber commented Feb 17, 2021

Copy link
Copy Markdown
Collaborator

Motivation

The editUrl fn should provide the user with the doc/blog permalink.

This is useful for future integrations with online editing sandboxes like StackBlitz and CodeSandbox, as it allows to load the site on the correct page by passing a querystring param.

cc @EricSimons

Test Plan

tests

@slorber slorber added the pr: new feature This PR adds a new API or behavior. label Feb 17, 2021
@slorber slorber requested a review from lex111 as a code owner February 17, 2021 10:28
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Feb 17, 2021
@netlify

netlify Bot commented Feb 17, 2021

Copy link
Copy Markdown

[V1] Deploy preview success

Built with commit ac641cc

https://deploy-preview-4232--docusaurus-1.netlify.app

@netlify

netlify Bot commented Feb 17, 2021

Copy link
Copy Markdown

Deploy preview for docusaurus-2 ready!

Built with commit ac641cc

https://deploy-preview-4232--docusaurus-2.netlify.app

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 80
🟢 Accessibility 96
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

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

@github-actions

Copy link
Copy Markdown

Size Change: +15 B (0%)

Total Size: 158 kB

ℹ️ View Unchanged
Filename Size Change
website/build/assets/css/styles.********.css 17.6 kB 0 B
website/build/assets/js/main.********.js 111 kB +14 B (0%)
website/build/blog/2017/12/14/introducing-docusaurus/index.html 21.7 kB -1 B (0%)
website/build/docs/introduction/index.html 180 B 0 B
website/build/index.html 6.95 kB +2 B (0%)

compressed-size-action

@slorber slorber merged commit ae988d0 into master Feb 17, 2021
@lex111 lex111 added this to the v2.0.0-alpha.71 milestone Mar 1, 2021
This was referenced Mar 10, 2021
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: new feature This PR adds a new API or behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants