summaryrefslogtreecommitdiff
path: root/doc/conf.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove the deprecated Setuptools integration (#11363)Adam Turner2023-04-271-3/+0
|
* Enable 'nit-picky mode' for Sphinx's documentationAdam Turner2023-04-061-0/+57
| | | | | Fix several reference errors throughout the documentation and set ``nitpick_ignore`` in ``doc/conf.py``.
* Remove obsolete workarounds in ``doc/conf.py`` (#11250)Dmitry Shachnev2023-03-231-16/+0
| | | | | | | Loading jQuery is not needed since January 2023: https://github.com/readthedocs/readthedocs.org/pull/9861 And exposing app.{info,warn,debug} is not needed since September 2018: https://github.com/readthedocs/readthedocs-sphinx-ext/pull/51
* remove blanket 'noqas'Daniel Eades2022-12-161-3/+5
|
* Avoid a cramped LaTeX table column in our own documentJean-François B2022-10-301-0/+1
| | | | | | | | | | | | | | This is for the table of the Websupport.get_data() auto-documentation. Somethink similar perhaps \setlength{\tymin}{1.5cm} at least could be a global default; the only reason we have not changed it yet is that perhaps some tables in user projects use really short contents such as letter. (what we would want to avoid is narrow columns allowed by hyphenation of single words; maybe some thinking needed here as \sphinxAtStartPar renders this hyphenation possible but perhaps even upstream LaTeX has now made hyphenation of single words work in table cells).
* Run the ``pyupgrade`` toolAdam Turner2022-10-171-1/+1
|
* LaTeX: switch to some nicer defaults for tables and code-blocks (#10924)Jean-François B2022-10-171-7/+0
|
* Merge branch '5.x'Adam Turner2022-10-161-1/+2
|\ | | | | | | | | | | | | | | # Conflicts: # .github/workflows/main.yml # CHANGES # sphinx/__init__.py # sphinx/domains/c.py
| * s/5.2.0/5.3.0 in various code comments as #10759 got merged in 5.3.0Jean-François B2022-10-121-1/+1
| |
| * LaTeX: support for booktabs-style and zebra-striped tables (#10759)Jean-François B2022-10-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of 2 + 28 + 7 + and some more commits... * Cherry-pick: Add support for booktabs-style tables to LaTeX builder * Cherry-pick: Add support for zebra-striped tables to LaTeX builder Co-authored-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> Above work originally initiated by @sephalon (thanks!) Development refactored and continued by @jfbu * latex_table_style configuration, support booktabs, colorrows, borderless Some details: - Simplify a bit a conditional in the longtable template This also puts the target for a longtable with a label but no caption above the toprule for better hyperlinking (testing shows hyperlink target can not end up alone at bottom of previous page). - Extend allowed syntax for colour assignments via 'sphinxsetup' - latex_table_style new configuration value and coloured rows For the user interface I tried to look for inspiration in https://docutils.sourceforge.io/docs/user/config.html#table-style which mentions booktabs and borderless. They also mention captionbelow which we can implement later, now that architecture is here. They don't mention coloured rows. - Test on our own document... looks fine! - Work-around an incompatibility of \cline with row colours - Reverse priority of classes to allow overruling booktabs by standard after parsing source but before letting LaTeX writer act - Closes #8220 Commit https://github.com/sphinx-doc/sphinx/commit/bb859c669679baebd8cc8d10c99382478c0d1647 already improved a bit, this finishes it (as :rst:dir:`rst-class` was actually not linking to anywhere). - Let booktabs style defaults to *not* using \cmidrule. They actually don't make much sense there, as all \hline's are removed. - Add \sphinxnorowcolor which allows construct such as this one in a tabularcolumns directive: >{\columncolor{blue}\sphinxnorowcolor} else LaTeX always overrides column colour by row colour - Add TableMergeColorHeader, TableMergeColorOdd, TableMergeColorEven so single-row merged cells can be styled especially - Extend row colours to all header rows not only the first one (all header rows will share same colour settings) - Auto-adjust to a no '|'-colspec for optimal handling of merged cell - Add \sphinxcolorblend - Workaround LaTeX's \cline features and other grid tables matters - Add \sphinxbuildwarning for important warnings - Fix some white gaps in merged cells of tables with vlines and colorrows - Work around LaTeX's \cline serious deficiencies for complex grid tables This commit corrects \cline badly impacting vertical spacing and making tables look even more cramped as they usually are in LaTeX (although one sees it clearly only with \arrarrulewidth a bit more than the LaTeX default of 0.4pt). Most importantly this commit solves the problem that \cline's got masked by colour panels from the row below. - Update CHANGES for PR #10759 - Improve documentation of new latex_table_style regarding colours
* | Merge branch '5.x'Adam Turner2022-09-251-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | # Conflicts: # CHANGES # doc/conf.py # sphinx/__init__.py # sphinx/builders/html/__init__.py # sphinx/domains/python.py # tests/test_build_html.py
| * Split out `sphinx_highlight.js`Adam Turner2022-09-241-0/+1
| |
* | Merge branch '5.x'Adam Turner2022-07-171-1/+2
|\ \ | |/
| * Merge pull request #10648 from jfbu/latex_enhancedboxesJean-François B2022-07-141-1/+2
| |\ | | | | | | LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii
| | * LaTeX: enhanced boxes with padding, borders, shadows, rounded cornersJean-François B2022-07-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - LaTeX: box padding (t,r,b,l), borders (t,r,b,l), shadows (x,y) or radii - LaTeX: fix #10650 via usage of our own sophisticated \fcolorbox - LaTeX: user interface via 'sphinxsetup' to enhanced code-blocks frames - LaTeX: user interface via 'sphinxsetup' to enhanced topic boxes - LaTeX: CSS-named-alikes 'sphinxsetup' options for code-blocks and topics - LaTeX: CSS-named-alikes 'sphinxsetup' keys for warning type notices (fix #10651) - LaTeX: documentation of the new CSS-like options - LaTeX: remove #10619 documentation, as the #10619 added shadowBorderColor and shadowShadowColor now named respectively: aside.topic_border-TeXcolor and aside.topic_box-shadow-TeXcolor - LaTeX: use div.topic option prefix and not aside.topic for CSS-like options - LaTeX: keep the implicit legacy padding of warning type boxes as default behaviour
* | | Merge branch '5.x'Adam Turner2022-07-101-11/+18
|\ \ \ | |/ /
| * | Refresh the Sphinx13 theme (#10652)Adam Turner2022-07-101-11/+13
| |/
| * LaTeX: optional rounded corners for framing of code-blocksJean-François B2022-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | Via a new configuration verbatimradius of 'sphinxsetup', which defaults to 0pt. If this dimension is non zero, the LaTeX package pict2e will be loaded to help construct frames with rounded corners for code-blocks. And if the LaTeX package pict2e was not found, a LaTeX warning is issued during PDF build.
* | Add underscore.js to the sphinx13 theme (#10588)Adam Turner2022-06-191-1/+3
| |
* | Fix #10574: Failed to search on sphinx-doc.org (again)Takeshi KOMIYA2022-06-191-1/+2
| | | | | | | | | | To make RtD search available, this adds jQuery patches on old Sphinx to sphinx-doc.org.
* | Fix #10574: Failed to search on sphinx-doc.orgTakeshi KOMIYA2022-06-191-0/+4
| | | | | | | | | | Since 6.0, jQuery has not been loaded by default. It affects to the search feature of RtD. This loads jQuery again to make it available.
* | Remove deprecated items for Sphinx 6.0 (#10471)Adam Turner2022-06-161-2/+2
|/
* Merge branch '4.x' into 5.0.xTakeshi KOMIYA2022-05-281-1/+1
|\
| * Update URL for requestsTakeshi KOMIYA2022-05-281-1/+1
| |
* | Don't use deprecated `setup.py build_sphinx`Adam Turner2022-04-161-2/+2
| |
* | Merge branch '4.x'Takeshi KOMIYA2022-03-271-1/+1
|\ \ | |/
| * doc: URL of requests has changed nowTakeshi KOMIYA2022-03-271-1/+1
| |
* | doc: Linkify issue numbers in changelog to GitHubMartin Fischer2022-01-081-0/+24
| |
* | Merge branch '4.x'Takeshi KOMIYA2022-01-011-1/+1
|\ \ | |/
| * A happy new year!Takeshi KOMIYA2022-01-011-1/+1
| |
* | Merge branch '4.x'Takeshi KOMIYA2021-12-101-0/+1
|\ \ | |/
| * Describe deployment on Read the Docs and GitHub PagesJuan Luis Cano Rodríguez2021-11-181-0/+1
| |
* | Merge branch '4.x'Takeshi KOMIYA2021-09-121-1/+1
|\ \ | |/
| * Update Sphinx url: s|https?://sphinx-doc\.org/|https://www.sphinx-doc.org/|gJon Dufresne2021-09-061-1/+1
| | | | | | | | | | | | https://sphinx-doc.org is unreachable, but is linked from the PyPI page: https://pypi.org/project/Sphinx/. Switch to https://www.sphinx-doc.org/ instead.
* | Merge branch '4.x'Takeshi KOMIYA2021-05-191-4/+4
|\ \ | |/
| * doc: Upgraded some of sphinx-doc.org links to HTTPSigo958622021-05-161-1/+1
| | | | | | | | | | Seems like that link is used in some tests and code so upgrading it outside documentation might break something
| * doc: Upgrade docutils.sourceforge.io links to HTTPSigo958622021-05-161-3/+3
| | | | | | | | | | Also change any docutils.sourceforge.net link to io top level domain.
* | extlinks: Emit a warning if extlnks config does not contain '%s'Takeshi KOMIYA2021-05-031-3/+3
|/ | | | | | To let users know the deprecation surely, use logger.warning instead of RemovedInSphinxXXWarning since 5.0. It will cause a crash if users use `-W` option on their CI.
* Merge branch 'master' into pdf_bookmarksdepthJean-François B2021-03-121-1/+2
|\
| * Close #7549: autosummary: Enable autosummary_generate by defaultTakeshi KOMIYA2021-03-101-0/+1
| |
| * Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-1/+1
| | | | | | | | | | | | To describe the purpose more accurately, the `master_doc` is now renamed to `root_doc`. The old name is still available. But it is recommeneded to use new one from now on.
* | LaTeX: let bookmarks use high default depthjfbu2021-02-181-2/+1
|/ | | | Add bookmarksdepth key to latex_elements['sphinxsetup']
* Merge branch '3.x'Takeshi KOMIYA2021-02-091-0/+1
|\
| * Fix #8837: doc: Remove version info from html_titleTakeshi KOMIYA2021-02-071-0/+1
| |
* | Revert alteration at c9480f994 merge of 3.x of doc/conf.pyjfbu2021-01-271-12/+0
|/ | | | | | | Compare doc/conf.py after merge at c9480f994 to what it was at 2ee033838. It loses the modification from #8716 (merged at 38c614347) and thus reverts doc/conf.py to former font config using mathpazo.
* Improve Sphinx own pdf docsjfbu2021-01-241-2/+9
| | | | | | | | | | | | | Prior to this the depth of the bookmarks is too low, one does not even get to see for example what are the built-in extensions offered by Sphinx. Similarly the LaTeX created table of contents has not enough depth. Dozens of contiguous pages from our documentation get only a single link, it is very hard for newcomer to get some feeling of the scope of Sphinx. With a more detailed table of contents (be it inside the PDF or via the collapsable bookmark panel of PDF viewer) learning Sphinx is easier.
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* Fix #6629: linkcheck: Handle rate-limitingFrançois Freitag2020-11-251-1/+4
| | | | | Follow the Retry-After header if present, otherwise use an exponential back-off.
* Sort imports with isortFrançois Freitag2020-11-111-1/+0
| | | | | | | | | | | | Keep imports alphabetically sorted and their order homogeneous across Python source files. The isort project has more feature and is more active than the flake8-import-order plugin. Most issues caught were simply import ordering from the same module. Where imports were purposefully placed out of order, tag with isort:skip.
* DOC: Add faviconMatthias Geier2020-10-241-0/+1
|