Skip to content

Commit

Permalink
Add Block Library plugin to Sidekick.
Browse files Browse the repository at this point in the history
  • Loading branch information
bstopp committed Oct 25, 2023
1 parent b9c804c commit 3e88a7d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/sidekick/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"project": "HSF Common Moves",
"host": "www.commonmoves.com",
"plugins": [
{
"id": "library",
"title": "Library",
"environments": ["edit"],
"url": "/tools/sidekick/library.html",
"includePaths": ["**.docx**"]
}
]
}
35 changes: 35 additions & 0 deletions tools/sidekick/library.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"/>
<meta name="Description" content="AEM Sidekick Library" />
<meta name="robots" content="noindex" />
<base href="/" />

<style>
html,
body {
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: #ededed;
height: 100%;
}

helix-sidekick { display: none }
</style>
<title>Sidekick Library</title>
</head>

<body>
<script type="module" src="https://www.hlx.live/tools/sidekick/library/index.js"></script>
<script>
const library = document.createElement('sidekick-library')
library.config = {
base: '/tools/sidekick/library.json',
}
document.body.prepend(library)
</script>
</body>
</html>

0 comments on commit 3e88a7d

Please sign in to comment.