otsuarez / mkdocs_auth

adding basic authentication to mkdocs site
BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

How can I change the theme to MkDocs Material? #8

Open marcela-fernanda opened 3 years ago

marcela-fernanda commented 3 years ago

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

otsuarez commented 3 years ago

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

The changes were not reflected. Is that correct?

marcela-fernanda commented 3 years ago

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 commented 3 years ago

How the login alert work?

otsuarez commented 3 years ago

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.

marcela-fernanda commented 3 years ago

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

iKiok commented 2 years ago

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