Site reorg: Remove site/ subpath (#306)
Unfortunately, for proper package pathing, need to remove the `site/` subpath. This includes: - Moving everything back into root - Adding a `copy-site.sh` script to copy resources into `mkdocs/site/` before building the site with mkdocs. - Also update examples to ensure all are loading the local sw.js / ui.js - Consolidate examples in `docs/examples` - Consolidate assets under src/assets/ - Move `favicons` to root - Reformat and relint - Tests: update playwright tests to use mkdocs output, add test for embed in docs - bump to 2.0.0-beta.2
This commit is contained in:
@@ -1,19 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="http://localhost:9990/ui.js"></script>
|
||||
<style>
|
||||
html, body {
|
||||
background-color: lightgrey;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<replay-web-page embed="replay" src="http://localhost:9990/docs/assets/tweet-example.wacz" url="page:0" sandbox requiresubdomainiframe></replay-web-page>
|
||||
|
||||
</body>
|
||||
<head>
|
||||
<script src="http://localhost:9990/ui.js"></script>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
background-color: lightgrey;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<replay-web-page
|
||||
embed="replay"
|
||||
src="http://localhost:9990/docs/examples/tweet-example.wacz"
|
||||
url="page:0"
|
||||
sandbox
|
||||
requiresubdomainiframe
|
||||
></replay-web-page>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+16
-14
@@ -1,17 +1,19 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="http://localhost:9990/ui.js"></script>
|
||||
<style>
|
||||
body {
|
||||
background-color: lightgrey;
|
||||
height: 600px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<replay-web-page embed="replay-with-info" src="http://localhost:9990/docs/assets/tweet-example.wacz" url="page:0"></replay-web-page>
|
||||
|
||||
</body>
|
||||
<head>
|
||||
<script src="http://localhost:9990/ui.js"></script>
|
||||
<style>
|
||||
body {
|
||||
background-color: lightgrey;
|
||||
height: 600px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<replay-web-page
|
||||
embed="replay-with-info"
|
||||
src="http://localhost:9990/docs/examples/tweet-example.wacz"
|
||||
url="page:0"
|
||||
></replay-web-page>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,22 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
iframe {
|
||||
border: 1px black solid;
|
||||
display: flex;
|
||||
width: 90%;
|
||||
height: 600px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<iframe src="http://localhost:8020/index-sandbox.html" sandbox="allow-scripts allow-modals allow-forms allow-same-origin allow-downloads"></iframe>
|
||||
|
||||
</body>
|
||||
<head>
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
iframe {
|
||||
border: 1px black solid;
|
||||
display: flex;
|
||||
width: 90%;
|
||||
height: 600px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<iframe
|
||||
src="http://localhost:8020/index-sandbox.html"
|
||||
sandbox="allow-scripts allow-modals allow-forms allow-same-origin allow-downloads"
|
||||
></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user