Skip to content

Commit

Permalink
Merge pull request #6 from themetacat/main
Browse files Browse the repository at this point in the history
update contents after run "mdbook build" successfully
  • Loading branch information
k1ic authored Mar 16, 2024
2 parents 11db59b + 3ed4434 commit 57e613f
Show file tree
Hide file tree
Showing 11 changed files with 1,148 additions and 300 deletions.
25 changes: 7 additions & 18 deletions book/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@

<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item expanded "><a href="chapter_1.html"><strong aria-hidden="true">1.</strong> Chapter 1</a></li></ol>
<ol class="chapter"><li class="chapter-item expanded "><a href="index.html"><strong aria-hidden="true">1.</strong> Foreword</a></li><li class="chapter-item expanded affix "><li class="part-title">Getting Started</li><li class="chapter-item expanded "><a href="getting-started/quick-start.html"><strong aria-hidden="true">2.</strong> Quick Start</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="getting-started/quick-start.html"><strong aria-hidden="true">2.1.</strong> For Dojo</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="build-app/1-build-app.html"><strong aria-hidden="true">2.1.1.</strong> Build a PixeLAW App</a></li><li class="chapter-item expanded "><a href="build-app/2-deploy-app.html"><strong aria-hidden="true">2.1.2.</strong> Deploy a PixeLAW App</a></li></ol></li><li class="chapter-item expanded "><a href="getting-started/quick-start-mud.html"><strong aria-hidden="true">2.2.</strong> For MUD</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="build-app/1-build-app-mud.html"><strong aria-hidden="true">2.2.1.</strong> Build a PixeLAW App</a></li><li class="chapter-item expanded "><a href="build-app/2-deploy-app-mud.html"><strong aria-hidden="true">2.2.2.</strong> Deploy a PixeLAW App</a></li></ol></li></ol></li><li class="chapter-item expanded "><li class="part-title">Community&Contribution</li><li class="chapter-item expanded "><a href="cc/get-started.html"><strong aria-hidden="true">3.</strong> Get Started</a></li><li class="chapter-item expanded affix "><li class="part-title">Architecture</li><li class="chapter-item expanded "><a href="architecture/overview.html"><strong aria-hidden="true">4.</strong> Overview</a></li><li class="chapter-item expanded affix "><li class="part-title">App Tutorials</li><li class="chapter-item expanded "><a href="app-tutorials/tutorials.html"><strong aria-hidden="true">5.</strong> Minesweeper</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="app-tutorials/minesweeper/0-minesweeper-intro.html"><strong aria-hidden="true">5.1.</strong> Introduction</a></li><li class="chapter-item expanded "><a href="app-tutorials/minesweeper/1-init-and-interact.html"><strong aria-hidden="true">5.2.</strong> Init and Interact</a></li><li class="chapter-item expanded "><a href="app-tutorials/minesweeper/2-implement-rest.html"><strong aria-hidden="true">5.3.</strong> Implement the rest</a></li></ol></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
</nav>

<!-- Track and set sidebar scroll position -->
Expand Down Expand Up @@ -146,6 +148,9 @@ <h1 class="menu-title">PixeLAW Book</h1>
<a href="print.html" title="Print this book" aria-label="Print this book">
<i id="print-button" class="fa fa-print"></i>
</a>
<a href="https://github.com/pixelaw/book" title="Git repository" aria-label="Git repository">
<i id="git-repository-button" class="fa fa-github"></i>
</a>

</div>
</div>
Expand Down Expand Up @@ -192,22 +197,6 @@ <h1 id="document-not-found-404"><a class="header" href="#document-not-found-404"

</div>

<!-- Livereload script (if served using the cli tool) -->
<script>
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + "__livereload";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
location.reload();
}
};

window.onbeforeunload = function() {
socket.close();
}
</script>



Expand Down
230 changes: 0 additions & 230 deletions book/chapter_1.html

This file was deleted.

35 changes: 27 additions & 8 deletions book/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,14 @@ pre > .buttons button {
/* On mobile, make it easier to tap buttons. */
padding: 0.3rem 1rem;
}

.sidebar-resize-indicator {
/* Hide resize indicator on devices with limited accuracy */
display: none;
}
}
pre > code {
display: block;
padding: 1rem;
}

Expand Down Expand Up @@ -422,22 +428,35 @@ ul#searchresults span.teaser em {
position: absolute;
cursor: col-resize;
width: 0;
right: 0;
right: calc(var(--sidebar-resize-indicator-width) * -1);
top: 0;
bottom: 0;
display: flex;
align-items: center;
}

.sidebar-resize-handle .sidebar-resize-indicator {
width: 100%;
height: 12px;
background-color: var(--icons);
margin-inline-start: var(--sidebar-resize-indicator-space);
}

[dir=rtl] .sidebar .sidebar-resize-handle {
left: calc(var(--sidebar-resize-indicator-width) * -1);
right: unset;
}
[dir=rtl] .sidebar .sidebar-resize-handle { right: unset; left: 0; }
.js .sidebar .sidebar-resize-handle {
cursor: col-resize;
width: 5px;
width: calc(var(--sidebar-resize-indicator-width) - var(--sidebar-resize-indicator-space));
}
/* sidebar-hidden */
#sidebar-toggle-anchor:not(:checked) ~ .sidebar {
transform: translateX(calc(0px - var(--sidebar-width)));
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
z-index: -1;
}
[dir=rtl] #sidebar-toggle-anchor:not(:checked) ~ .sidebar {
transform: translateX(var(--sidebar-width));
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
.sidebar::-webkit-scrollbar {
background: var(--sidebar-bg);
Expand All @@ -448,15 +467,15 @@ ul#searchresults span.teaser em {

/* sidebar-visible */
#sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: translateX(var(--sidebar-width));
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
}
[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: translateX(calc(0px - var(--sidebar-width)));
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
}
@media only screen and (min-width: 620px) {
#sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: none;
margin-inline-start: var(--sidebar-width);
margin-inline-start: calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width));
}
[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper {
transform: none;
Expand Down
2 changes: 1 addition & 1 deletion book/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}

#page-wrapper.page-wrapper {
transform: none;
transform: none !important;
margin-inline-start: 0px;
overflow-y: initial;
}
Expand Down
2 changes: 2 additions & 0 deletions book/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

:root {
--sidebar-width: 300px;
--sidebar-resize-indicator-width: 8px;
--sidebar-resize-indicator-space: 2px;
--page-padding: 15px;
--content-max-width: 750px;
--menu-bar-height: 50px;
Expand Down
49 changes: 48 additions & 1 deletion book/highlight.js

Large diffs are not rendered by default.

Loading

0 comments on commit 57e613f

Please sign in to comment.