| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
| | |
|
| |
|
|
|
|
|
| |
The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1].
It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports.
[1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Delete jQuery and underscore.js
* Move underscores.js setup to searchtools.js
* Update jQuery.url(en|de)code
* Update jQuery.getQueryParameters
* Firefox bug is no longer present
xref https://bugzilla.mozilla.org/show_bug.cgi?id=645075#c49
* Update jQuery.fn.highlightText
* Use enum instead of magic number
* Update test descriptions to remove obsolete jQuery reference
* Update Documentation.getCurrentURL
* Revert accidental fix of Documentation.getCurrentURL
* Update Documentation.initOnKeyListeners
* Update Documentation.hideSearchWords
* Update Documentation.highlightSearchWords
* Update Documentation.initDomainIndexTable
* Use arrow functions and const
* Replace $(document).ready
* Strict mode
* Move Documentation.hideSearchWords next to Documentation.highlightSearchWords
* Update translation functions in Documentation
* Replace $(document).ready in searchtools.js
* Update Scorer
* Update Search.hasIndex, Search.deferQuery, Search.stopPulse
* Prefer window.location
* Update Search.init
* Update Search.loadIndex
* Update Search.setIndex
* Update Search.startPulse
* Add _escapeRegExp
* Update Search.makeSearchSummary
* Update Search.htmlToText
* Update Search.performSearch
* Factor out _displayNextItem
* Update Search.query
* Update Search.performObjectSearch
* Update Search.performTermsSearch
* Remove underscores.js setup
* Use Sets
* Update test configuration
* Fix test failures
* Drop unused make/get URL functions
* Strict mode in searchtools.js
* Remove outmoded check for jQuery and underscore.js
* Ran prettier
prettier --print-width 120 --no-semi --quote-props as-needed --no-bracket-spacing --arrow-parens avoid --write sphinx/themes/basic/static
* Remove more references to jQuery and underscore.js
* Remove jQuery and underscore.js licences
* Update classic theme for no jQuery
* Update all other themes for no jQuery
* Restore jQuery & underscores.js to Sphinx themes
Enables a more gradual deprecation
* Added deprecation note to CHANGES
* Run prettier with defaults
* Update deprecation message to include extensions, note that sources must be copied
* oops
* Address Pradyun's feedback
* Forgot this one
* `let` doesn't work, as it is scoped to the block...
* Remove missed jQuery in sphinx13 theme
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |\
| |
| | |
Allow user to use url to reference html logo & favicon
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
To embed the external favicon and logo image, this adds new template
variable `favicon_url` and `logo_url` that point the external URL or
relative path for the favicon/logo file from current file. It helps to
use it on template files.
|
| | | |
| | |
| | |
| | | |
as values
|
| | |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
To make CSS customizable, all CSS files in basic/layout.html has their
priority: 200. Therefore, extensions and users can insert their own
custom CSS files before or just after them.
As a side effect, the CSS tags in basic/layout.html are removed. These
CSS files will be rendered via `css_files` template variable.
refs: #8634, c5f03980107e123210fb602f4c31f5ae950e2af4
|
| | |
| |
| |
| |
| |
| |
| | |
.. 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
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- url_root is set to `#` on the index page, which layout.html tries to
change back to `''` (the empty string).
- But, this updated url_root wasn't used in the actual location, as an
argument to `documentation_options.js`.
- Thus, clever enough templates, which tried to use
`$DOCUMENTATION_OPTIONS.URL_ROOT` inside javascript would fail.
This was manifested as broken links, which led to this issue:
https://github.com/executablebooks/sphinx-copybutton/issues/110
- I have eventually traced that back to sphinx itself, and found that
layout.html tried to fix the problem, but the fixed value wasn't
used.
- This fix works in my basic test, but I will continue with more tests.
- Review:
- someone more clever should examine this and make sure it makes
sense
- This does not have tests. Should it?
|
| | |
|
| | |
|
| |
|
| |
Viewport meta tag is necessary to make layout responsive. Without it, the layout is rendered for desktop size and then scaled down, making text small and difficult to read. It also makes a site fail Google Lighthouse audits.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\
| |
| | |
Escape some links in HTML templates
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In HTML5, <script> elements default to MIME type text/javascript. The
HTML5 living standard and MDN recommend against including the attribute.
From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#attr-type
> The HTML5 specification urges authors to omit the attribute rather
> than provide a redundant MIME type.
From https://html.spec.whatwg.org/#the-script-element
> Authors should omit the type attribute instead of redundantly setting
> it.
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
pathto doesn't expand in non-HTML templates so the workaround involves
expanding it in the HTML file and passing it as a data attribute to
the script.
|
| |/ |
|
| | |
|
| |
|
| |
Was a mistake in 618ef6492c89c50f263c4c6c5794e40e35f91be8
|
| |
|
|
| |
file (refs: #3620)
|
| |\
| |
| | |
Themes: Add language to javascript vars list
|
| | | |
|
| |\ \
| |/
|/| |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Sometimes users might want to override this tag to include custom information such as `id`s e.g:
`<body id="page-top">`
Can be done with `{%- block body_tag %}<body id="page-top">{% endblock %}`
|
| | | |
|
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Thanks to tk0miya's comment, I learnt one can add stuff to template
blocks, that allows a much simpler stylesheet configuration, considering
that changes at the template level will be more... well, low-level.
Hopefully this is now acceptable.
|