diff website/www/conf.py @ 6763:d93b441ee778

Handle build issues, update css for mobile I added www.roundup-tracker.org as a property of mine in google search console. It reports bad mobile experience. According to the goatcounter tracker I put in, we get 400 hits from phones/small tablets; 400 from tablets/small laptops and 800 from computer screens. So 1/4 is mobile and 1/2 is not a large computer screen. On mobile (<960px) the left hand menu is stacked on top of the column in mobile sizes. Sub-menu links are spaced apart to make them easier to clkick on with a finger. Same with the table of contents in the documents. The main document content is now full display width (rather than scrunched to the right side of the display). This is just a quick hack, but it should make the docs more usable. As I worked, I found that _static/style.css changes were not being copied into the html build directory when sphinx was rerun. Nuke entire html subdir and rebuild from scratch each time. Also added comments to Makefile. Also robots.txt was being added as extra_html by sphinx, but it causes a missing from TOC error that exits the build (when using -W). Since exiting on warning is better, I changed Makefile to add robots.txt. Removed robots.txt references from conf.py.
author John Rouillard <rouilj@ieee.org>
date Sun, 10 Jul 2022 18:16:13 -0400
parents b3ba03d2b214
children 339805c4a85b
line wrap: on
line diff
--- a/website/www/conf.py	Sun Jul 10 17:57:50 2022 -0400
+++ b/website/www/conf.py	Sun Jul 10 18:16:13 2022 -0400
@@ -74,6 +74,7 @@
                     'docs/whatsnew-0.7.txt',
                     'docs/whatsnew-0.8.txt',
                     'docs/security.txt',
+                    'robots.txt',
                     '_tmp']
 
 # The reST default role (used for this markup: `text`) to use for all documents.
@@ -140,7 +141,9 @@
 # taken as relative to the configuration directory. They are copied to
 # the output directory. They will overwrite any existing file of the
 # same name.
-html_extra_path = ['robots.txt']
+# warning about it nt being in TOC tree causes build to fail with -W.
+# so install robots.txt via Makefile
+# html_extra_path = ['robots.txt']
 
 # Custom sidebar templates, maps document names to template names.
 #html_sidebars = {}

Roundup Issue Tracker: http://roundup-tracker.org/