Closed davehobbs closed 3 years ago
In addition it may be useful to know that this is a local build and there are some js errors in the browser console:
index.ts:46 Fetch API cannot load file:///Users/davehobbs/docker/temp/search/search_index.json. URL scheme must be "http" or "https" for CORS request.
It @ index.ts:46
index.ts:100 Uncaught DOMException: Failed to construct 'Worker': Script at 'file:///Users/davehobbs/docker/temp/assets/javascripts/workers/search.fe42c31b.min.js' cannot be accessed from origin 'null'.
at ui (file:///Users/davehobbs/docker/temp/assets/javascripts/bundle.4ea5477f.min.js:3:46290)
at mi (file:///Users/davehobbs/docker/temp/assets/javascripts/bundle.4ea5477f.min.js:3:47716)
at file:///Users/davehobbs/docker/temp/assets/javascripts/bundle.4ea5477f.min.js:3:54300
at Array.map (<anonymous>)
at file:///Users/davehobbs/docker/temp/assets/javascripts/bundle.4ea5477f.min.js:3:54293
at file:///Users/davehobbs/docker/temp/assets/javascripts/bundle.4ea5477f.min.js:3:55080
index.ts:46 Uncaught (in promise) TypeError: Failed to fetch
at It (index.ts:46)
at ye (index.ts:65)
at bundle.ts:100
at bundle.ts:246
If I remove the search plugin i.e plugins: []
then the problem seems to go away.
Thanks for reporting. Search doesn’t work from file://
without some extra work (see the docs on offline search), which is why you’re seeing this behavior. You have two options:
Just ran into this issue when trying to solve the same issue. However for me the fix was adding alternate_style: true
param to pymdownx.tabbed
. This extra config is documented as a requirement when using the extension in Material's theme.
# mkdocs.yml
markdown_extensions:
- pymdownx.tabbed:
alternate_style: true
I am seeing this issue with again with these versions:
mkdocs==1.5.3
mkdocs-material==9.5.13
mkdocs-material-extensions==1.3.1
I am using the offline
and the privacy
plugins to generate an offline documentation. With a long left sidebar the footer starts floating when scrolling as initially reported. With a non-offline build everything is fine.
The suggested fix by @ryparker does not work (I was not ussing pymdownx.tabbed
anyway).
Disabling navigation.instant
feature fixes the problem.
As our docs say, instant navigation does not work offline.
Oh, i missed that! Maybe a colorful admonition would help here 🙃
I've found a bug and checked that ...
Description
When a sidebar expands past the bottom of a page the footer scrolls with the page content.
Expected behavior
The footer should stay fixed to the bottom of the page.
Actual behavior
The footer scrolls with the page content. For example:
Steps to reproduce the bug
I think this is a fairly simple build:
pip-compile --output-file requirements.txt requirements.in
where requirements.in only hasmkdocs
mkdocs-material
mkdocs -v build
which runs with no errorsPackage versions
Project configuration
The nav includes approximately 300 more entries after this.
System information