Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): remove dependency on resolve order for linking in markdown … #599

Merged
merged 6 commits into from
Nov 13, 2023

Conversation

Kane-R-G
Copy link
Contributor

This fixes the error when linking a markdown file to another markdown file that is higher than the resolve order of the parent.

#562

Description

This PR focuses on removing the dependency on the resolve order when linking markdown files, where this would previously throw an "Error: [md] Cannot find story file" exception when the resolve order was out of sync, this PR now allows for out-of-resolve order linking.

Additional context

Whether this will impact performance on larger projects by looping through Markdown files once the watcher is complete.
Some changes had to be made to the tree.spec file for the tests to pass. Not sure if this is done correctly or if my tests are in the right place (markdown.spec)


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

…files

This fixes the error when linking a markdown file to another markdown file that is higher than the resolve order of the parent.

histoire-dev#562
@stackblitz
Copy link

stackblitz bot commented Sep 25, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@codesandbox
Copy link

codesandbox bot commented Sep 25, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit 88e2984
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/6551fe0426f4ca00083679fa
😎 Deploy Preview https://deploy-preview-599--histoire-examples-vue3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit 88e2984
🔍 Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/6551fe048d1df50008ada3ae
😎 Deploy Preview https://deploy-preview-599--histoire-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit 88e2984
🔍 Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/6551fe0478efea00087f2429
😎 Deploy Preview https://deploy-preview-599--histoire-controls.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 25, 2023

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit 88e2984
🔍 Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/6551fe048c1f350008f96668
😎 Deploy Preview https://deploy-preview-599--histoire-examples-svelte3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Akryum
Copy link
Member

Akryum commented Oct 7, 2023

Thanks for the PR! Looks like build is failing though

@Kane-R-G
Copy link
Contributor Author

Kane-R-G commented Oct 8, 2023

Thanks for the PR! Looks like build is failing though

Apologies I must have forgot to run the build. I have pushed another commit with the required changes.

This is currently building for me but if there are any other issues or concerns, please let me know.

@Akryum
Copy link
Member

Akryum commented Nov 13, 2023

Looking good, thanks!

@Akryum Akryum merged commit 4f2664e into histoire-dev:main Nov 13, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants