mirror of
https://github.com/audiobookshelf/audiobookshelf-web.git
synced 2025-08-31 06:59:31 +02:00
Fix and cleanup docs styling
This commit is contained in:
parent
28da63ca0c
commit
1896f9ee26
5 changed files with 78 additions and 78 deletions
|
@ -1,14 +1,14 @@
|
|||
<template>
|
||||
<div id="install-docker-compose" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#install-docker-compose"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker-compose
|
||||
</h1>
|
||||
<div id="install-docker-compose" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#install-docker-compose"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker-compose
|
||||
</h1>
|
||||
|
||||
<p class="mb-2 text-sm md:text-base">Multi-architecture image for amd64, arm64 and arm/v7</p>
|
||||
<p class="mb-2 text-sm md:text-base">Multi-architecture image for amd64, arm64 and arm/v7</p>
|
||||
|
||||
<pre>
|
||||
<code class="language-bash">version: "3.7"
|
||||
<pre>
|
||||
<code class="language-bash">version: "3.7"
|
||||
services:
|
||||
audiobookshelf:
|
||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||
|
@ -18,23 +18,20 @@ services:
|
|||
ports:
|
||||
- 13378:80
|
||||
volumes:
|
||||
- </path/to/your/audiobooks>:/audiobooks
|
||||
- </path/to/your/podcasts>:/podcasts
|
||||
- </path/to/config>:/config
|
||||
- </path/to/metadata>:/metadata
|
||||
|
||||
</code>
|
||||
</pre>
|
||||
- </path/to/config>:/audiobooks
|
||||
- </path/to/config>:/podcasts
|
||||
- </path/to/config>:/config
|
||||
- </path/to/config>:/metadata</code>
|
||||
</pre>
|
||||
<p class="text-error">Note: Remember to change the path to your actual directory and remove the <> symbols</p>
|
||||
<p class="text-error">Note: Volume mappings should all be separate directories that are not contained in eachother.</p>
|
||||
|
||||
<p class="text-error">Note: Volume mappings should all be separate directories that are not contained in eachother.</p>
|
||||
<!-- <p class="text-warning py-1">Unraid users: it is recommended that you map <span class="font-mono">/config</span> and <span class="font-mono">/metadata</span> to <span class="font-mono">/mnt/user/appdata/audiobookshelf/config</span> and <span class="font-mono">/mnt/user/appdata/audiobookshelf/metadata</span> respectively.</p> -->
|
||||
<p class="mt-2 mb-1 font-semibold text-lg">Volume mappings</p>
|
||||
<p>• <span class="font-mono">/config</span> will contain the database (users/books/libraries/settings)</p>
|
||||
<p>• <span class="font-mono">/metadata</span> will contain cache, streams, covers, downloads, backups and logs</p>
|
||||
<p>• Map any other directories you want to use for your book and podcast collections (ebooks supported as experimental)</p>
|
||||
|
||||
<p class="mt-2 mb-1 font-semibold text-lg">Volume mappings</p>
|
||||
<p>• <span class="font-mono">/config</span> will contain the database (users/books/libraries/settings)</p>
|
||||
<p>• <span class="font-mono">/metadata</span> will contain cache, streams, covers, downloads, backups and logs</p>
|
||||
<p>• Map any other directories you want to use for your book and podcast collections (ebooks supported as experimental)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -1,37 +1,38 @@
|
|||
<template>
|
||||
<div id="install-docker" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#install-docker"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker
|
||||
</h1>
|
||||
<div id="install-docker" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#install-docker"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker
|
||||
</h1>
|
||||
|
||||
<p class="mb-2 text-sm md:text-base">Multi-architecture image for amd64, arm64 and arm/v7</p>
|
||||
<p class="mb-2 text-sm md:text-base">Multi-architecture image for amd64, arm64 and arm/v7</p>
|
||||
|
||||
<pre>
|
||||
<code class="language-bash">
|
||||
docker pull ghcr.io/advplyr/audiobookshelf
|
||||
|
||||
docker run -d \
|
||||
-e AUDIOBOOKSHELF_UID=99 \
|
||||
-e AUDIOBOOKSHELF_GID=100 \
|
||||
-p 13378:80 \
|
||||
-v </path/to/config>:/config \
|
||||
-v </path/to/metadata>:/metadata \
|
||||
-v </path/to/audiobooks>:/audiobooks \
|
||||
-v </path/to/podcasts>:/podcasts \
|
||||
--name audiobookshelf \
|
||||
--rm ghcr.io/advplyr/audiobookshelf</code>
|
||||
</pre>
|
||||
<pre>
|
||||
<code class="language-bash">
|
||||
docker pull ghcr.io/advplyr/audiobookshelf
|
||||
|
||||
<p class="text-error">Note: Volume mappings should all be separate directories that are not contained in eachother.</p>
|
||||
<!-- <p class="text-warning py-1">Unraid users: it is recommended that you map <span class="font-mono">/config</span> and <span class="font-mono">/metadata</span> to <span class="font-mono">/mnt/user/appdata/audiobookshelf/config</span> and <span class="font-mono">/mnt/user/appdata/audiobookshelf/metadata</span> respectively.</p> -->
|
||||
docker run -d \
|
||||
-e AUDIOBOOKSHELF_UID=99 \
|
||||
-e AUDIOBOOKSHELF_GID=100 \
|
||||
-p 13378:80 \
|
||||
-v </path/to/config>:/config \
|
||||
-v </path/to/metadata>:/metadata \
|
||||
-v </path/to/audiobooks>:/audiobooks \
|
||||
-v </path/to/podcasts>:/podcasts \
|
||||
--name audiobookshelf \
|
||||
--rm ghcr.io/advplyr/audiobookshelf</code>
|
||||
</pre>
|
||||
|
||||
<p class="mt-2 mb-1 font-semibold text-lg">Volume mappings</p>
|
||||
<p>• <span class="font-mono">/config</span> will contain the database (users/books/libraries/settings)</p>
|
||||
<p>• <span class="font-mono">/metadata</span> will contain cache, streams, covers, downloads, backups and logs</p>
|
||||
<p>• Map any other directories you want to use for your book and podcast collections (ebooks supported as experimental)</p>
|
||||
<p class="text-error">Note: Remember to change the path to your actual directory and remove the <> symbols</p>
|
||||
<p class="text-error">Note: Volume mappings should all be separate directories that are not contained in eachother</p>
|
||||
<p class="text-error">Note: Windows users will need to remove the \ and run this as a single line</p>
|
||||
|
||||
</div>
|
||||
<p class="mt-2 mb-1 font-semibold text-lg">Volume mappings</p>
|
||||
<p>• <span class="font-mono">/config</span> will contain the database (users/books/libraries/settings)</p>
|
||||
<p>• <span class="font-mono">/metadata</span> will contain cache, streams, covers, downloads, backups and logs</p>
|
||||
<p>• Map any other directories you want to use for your book and podcast collections (ebooks supported as experimental)</p>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
<template>
|
||||
<div id="updating-docker" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#updating-docker"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker
|
||||
</h1>
|
||||
<div id="updating-docker" class="py-10 md:py-20">
|
||||
<h1 class="text-xl md:text-3xl mb-4 md:-ml-8">
|
||||
<nuxt-link to="#updating-docker"><span class="material-icons text-lg md:text-xl text-gray-400 hover:text-white cursor-pointer mr-2">tag</span></nuxt-link
|
||||
>Docker
|
||||
</h1>
|
||||
|
||||
<p class="mb-2 text-sm md:text-base">To update your Docker container to the latest version run the following commands</p>
|
||||
<p class="mb-2 text-sm md:text-base">To update your Docker container to the latest version run the following commands</p>
|
||||
|
||||
<pre>
|
||||
<code class="language-bash">docker stop audiobookshelf
|
||||
docker rm audiobookshelf
|
||||
docker image prune -a
|
||||
docker pull ghcr.io/advplyr/audiobookshelf:latest
|
||||
docker start audiobookshelf</code>
|
||||
</pre>
|
||||
<pre>
|
||||
<code class="language-bash">docker stop audiobookshelf
|
||||
docker rm audiobookshelf
|
||||
docker image prune -a
|
||||
docker pull ghcr.io/advplyr/audiobookshelf:latest
|
||||
# then use initial run command again</code>
|
||||
</pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -107,7 +107,11 @@ export default {
|
|||
},
|
||||
computed: {},
|
||||
methods: {},
|
||||
mounted() {}
|
||||
mounted() {
|
||||
if (typeof Prism !== undefined) {
|
||||
Prism.highlightAll()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ docker run -d \
|
|||
<p class="mb-2 text-sm md:text-base">Multi-architecture image for amd64, arm64 and arm/v7. Also available in Unraid Community Apps.</p>
|
||||
|
||||
<pre>
|
||||
<code class="language-bash">version: "3.7"
|
||||
<code class="language-bash">version: "3.7"
|
||||
services:
|
||||
audiobookshelf:
|
||||
image: ghcr.io/advplyr/audiobookshelf:latest
|
||||
|
@ -57,10 +57,8 @@ services:
|
|||
- </path/to/config>:/audiobooks
|
||||
- </path/to/config>:/podcasts
|
||||
- </path/to/config>:/config
|
||||
- </path/to/config>:/metadata
|
||||
|
||||
</code>
|
||||
</pre>
|
||||
- </path/to/config>:/metadata</code>
|
||||
</pre>
|
||||
|
||||
<p class="text-error">Note: Remember to change the path to your actual directory and remove the <> symbols </p>
|
||||
<p class="text-error">Note: Volume mappings should all be separate directories that are not contained in eachother.</p>
|
||||
|
@ -82,13 +80,13 @@ services:
|
|||
<span class="text-error">Note: Only for amd64 architecture</span>
|
||||
<p class="mb-2 mt-1 text-sm md:text-base">Will use config file <span class="bg-white bg-opacity-10 text-gray-100 rounded-md px-1 py-0.5 font-mono">/etc/default/audiobookshelf</span> if exists or create the following default config:</p>
|
||||
|
||||
<pre>
|
||||
<code class="language-bash"> METADATA_PATH="/usr/share/audiobookshelf/metadata"
|
||||
CONFIG_PATH="/usr/share/audiobookshelf/config"
|
||||
FFMPEG_PATH="/usr/lib/audiobookshelf-ffmpeg/ffmpeg"
|
||||
FFPROBE_PATH="/usr/lib/audiobookshelf-ffmpeg/ffprobe"
|
||||
PORT=7331</code>
|
||||
</pre>
|
||||
<pre>
|
||||
<code class="language-bash">METADATA_PATH="/usr/share/audiobookshelf/metadata"
|
||||
CONFIG_PATH="/usr/share/audiobookshelf/config"
|
||||
FFMPEG_PATH="/usr/lib/audiobookshelf-ffmpeg/ffmpeg"
|
||||
FFPROBE_PATH="/usr/lib/audiobookshelf-ffmpeg/ffprobe"
|
||||
PORT=7331</code>
|
||||
</pre>
|
||||
|
||||
<br />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue