backstage / mkdocs-techdocs-core

The core MkDocs plugin used by Backstage's TechDocs as a wrapper around multiple MkDocs plugins and Python Markdown extensions
Apache License 2.0
83 stars 61 forks source link

Search bar does not render on 1.2.0 (requires revert to 1.1.7) #124

Closed m0un10 closed 8 months ago

m0un10 commented 1 year ago

I noticed for docs built using mkdocs the search bar does not appear and these errors appear in the console

reportUnhandledError.ts:21 Uncaught TypeError: Cannot read properties of undefined (reading 'getAttribute')
    at index.ts:100:26
    at map.ts:58:33
    at c._next (OperatorSubscriber.ts:70:13)
    at t.next (Subscriber.ts:75:12)
    at mergeInternals.ts:85:24
    at c._next (OperatorSubscriber.ts:70:13)
    at t.next (Subscriber.ts:75:12)
    at e._subscribe (innerFrom.ts:78:18)
    at e._trySubscribe (Observable.ts:244:19)
    at Observable.ts:234:18
main.js:106 Uncaught ReferenceError: base_url is not defined
    at main.js:106:41

To workaround this and be able to use search again, I simply downgraded to the previous version

pip3 install mkdocs-techdocs-core==1.1.7

I suspect the issue is mkdocs-material-9.1.3. When reverting the techdocs-core plugin it causes it to uses mkdocs-material-8.1.11 and that works fine.

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

robertmarsal commented 10 months ago

Unfortunately this is still an issue

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.