Skip to content

Commit

Permalink
feat: add static local serve mode for langs
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm authored and 3y3 committed Apr 23, 2024
1 parent de5b541 commit 9f9e117
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions tests/e2e/__snapshots__/load-custom-resources.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ exports[`Allow load custom resources md2html single page with custom resources 4
</style>
<link type="text/css"
rel="stylesheet"
href="../_bundle/vendor.css"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="../_bundle/app.css"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
Expand All @@ -180,15 +180,15 @@ exports[`Allow load custom resources md2html single page with custom resources 4
</p>/n"},"router":{"pathname":"project/config.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="../_bundle/react.js"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="../_bundle/app.js"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="../_bundle/vendor.js"
src="_bundle/vendor.js"
>
</script>
</body>
Expand Down Expand Up @@ -418,11 +418,11 @@ exports[`Allow load custom resources md2html with custom resources 4`] = `
</style>
<link type="text/css"
rel="stylesheet"
href="../_bundle/vendor.css"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="../_bundle/app.css"
href="_bundle/app.css"
>
<link rel="stylesheet"
type="text/css"
Expand All @@ -442,15 +442,15 @@ exports[`Allow load custom resources md2html with custom resources 4`] = `
</p>/n"},"router":{"pathname":"project/config.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="../_bundle/react.js"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="../_bundle/app.js"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="../_bundle/vendor.js"
src="_bundle/vendor.js"
>
</script>
</body>
Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/__snapshots__/metadata.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ exports[`Allow load custom resources md2html with metadata 4`] = `
</style>
<link type="text/css"
rel="stylesheet"
href="../_bundle/vendor.css"
href="_bundle/vendor.css"
>
<link type="text/css"
rel="stylesheet"
href="../_bundle/app.css"
href="_bundle/app.css"
>
</head>
<body class="g-root g-root_theme_light">
Expand All @@ -180,15 +180,15 @@ exports[`Allow load custom resources md2html with metadata 4`] = `
</p>/n"},"router":{"pathname":"project/config.html"},"lang":"ru","langs":["ru"]};
</script>
<script type="application/javascript"
src="../_bundle/react.js"
src="_bundle/react.js"
>
</script>
<script type="application/javascript"
src="../_bundle/app.js"
src="_bundle/app.js"
>
</script>
<script type="application/javascript"
src="../_bundle/vendor.js"
src="_bundle/vendor.js"
>
</script>
</body>
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/__snapshots__/rtl.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
<head>
<meta charset="utf-8">
<meta http-equiv="refresh"
content="0; url=./ru"
content="0; url=./ru/index.html"
>
<meta name="viewport"
content="width=device-width, initial-scale=1.0"
Expand All @@ -367,12 +367,12 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
href="_bundle/app.css"
>
<script type="text/javascript">
window.location.href = "./ru";
window.location.replace("./ru/index.html");
</script>
</head>
<body class="g-root g-root_theme_light">
If you are not redirected automatically, follow this
<a href="./ru">
<a href="./ru/index.html">
link to example
</a>
.
Expand Down

0 comments on commit 9f9e117

Please sign in to comment.