Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR - Config value: 'theme'. Error: Unrecognised theme name:

Tags:

mkdocs

The solution to similar issues on Github about this all point to installing MkDocs or the theme with a package manager and not pip. However, I have installed both with pip.

  1. Installed MkDocs with pip (not a package manager)
  2. Installed n number of MkDocs themes with pip
  3. updated mkdocs.yaml to add:
theme:
   name: '{name_of_theme}'
  1. then
mkdocs serve
  1. result
ERROR   -  Config value: 'theme'. Error: Unrecognised theme name: '{name_of_theme}'. The available installed themes are: mkdocs, readthedocs 

What am I missing?

like image 440
mark Avatar asked Jun 28 '26 15:06

mark


1 Answers

Had the same problem with mkdocs-material. In my case this originated from a faulty installation of the theme. From the mkdocs-material FAQ:

  1. Check if mkdoc is correctly installed: mkdocs --version. You should get the version and installed path back.
  2. Check if the theme is correctly installed: mkdocs serve --help. You should get a list of parameters. Check this entry if you theme name appears: -t, --theme [material|mkdocs|readthedocs] (in this case "material")

If your theme name is missing, try reinstalling it. In my case, I had used the python -m pip flag with mkdocs and needed to do the same with the theme:

python -m pip install mkdocs
python -m pip install mkdocs-material
like image 159
vii Avatar answered Jul 02 '26 23:07

vii



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!