Commit Graph
100 Commits
Author SHA1 Message Date
Aaron Carlisle 24e0374249 Fix header links for captions in tables and figures 2021-08-10 21:50:50 -04:00
Aaron Carlisle 474f2ee131 Merge branch 'docutils0.17.1' of github.com:readthedocs/sphinx_rtd_theme into docutils0.17.1 2021-08-10 21:43:07 -04:00
Aaron Carlisle 1a8a6b3a28 Fix varying margins under headings
It seems that browsers add some special default styling to header tags :(

I found that for smaller heading tags, like h5 could give more padding then h1 tags...

To fix this, everything should now just recieve the theme standard of 24px bottom margin.
2021-08-10 21:43:03 -04:00
Aaron Carlisle e24e5029de Revert back to more restrictive css selector for images 2021-08-10 21:31:45 -04:00
Aaron Carlisle 28fa50e168 Fix some caption are not italic 2021-08-10 21:31:05 -04:00
Aaron Carlisle a3a890da1b Fix broken math link icon
This likely was indirectly broken with da86e4dc62

This commit addes our standard headerlink icon styles to math links aswell, before they had no styling.

Fixes #1189
2021-08-09 17:46:19 -04:00
Aaron Carlisle e555f94ae1 Support all versions less than 0.18 2021-08-09 16:50:15 -04:00
Aaron Carlisle 34f81daaf5 Add support for docutils 0.17
This should'nt be a breaking change as backward compatibility is preserved so this change could go into 1.0 or wait until 1.1.

I know a lot of users are asking for this so it might be nice to include this in 1.0.

Fixes #1115
2021-08-06 15:07:41 -04:00
Aaron Carlisle 047169a972 Restore highlighted code lines span full width 2021-07-17 11:26:51 -04:00
Aaron Carlisle 8d93cdea10 Italize keywords 2021-07-17 11:13:35 -04:00
Aaron Carlisle 0073409aaa Merge branch 'master' into agj/add-build-test 2021-07-15 08:49:08 -04:00
Aaron Carlisle 796e78bdf7 Make font usage conistent with sphinx<4.0
This fixes the different spacing issues that were noted.
2021-07-14 16:48:17 -04:00
Aaron Carlisle 037890d1d1 Merge branch 'Blendify/sphinx4' of github.com:readthedocs/sphinx_rtd_theme into Blendify/sphinx4 2021-07-13 21:04:18 -04:00
Aaron Carlisle da20decbbb Compare sphinx version using a tuple 2021-07-13 21:04:16 -04:00
Aaron Carlisle d93528ef3e Tests: Add missing sphinx version 2021-07-13 19:47:25 -04:00
Aaron Carlisle e1716574e9 Merge branch 'master' into Blendify/sphinx4 2021-07-13 19:44:47 -04:00
Aaron Carlisle 2ab605a455 Tests: Fix deprecation warning with new sphinx versions (#1105)
* Tests: Fix deprecation warning with new sphinx versions

These builders where split in sphinx and the old import path will be removed in the upcoming Sphinx 4 release.

This patch requires sphinx 2 so this will be committed into the v2 release.

* Fix imports

* Use try/except for backwards compatibility
2021-07-13 05:16:47 -04:00
Aaron Carlisle 0ef60e7841 Tests: run against sphinx 4.1 2021-07-12 20:49:30 -04:00
Aaron Carlisle 15d91096b1 Fix api docs css for sphinx4 2021-07-12 20:27:15 -04:00
Aaron Carlisle 1f45c113b6 Fix user-select line numbers class name 2021-07-12 18:57:53 -04:00
Aaron Carlisle b47f8b343b Merge branch 'master' into Blendify/sphinx4 2021-07-12 18:36:08 -04:00
Aaron CarlisleandAnthony e94984caec Make sphinx version comparison constistent
Co-authored-by: Anthony <aj@ohess.org>
2021-07-12 18:36:03 -04:00
Aaron Carlisle 09e9e1004c Merge branch 'master' into Blendify/sphinx4 2021-06-22 18:50:15 -04:00
Aaron Carlisle b2323ce07f Merge branch 'master' into Blendify/python-compat 2021-06-22 18:47:00 -04:00
Aaron Carlisle bd9010f14d Update layout.html 2021-06-09 20:26:36 -04:00
Aaron Carlisle b73b67eb33 Revert "Test with official beta"
This reverts commit db302055b9.
2021-04-12 19:34:18 -04:00
Aaron Carlisle db302055b9 Test with official beta 2021-04-12 19:09:41 -04:00
Aaron Carlisle 836467e4b9 Add compatibility for sphinx4
Sphinx 4.x moves javascript and css declarations to `script_files` and `css_files`. This patch fixes duplicatd link and script tags when using sphinx4

Sphinx 4.x changes the default setting of html_codeblock_linenos_style to 'inline' and deprecates `html_codeblock_linenos_style`. The css for `.hll` to make the hightling span the full line cause the line number and code to be split on seperate lines. I could not get the highlight to span the full line so it was removed completely. I also made line numbers not selectible by the user.

This changes also adds the needed changes to the tox testing enviorment alhough, sphinx4 is not officially released to pypi yet. You will need to test these changes locally using: `pip install git+https://github.com/sphinx-doc/sphinx@master`
2021-04-10 16:50:34 -04:00
Aaron Carlisle 3db4e2fbfe Cleanup: Sass formatting (#1119)
* Cleanup: Sass formatting

This patch addresses some sass formatting to make the code easier to read:

- Use leading zeros on decimals less than 1
- Use parentheses around math for css propeties with multiply arguments
- Spaces after commas in arguments

In the future it would be nice to automatically format this with a tool like style lint.

* Revert Extra Tabbing

* Add back missing line

* Add whitespace back

* Fix whitespace 2
2021-04-08 23:31:36 -04:00
Aaron Carlisle 2f12da38c6 Add Missing version bumps for 0.5.2 (#1120)
Found while looking into #1117
2021-04-08 20:40:33 -04:00
Aaron Carlisle 60a094bb13 Merge branch 'master' into Blendify/python-compat 2021-04-08 17:19:58 -04:00
Aaron Carlisle aa28eecc3a Docs: Fix intersphinx_mapping (#1110)
Sphinx documentation has moved from https://www.sphinx-doc.org/en/stable/ to https://www.sphinx-doc.org/en/master/

Fixes the command line message:
```
intersphinx inventory has moved: https://www.sphinx-doc.org/en/stable/objects.inv -> https://www.sphinx-doc.org/en/master/objects.inv
```
2021-04-02 12:21:54 -04:00
Aaron Carlisle bba36677de Merge branch 'master' into Blendify/python-compat 2021-03-31 22:09:45 -04:00
Aaron Carlisle c984d08dae Cleanup: Use page_source_suffix (#1104)
Use `page_source_suffix` instead of checking `source_suffix`

Since we now require sphinx 1.6 we can cleanup this old workaround for old sphinx versions.
2021-03-30 12:42:04 -04:00
Aaron Carlisle fe934ec0d4 Merge branch 'master' into Blendify/python-compat 2021-03-29 22:08:21 -04:00
Aaron Carlisle 7417ff92bd Update Changelog for v1.0 (#1103)
This includes all major affecting changes that have already been committed to master since the last release.
2021-03-29 19:08:22 -04:00
Aaron Carlisle 65723affd8 Merge branch 'master' into Blendify/python-compat 2021-03-29 17:15:34 -04:00
Aaron CarlisleandSantos Gallegos 3693d4c325 Add deprecation warning for dropping Sphinx 2 and Python 2 support (#1099)
* Add deprecation warning for dropping Sphinx 2 and Python 2 support

Fixes #1092

* Cleanup version imports

* Update __init__.py

* Update sphinx_rtd_theme/__init__.py

Co-authored-by: Santos Gallegos <santos_g@outlook.com>

Co-authored-by: Santos Gallegos <santos_g@outlook.com>
2021-03-29 15:57:14 -04:00
Aaron Carlisle 6f684828ed npm: Update dependencies (simple) (#1096)
This simply runs `npm update` so there are no breaking changes.
2021-03-22 13:26:56 -04:00
Aaron Carlisle 4d196ce134 Add python version requirements to setup.py
This is need in the future so we can gracefully remove python 2.7 support.
See #1075.
2021-03-17 18:29:02 -04:00
Aaron Carlisle 114fb85b44 Require Sphinx 1.6 deprecate html4 (#1091)
Sphinx 1.6 is required for de76c03824 we also do not test against versions lower than 1.6 so we should safely drop it.

This is similar to #1076 and #1075 but less strict
2021-03-15 18:05:20 -04:00
Aaron Carlisle 68d4b8aac7 Javascript: Add support for deep toc levels (#1089)
In ca015a5704 support was added for tox levels up to 10.
This only fixed the css side, this commit makes a similar fix for the js side.

Fixes #893
2021-03-15 13:51:06 -05:00
Aaron Carlisle 85f23c9edc Docs: Add text before config api type information (#1090)
* Docs: Add text before config api type information

This makes it more clear what the confval is for without having to read through the type information.

This matches usual sphinx autodoc behavior.

* Only use one space above headings
2021-03-15 09:49:13 -05:00
Aaron Carlisle b33d06444e npm: Add a few missing package fields (#1079)
* npm: Add a few missing package fields

This fixes these warnings when running `npm install`:

```
npm WARN sphinx_rtd_theme@0.5.1 No repository field.
npm WARN sphinx_rtd_theme@0.5.1 No license field.
```

* 0.5.2

* Revert version bump

* Revert version bump
2021-03-12 18:12:31 -05:00
Aaron Carlisle ba1cbb1c07 Docs: Always use local theme (#1083)
This changes non PR builds on rtd to use the local theme and not the old 0.4.3 theme. We want our docs to show what the theme looks like based on the current release, not an old version.
2021-03-12 15:17:35 -05:00
Aaron Carlisle b35637651b Tests: Remove test for sphinx version no longer supported (#1071)
We no longer run tests against sphinx 1.4 so this can be removed.
2021-03-11 10:01:14 -05:00
Aaron Carlisle de76c03824 Revert "Fix problem triggered by unconditional toctree call and empty toctree" (#507)
Fixes #374
2021-03-11 09:59:21 -05:00
Aaron Carlisle 894aef556e Cleanup: Use Proper Sass Syntax (#1069)
Sass does not use semicolons at the end of lines. Also remove dead code.
2021-03-04 09:38:29 -05:00
Aaron Carlisle 4ad33d0197 Nav: Fix right padding on level2+ (#1068)
The sets the right padding the same as the first level.
The current padding is too large and varies between toc levels.
Now, the right padding is the same between all levels and only the left padding changes
2021-03-04 09:34:28 -05:00
Aaron Carlisle e001cca56f Fix Nav Buttons Size (#1067)
Currently, Nav buttons to expand the menu are a bit small and do not match the link text.
This makes the font size and line-height match between the text and icon.
2021-03-03 20:17:05 -05:00
Aaron Carlisle 8ba9c8ac0b Templates: Cleanup Whitespace (#1060)
While not perfect this cuts it down a lot and makes the html output much 
cleaner
2021-03-01 10:09:03 -05:00
Aaron Carlisle 331ba4e93c Update issue templates (#1062)
* Update issue templates

Updates the issue templates to the new GitHub versions

* Delete ISSUE_TEMPLATE.md
2021-03-01 09:39:40 -05:00
Aaron Carlisle e93295cb92 Templates: Add block for footer content info (#896)
Allows users to expand this area to add their own content
2020-12-03 18:39:12 -05:00
Aaron Carlisle 24f8e31c5b html search: Do not load language_data.js in non-search pages (#1021)
This is needed with changes in sphinx 3.4.x.

See https://github.com/sphinx-doc/sphinx/commit/f5289bb69993d2b1f83a509f56e418fcd5d00b87
2020-12-02 11:00:03 -05:00
Aaron Carlisle 562bc2a35d Cleanup: Make Copyright template match sphinx's basic (#933)
This matches https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/themes/basic/layout.html
2020-11-30 12:56:05 -05:00
Aaron Carlisle cb16df13b4 Merge branch 'master' into agj/better-webpack-dev-server 2020-05-04 16:41:16 -04:00
Aaron Carlisle 3503493094 Remove Extra Padding on Highlighted search results (#860)
* Remove Extra Padding on Highlighted search results

There are some cases where the highlighted CSS class creates overlapping text, for example on [Rendering » Shader Nodes » Texture](https://docs.blender.org/manual/en/dev/render/shader_nodes/textures/index.html?highlight=texture) when highlighting "texture". 

This issue is exacerbated by some custom styling rules that we have set, however, this issue is still visible in the stock theme.

* Address Review Comments

- Use constant instead of a magic number
- Remove Padding
2020-04-06 11:30:15 -04:00
Aaron Carlisle 80ad848bfc Correct Sass syntax 2019-10-26 10:35:13 -04:00
Aaron Carlisle a4bacd2bab Docs: Fix use of code console 2019-10-23 11:08:08 -04:00
Aaron Carlisle 9138108f7f Fix #787 2019-10-22 16:53:53 -04:00
Aaron Carlisle 256c3f2cbb Fix #837 Duplicate CSS Properties 2019-10-22 16:45:50 -04:00
Aaron Carlisle bad21120c8 Horizontal Lists: Use full width (#775)
* Horizontal Lists: Use full width

* Cleanup: Whitespace
2019-07-17 20:54:29 -04:00
Aaron Carlisle f787cceadf Breadcrumbs use home icon instead of "Docs"
This gives more room for longer breadcrumbs and makes the theme a little bit more generic. For example, people might use the theme for other purposes then hosting "docs".
2019-07-08 21:32:34 -04:00
Aaron Carlisle a49a812c88 Remove deprecated use of script_files (#728)
* Remove deprecated use of script_files

Fixes https://github.com/sphinx-doc/sphinx/issues/6088

* Add script block

* Fix build error
2019-04-03 10:42:19 -04:00
Aaron Carlisle f9a2fe45d3 Update .travis.yml 2019-03-07 09:46:56 -05:00
Aaron Carlisle 7050db07bf Merge branch 'master' into master 2019-03-07 09:39:35 -05:00
Aaron Carlisle 8992188965 Remove requirements file thats not needed 2019-03-06 10:18:50 -05:00
Aaron Carlisle 8ac46387ac Delete requirements.txt 2019-03-06 10:18:14 -05:00
Aaron Carlisle 2c15fde411 Lists not indented properly on genindex.html (#676)
* Lists not indented properly on genindex.html

I haven't tested this yet but it is a start to fixing this. No need to review yet.

Fixes #671

* Update CSS Selector

This should also fix #685

* Remove styling for contents
2018-12-07 21:52:45 -05:00
Aaron Carlisle 3f635171fa Update breadcrumbs.html 2018-12-07 21:46:38 -05:00
Aaron Carlisle eea17fe963 Previous button float left
Fixes #621
2018-12-04 21:09:30 -05:00
Aaron Carlisle a42c4d74fe Move javascript back to head (#545)
* Move javascript back to head

* Move jQuery function back to bottom

* Do not change white space

* Update comment + whitespace cleanup

* Address review points

* Fix code comments
2018-12-04 20:27:37 -05:00
Aaron Carlisle 5b7d202a11 Small visual improvement to captions in toctree (#665)
* Small visual improvement to captions in toctree

* Add new nav-caption internal var

* Use colored text and add margin

* Nav captions now have independent color

Co-Authored-By: Blendify <carlisle.b3d@gmail.com>

* De saturate the bright blue captions

Co-Authored-By: Blendify <carlisle.b3d@gmail.com>
2018-12-04 12:43:45 -05:00
Aaron Carlisle ab89bb161f Revert change
Reverts fffca44dce
2018-11-05 10:49:31 -05:00
Aaron Carlisle fffca44dce Remove bad import 2018-11-05 10:44:30 -05:00
Aaron Carlisle cd34154857 Update changelog.rst 2018-11-05 10:38:28 -05:00
Aaron Carlisle 71c6d8ecf7 Requirements: Used numbered version 2018-11-05 10:36:36 -05:00
Aaron Carlisle 83b8084523 Merge branch 'master' into master 2018-11-04 13:34:35 -05:00
Aaron Carlisle 7ea8ac1529 Tests: Include Tests in Pypi distribution 2018-10-05 15:04:58 -04:00
Aaron Carlisle da6d1dbb3d Tests: Update to new sphinx & python 2018-10-05 11:14:12 -07:00
Aaron Carlisle 95b2fdd84f Fix Grammar 2018-10-01 13:09:16 -04:00
Aaron Carlisle d75745736a Tests: Update to new sphinx & python 2018-10-01 11:05:35 -04:00
Aaron Carlisle 965c6f305c Update changelog.rst 2018-10-01 11:00:39 -04:00
Aaron Carlisle ad66515256 Merge branch 'master' into master 2018-05-24 11:48:47 -04:00
Aaron Carlisle a4fd6e01ef Docs: Move translation file 2018-04-14 15:37:46 -04:00
Aaron Carlisle cadb79f73d Update translations catalogs 2018-04-14 15:33:39 -04:00
Aaron Carlisle 81cd11d14f Revert unrelated changes 2018-04-14 15:33:00 -04:00
Aaron Carlisle 2858a0aec8 Merge branch 'master' of https://github.com/rtfd/sphinx_rtd_theme 2018-04-14 15:01:23 -04:00
Aaron Carlisle 049a1a01da Merge branch 'master' into version-in-js 2018-04-13 12:12:52 -04:00
Aaron Carlisle 7cd846b4fd Docs: correct navigation_depth discription (#609)
* Docs: correct navigation_depth discription

* Docs: add note about large toctrees

* Docs: Cleanup: use different note markup

Github does not mark the syntax correctly otherwise
2018-04-11 22:04:32 -04:00
Aaron Carlisle 117be8e186 New documentation structure
This splits the docs from the demo so that we can now actually document
the theme and its parts.
2017-12-20 18:19:03 -05:00
Aaron Carlisle d2a6253d9c Cleanup: Move images into static folder 2017-04-08 23:56:06 -04:00
Aaron Carlisle 9da9342796 Remove layout_old
This file was unused and serves no purpose
2017-04-08 18:23:52 -04:00
Aaron Carlisle 8f29534525 Revert Recent changes 2017-04-08 18:07:20 -04:00
Aaron Carlisle 9170fca5a2 Fix small typo 2017-04-08 15:59:34 -04:00
Aaron Carlisle e7e082ace8 Run grunt build 2017-03-31 21:20:11 -04:00
Aaron Carlisle fb986026b8 Update node packages 2017-03-23 00:07:01 -04:00
Aaron Carlisle ce7134e40b Run grunt build 2017-03-22 23:56:33 -04:00
Aaron Carlisle f41d88df1f Add font files via grunt 2017-03-22 23:09:44 -04:00
Aaron Carlisle 340ad42abd Add new font files 2017-03-21 18:07:48 -04:00