wtc-cloud-eng / mkdocs-terraform-monorepo-plugin

Adds config syntax to mkdocs nav to include terrafrom monorepo docs
Apache License 2.0
11 stars 2 forks source link

AttributeError using mkdocs serve #40

Open irogers97 opened 3 years ago

irogers97 commented 3 years ago

I updated my current virtual env to use mkdocs 1.2 and i get an error at the end of the building while serving (mkdocs build works fine):

  File "/usr/local/lib/python3.9/site-packages/mkdocs_terraform_monorepo_plugin/plugin.py", line 79, in on_serve
    buildfunc = list(server.watcher._tasks.values())[0]['func']
AttributeError: 'LiveReloadServer' object has no attribute 'watcher'
rwittrick commented 3 years ago

This is also raised as an issue here: - https://github.com/backstage/mkdocs-monorepo-plugin/issues/49

And subsequently answered here: https://github.com/mkdocs/mkdocs/issues/2446#issuecomment-856059523

If you are using the mkdocs-monorepo-plugin too (not essential, but likely) then it won't be possible to update the version of mkdocs until that is fixed.