#----------------------------------------------------------------------------------
# For the online copy only: an Apache config file, to make auto indexes here nicer.
# Per Apache specs, settings here are inherited by all the subfolders here too.
# Most of this folder's content is its _README.html doc, which is self-contained.
# Feb20: set ip-anon code line manually here, so not lost when unzip at live site.
#
# Jun20: the "H1 {overflow-wrap: break-word;}" in <style> is new, to force
# long folder names to be wrapped instead of breaking mobile viewports;
# this should be applied site-wide, but only for apache autoindex pages
# (perhaps) - and should really be an apache builtin option and default!
#----------------------------------------------------------------------------------

Options +Indexes

# else wrapped badly on small srceens; root .htaccess does [IndexOptions NameWidth=*]
IndexOptions +SuppressDescription +SuppressLastModified +SuppressSize

# else whole page is sent as Latin-1 (despite <meta>) which breaks UTF8 chars in README
IndexOptions +Charset=UTF-8

# icon, font via main stylesheet, mobile friendly, analytics, list space
IndexHeadInsert "\
<!--------INSERT by .htaccess--------> \
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"> \
\
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://learning-python.com/favicon.ico\" /> \
\
<link rel=\"stylesheet\" type=\"text/css\" href=\"https://learning-python.com/_main.css\"> \
\
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> \
\
<script> \
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ \
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), \
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) \
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); \
  ga('create', 'UA-52579036-1', 'auto'); \
  ga('set', 'anonymizeIp', true);   /* AUTO INSERTED Jun-2019 (and manually Feb-2020) */ \
  ga('send', 'pageview'); \
</script> \
\
<style> LI {margin-bottom: 6px;} H1 {overflow-wrap: break-word;} </style> \
<!--------END INSERT by .htaccess--------> \
"
