Material mkdocs rewrite #136
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is an attempt to switch to Material for Mkdocs for the documentation, as briefly discussed in advplyr/audiobookshelf#4257 and #133 (comment).
This PR is incomplete, and is mostly as a test to see if this can be done. This should not be merged, it will break the website due to using a different build process.
Setting up the environment
To setup the environment, you need to have Material for Mkdocs installed. I have added
.venv
to the gitignore so this can be done within the project.Once you are using the virtual environment, you can run the server with
mkdocs serve
, which will run on port 8000 by default.To deploy with Netlify, use these docs. I have not gone through all of these steps for actually publishing from local.
Navigation
The basic site structure has everything under
docs/
. This includes all of the markdown files and static assets. I have moved the documentation, guides, and FAQ, and mostly recreated the home page (though I will need help with that).An example of one of the guides is shown below.

Custom Page
Current homepage implementation (missing center image, shelves, font change). This does reduce the homepage size by quite a bit (from 3.8 MB down to 2 MB) due to being done in raw HTML instead of a statically generated nuxt page with multiple javascript bundles. This page can be found under

docs/overrides/main.html
. We do still needdocs/index.md
to exist for the homepage to load.Remaining Tasks