mkdocs_auth icon indicating copy to clipboard operation
mkdocs_auth copied to clipboard

How can I change the theme to MkDocs Material?

Open marcela-fernanda opened this issue 4 years ago • 6 comments

I tried to change the base.html file but didn't work

marcela-fernanda avatar Jan 20 '21 20:01 marcela-fernanda

Hi, I'm going to try to understand what you did. Please confirm the following steps:

  • install material theme: pip install mkdocs-material
  • search for base.html file in the theme files and copy it to themes_addons/ folder
  • update mkdocs.yml to use material theme
  • edit theme_addons/base.html
  • serve mkdocs site

The changes were not reflected. Is that correct?

otsuarez avatar Jan 21 '21 13:01 otsuarez

Hi, I'm going to try to understand what you did. Please confirm the following steps:

  • install material theme: pip install mkdocs-material
  • search for base.html file in the theme files and copy it to themes_addons/ folder
  • update mkdocs.yml to use material theme
  • edit theme_addons/base.html
  • serve mkdocs site

The changes were not reflected. Is that correct?

While I waiting for your reply, I was able to change the theme, thank you!

marcela-fernanda avatar Jan 21 '21 13:01 marcela-fernanda

How the login alert work?

marcela-fernanda avatar Jan 21 '21 13:01 marcela-fernanda

The browser will display the login alert box, when the server sends the headers for HTTP Basic authentication.

The site is served via php, so we're using php's header() function to handle authentication.

otsuarez avatar Jan 21 '21 14:01 otsuarez

So, how can I change this form into a HTML form?

marcela-fernanda avatar Jan 21 '21 14:01 marcela-fernanda

@marcela-fernanda care to share how you changed the theme? :)

iKiok avatar Mar 20 '22 19:03 iKiok