Skip to content

Commit

Permalink
test: add multi page
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed May 28, 2022
1 parent e9ba194 commit c5fc77f
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
67 changes: 67 additions & 0 deletions public/SECOND.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Second Page

<style>
.markdown-section {
overflow: initial!important
}
.honkit-plugin-sandpack {
width: calc(100% + 200px);
margin: 0 0 0 -100px;
background: #EECE34;
}
</style>

This is combination with CodeBlock.

<!-- sandpack:{
"files": {
"/src/index.js": {
"path": "example1/index.js"
},
"/index.html": {
"path": "example1/index.html"
}
},
"entry": "/index.html",
"dependencies": {
"uuid": "latest"
}
} -->

```js
document.querySelector("h1").style.color = "red";
```

Open editor at first.

<!-- sandpack:{
"files": {
"/src/index.js": {
"prependCode": "import '/src/index.css'; // Hack to load index.css\n",
"path": "example2/src/index.js"
},
"/src/App.js": {
"path": "example2/src/App.js",
"active": true
},
"/src/index.css": {
"path": "example2/src/index.css",
"hidden": true
},
"/index.html": {
"path": "example2/index.html"
}
},
"entry": "/index.html",
"options": {
"showLineNumbers": true,
"showInlineErrors": true,
"wrapContent": false,
"editorHeight": 550,
"editorWidthPercentage": 60
},
"honkitSettings": {
"isOpen": true,
"hideExitButton": true
}
} -->
1 change: 1 addition & 0 deletions public/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Summary

* [Introduction](README.md)
* [Second Page](SECOND.md)

0 comments on commit c5fc77f

Please sign in to comment.