]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
add width + overflow to keep toc from flowing out of sidebar
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Nov 2022 20:54:11 +0000 (15:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Nov 2022 20:57:21 +0000 (15:57 -0500)
also add sphinx-autobuild to the makefile

Change-Id: I7abd08cefe98d6b57394fad20bd06c3e0b928465
References: https://github.com/sphinx-doc/sphinx/issues/11000
(cherry picked from commit 9eafd483018775d9e1144512ed820ba2a80d2e61)

docs/build/Makefile
docs/build/_static/nature_override.css
docs/build/conf.py

index 8762826f71732ebc7de28ca337391868a8bf5467..c87a87a41c9f546e79c2d2ab8868cbd0ecaaa35b 100644 (file)
@@ -4,6 +4,7 @@
 # You can set these variables from the command line.
 SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
+AUTOBUILD     = sphinx-autobuild  --port 8080  --watch ../../lib
 PAPER         =
 BUILDDIR      = output
 
@@ -12,11 +13,12 @@ PAPEROPT_a4     = -D latex_paper_size=a4
 PAPEROPT_letter = -D latex_paper_size=letter
 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
-.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+.PHONY: help clean html autobuild dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
 
 help:
        @echo "Please use \`make <target>' where <target> is one of"
        @echo "  html      to make standalone HTML files"
+       @echo "  autobuild  autobuild and run a webserver"
        @echo "  dist-html same as html, but places files in /doc"
        @echo "  dirhtml   to make HTML files named index.html in directories"
        @echo "  pickle    to make pickle files"
@@ -36,6 +38,9 @@ html:
        @echo
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
+autobuild:
+       $(AUTOBUILD) $(ALLSPHINXOPTS) $(BUILDDIR)/html
+
 dist-html:
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
        cp -R $(BUILDDIR)/html/* ../
index 33c0d055ff4567a6367ccaa77b6037ab2d9f8aae..57798ad1fadcfe9f5c8f279143ddf4f931044808 100644 (file)
        font-style: italic;
 }
 
+div.documentwrapper div.bodywrapper { margin-left: 350px;}
+div.document div.sphinxsidebar { width: 350px; }
+
+div.sphinxsidebarwrapper div {
+    overflow: auto;
+}
+
+
index ba76b825e626515769f391fd88ec66e0b6ebdec9..11a0e7f0ff9fcefd0dd9e86126e1a552e11500e1 100644 (file)
@@ -150,6 +150,7 @@ html_style = "nature_override.css"
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
+# NOTE: use nature_override.css, not this
 # html_theme_options = {}
 
 # Add any paths that contain custom themes here, relative to this directory.