Updating Documentation

This commit is contained in:
MediaCowboy 2022-05-28 16:59:54 -05:00
parent 78cc953364
commit 4f450b4824
11 changed files with 18407 additions and 106 deletions

View file

@ -1,4 +1,5 @@
<template>
<div class="w-screen h-screen max-w-full max-h-screen text-white bg-gradient overflow-hidden">
<div id="sidebar" class="hidden md:block fixed top-0 left-0 h-full bg-primary border-r border-white border-opacity-25">
<div class="flex justify-center items-center py-4 mb-6">
@ -10,6 +11,14 @@
<sidebar-nav-item v-for="item in introItems" :key="item.hash" :hash="item.hash" :text="item.text" :selected="currentHash === item.hash" />
<p class="px-4 py-1 text-xs font-bold text-white uppercase mt-6 mb-1">Install</p>
<sidebar-nav-item v-for="item in installItems" :key="item.hash" :hash="item.hash" :text="item.text" :selected="currentHash === item.hash" />
<p class="px-4 py-1 text-xs font-bold text-white uppercase mt-6 mb-1">Updating</p>
<sidebar-nav-item v-for="item in updateItems" :key="item.hash" :hash="item.hash" :text="item.text" :selected="currentHash === item.hash" />
<p class="px-4 py-1 text-xs font-bold text-white uppercase mt-6 mb-1">Books</p>
<sidebar-nav-item v-for="item in bookItems" :key="item.hash" :hash="item.hash" :text="item.text" :selected="currentHash === item.hash" />
@ -35,6 +44,22 @@ export default {
text: 'Introduction'
}
],
installItems: [
{
hash: '#install-docker',
text: 'Docker'
},
{
hash: '#install-docker-compose',
text: 'Docker-compose'
}
],
updateItems: [
{
hash: '#updating-docker',
text: 'Docker'
}
],
bookItems: [
{
hash: '#book-structure',
@ -91,7 +116,7 @@ export default {
// const scrollingUp = evt.target.scrollTop - this.lastScrollTop < 0
// this.lastScrollTop = evt.target.scrollTop
const allItems = this.introItems.concat(this.bookItems).concat(this.podcastItems)
const allItems = this.introItems.concat(this.installItems).concat(this.updateItems).concat(this.bookItems).concat(this.podcastItems)
var closestItem = null
for (let i = 0; i < allItems.length; i++) {