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

📄 Enable sites with single projects and no project slug #374

Merged
merged 4 commits into from
May 10, 2023

Conversation

fwkoch
Copy link
Collaborator

@fwkoch fwkoch commented May 4, 2023

If projects is not defined in myst.yml#site, the site build will default to article-theme (see: jupyter-book/myst-theme#68) - this site will not have project slug in the URL.

This pr also adds dataUrl to links/xrefs that points to the mdast json - that means we no longer need to construct these urls by appending .json to a page. Also, when saving url for a file, this checks if the file is the index, and if so, the url is routed to the root, rather than the page slug specifically.

@fwkoch fwkoch mentioned this pull request May 4, 2023
Base automatically changed from feat/remove-static to main May 10, 2023 15:18
@rowanc1 rowanc1 force-pushed the feat/no-proj-slug branch from b284700 to 4ea7bc9 Compare May 10, 2023 15:24
@rowanc1 rowanc1 merged commit 96018fe into main May 10, 2023
@rowanc1 rowanc1 deleted the feat/no-proj-slug branch May 10, 2023 17:57
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.

2 participants