Where to place files? #7360
-
On Windows 10, I installed MkDocs and used it to make a folder following the instructions under c:/user/documents/github. Settings I changed all worked correctly, like changing favicon, except for anything tabbed under theme would give me an error. While in the user/documents/github folder, I downladed pip mkdocs-material, and it downloaded programfiles/python3.7, and I believe everything to lib/site-packages. But I'm not sure because there are a few material mkdoc folders there. The same content is in my docs with material theme, but I have no idea how to change material theme. I put a favicon.png and favicon.ico in different places in the material folders, but it only removed materials default one and didn't replace. When I remove the material theme from the config, it shows up. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hello @jonsnow231, In the minimal reproduction guide, there is an example for setting up virtual environments: you could use it to get more control over the installed versions of the packages between projects. If you have made any changes in the site_name: newProject
theme:
name: material
If there are any errors, provide more info, screenshots, actual files giving you the error etc. Working file: newProject.zip Some other commands you could use to see different Python installation paths: |
Beta Was this translation helpful? Give feedback.
-
I uninstalled and then reinstalled in the environment, and now everything seems to work except for two things. No plugins work other than search. With:
I get:
And then with extensions, they seem to work, but I get an error whenever I put anything nested underneath. So for example, the emoji seems to work, showing an emoji on mkdocs serve. But when I add the emoji_index (I put four spaces further than the "p" on first line, but same error whether I put 0 or 2):
This is what my project folder looks like Also, is there a list of CSS settings that can be changed for extra.css? I started one from one of the .css files I found in venv, but didn't see how to separately set headings sizes. |
Beta Was this translation helpful? Give feedback.
-
Thanks, got it working by uninstalling python completely, and reinstalling it and mkdocs-material. |
Beta Was this translation helpful? Give feedback.
mkdocs-material==9.2.7
doesn't have the privacy version of the plugin, if thepip install mkdocs-material --upgrade
doesn't update it to the latest9.5.29
then it's likely due to a very old Python installation.This is highly not recommended, as the privacy plugin relies on other Python modules, so adding one module won't fix anything.
The error you get mentions
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0h 27 Mar 2018'
, so the Python version is too old.Good, but have you confirmed that
python --version
shows the…