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

🌎 Fetch config extensions from URL #1251

Merged
merged 4 commits into from
Jun 5, 2024
Merged

🌎 Fetch config extensions from URL #1251

merged 4 commits into from
Jun 5, 2024

Conversation

fwkoch
Copy link
Collaborator

@fwkoch fwkoch commented May 28, 2024

extends pr was added here to allow one myst.yml to extend another: #1215

In that PR and in this issue #336 the next step was allowing remote urls for the extend content so centralized data may be reused across users/projects. This PR adds that remote resolution step!

Biggest thing about this pr is going from sync to async at the config loading level; this means many functions are newly awaited... big diff minor impact.

@fwkoch fwkoch changed the title Feat/extend remote 🌎 Fetch config extensions from URL May 28, 2024
) {
let message: string;
let message: string | undefined;
if (opts?.allowRemote && isUrl(relativePath)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👀 This is the "interesting" part of the PR. Everything else is async/await...

@fwkoch
Copy link
Collaborator Author

fwkoch commented Jun 5, 2024

Add note to docs for this!- Included in docs update in #1266

@fwkoch fwkoch merged commit 286ceaa into main Jun 5, 2024
5 checks passed
@fwkoch fwkoch deleted the feat/extend-remote branch June 5, 2024 16:36
@fwkoch fwkoch mentioned this pull request Jun 15, 2024
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.

1 participant