Skip to content

Commit

Permalink
static build paths
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed Oct 24, 2024
1 parent 8b846e5 commit ae296a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/myst-cli/src/build/html/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export async function currentSiteRoutes(
return [
{ url: `${host}${projSlug}${siteIndex}`, path: path.join(proj.slug ?? '', 'index.html') },
...pages.map((page) => {
const pageSlug = page.slug?.replace(/\.index$/, '').replaceAll('.', '/');
return {
url: `${host}${projSlug}/${page.slug}`,
path: path.join(proj.slug ?? '', `${page.slug}.html`),
url: `${host}${projSlug}/${pageSlug}`,
path: path.join(proj.slug ?? '', `${pageSlug}.html`),
};
}),
// Download all of the configured JSON
Expand Down

0 comments on commit ae296a9

Please sign in to comment.