Mercurial > p > roundup > code
view website/www/Makefile @ 7362:527cad3a860c
color and full width example pre; change way to do max width
Color pre blocks light yellow so they stand out from background. The
white background wasn't enough contrast to make them scannable.
Also try to make pre blocks full bleed to the right to use all
available screen space without overflowing the screen. This makes
viewing, cut/paste etc. the examples easier. When pre extends past
edge of screen, pre will overflow and scrolling will kick in.
I still have an issue with pre inside tables. They cause the table to
overflow. Hence the page needs to be x-scrolled. I can change the
restructured text to insert a div/container and set the conteiner to
scroll on overflow, but I don't have another good answer at the moment.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 16 May 2023 19:37:13 -0400 |
| parents | 075a2f6d703b |
| children | 186956a87ad7 |
line wrap: on
line source
TMP := _tmp HTML := html .PHONY: help clean html linkcheck help: @echo "Please use \`make <target>' where <target> is one of" @echo " html to make standalone HTML files" @echo " linkcheck to check all external links for integrity" clean: -rm -rf $(TMP) $(HTML) docs COPYING.txt docs: ln -s ../../doc ./docs ln -s ../../COPYING.txt # after upgrade to sphinx 1.8.5, search.html is missing load of searchtools. # fix that in postprocess # also sed index.html to properly format meta og:... entries. html: docs rm -rf html mkdir -p $(TMP)/doctrees $(HTML) sphinx-build -n -W -b html -d $(TMP)/doctrees . $(HTML) # install searchtools.js into search page. grep 'searchtools.js' html/search.html || sed -i -e '/language_data.js/s#</script>#</script>\n <script type="text/javascript" src="_static/searchtools.js"></script>#' html/search.html # sphinx inserts \: for : in meta tags. Get rid of the \ in # opengraph tags sed -i -e '/<meta/s/og\\:/og:/' \ -e '/<meta/s/name="og:/property="og:/' html/index.html cp robots.txt html/robots.txt linkcheck: mkdir -p $(TMP)/linkcheck $(TMP)/doctrees sphinx-build -b linkcheck -d $(TMP)/doctrees . $(TMP)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in .build/linkcheck/output.txt."
