comparison website/www/Makefile @ 6666:54af7ce65e6e

Add canonical url link in header Add canonical url to all pages. Requires upgrade to at least 1.8.0 of sphinx. Upgraded virualenv on sourceforge to have sphinx 1.8.5 to allow it to work. Hand patched the files on sourceforge and deployed. Also added a postprocess step to Makefile needed on sourceforge to load searchtools.js.
author John Rouillard <rouilj@ieee.org>
date Mon, 09 May 2022 19:57:16 -0400
parents 977e0ef08406
children 4eee1aa1103e
comparison
equal deleted inserted replaced
6665:bd4097fa0671 6666:54af7ce65e6e
13 13
14 docs: 14 docs:
15 ln -s ../../doc ./docs 15 ln -s ../../doc ./docs
16 ln -s ../../COPYING.txt 16 ln -s ../../COPYING.txt
17 17
18 # after upgrade to sphinx 1.8.5, search.html is missing load of searchtools.
19 # fix that in postprocess
18 html: docs 20 html: docs
19 mkdir -p $(TMP)/doctrees $(HTML) 21 mkdir -p $(TMP)/doctrees $(HTML)
20 sphinx-build -n -W -b html -d $(TMP)/doctrees . $(HTML) 22 sphinx-build -n -W -b html -d $(TMP)/doctrees . $(HTML)
23 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
21 24
22 linkcheck: 25 linkcheck:
23 mkdir -p $(TMP)/linkcheck $(TMP)/doctrees 26 mkdir -p $(TMP)/linkcheck $(TMP)/doctrees
24 sphinx-build -b linkcheck -d $(TMP)/doctrees . $(TMP)/linkcheck 27 sphinx-build -b linkcheck -d $(TMP)/doctrees . $(TMP)/linkcheck
25 @echo 28 @echo

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