summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/layout.html
Commit message (Collapse)AuthorAgeFilesLines
* Allow ``copyright`` to contain multiple entries (#10983)Stefanie Molin2023-05-111-5/+21
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove HTML 4 support (#11385)Adam Turner2023-04-281-13/+3
|
* Remove obsolete HTML keyword ``link rel="shortcut"`` (#11069)Rotzbua2023-01-011-1/+1
| | | | | | | 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
* Happy New Year!Adam Turner2023-01-011-1/+1
|
* Drop JavaScript Frameworks (#10028)Adam Turner2022-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* A happy new year!Takeshi KOMIYA2022-01-011-1/+1
|
* Close #8326: Rename master_doc to root_docTakeshi KOMIYA2021-02-281-2/+2
| | | | | | 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.
* Merge pull request #8737 from tk0miya/8510_html_logo_urlTakeshi KOMIYA2021-01-241-4/+4
|\ | | | | Allow user to use url to reference html logo & favicon
| * Merge branch 'master' into 8510_html_logo_urlTakeshi KOMIYA2021-01-231-5/+3
| |\
| * | html theme: Add `favicon_url` and `logo_url`Takeshi KOMIYA2021-01-231-4/+4
| | | | | | | | | | | | | | | | | | | | | 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.
| * | Fix basic layout and html_logo & favicon config value process to support url ↵Mardelor2020-11-301-2/+2
| | | | | | | | | | | | as values
* | | refactor: html theme: Insert documentation_options.js via script_filesTakeshi KOMIYA2021-01-231-3/+0
| |/ |/|
* | refactor: Move CSS tags in basic/layout.html to ``css_files`` variableTakeshi KOMIYA2021-01-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* | 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
* | sphinx/themes/basic/layout: Set url_root properly on index, don't use '#'Richard Darst2020-12-131-2/+2
|/ | | | | | | | | | | | | | | | | | | - 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?
* Override Pygments CSS with theme CSSMatthias Geier2020-10-241-1/+1
|
* Use well-formed XML syntax.Abramo Bagnara2020-06-171-1/+1
|
* Add viewport meta tag for responsive layoutOlga Bulat2020-05-201-0/+1
| | | 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.
* basic theme: Add a "clearer" at the end of the "body".Matthias Geier2020-04-231-0/+1
|
* Change http:// to https://www in HTML footerMatthias Geier2020-04-201-1/+1
|
* Escape "canonical" URLMatthias Geier2020-04-181-1/+1
|
* Relbar breadcrumb should contain current pageTim Hoffmann2020-04-161-0/+1
|
* Merge pull request #7426 from mgeier/escape-linksTakeshi KOMIYA2020-04-101-7/+7
|\ | | | | Escape some links in HTML templates
| * Escape a few linksMatthias Geier2020-04-081-5/+5
| |
| * Escape links to master_docMatthias Geier2020-04-081-2/+2
| |
* | Do not include xmlns attribute with HTML 5 doctypeDmitry Shachnev2020-04-091-1/+1
|/
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* Remove redundant type="text/javascript" from <script> elementsJon Dufresne2019-12-151-1/+1
| | | | | | | | | | | | | | | 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.
* A happy new year!Takeshi KOMIYA2019-01-021-1/+1
|
* html: Output ``canonical_url`` metadata if :confval:`html_baseurl` setTakeshi KOMIYA2018-06-061-0/+3
|
* add_javascript() allows keyword arguments as attributes for <script> tagTakeshi KOMIYA2018-05-241-2/+2
|
* Merge branch '1.7'Takeshi KOMIYA2018-05-191-1/+1
|\
| * Fix blank URL_ROOTTommy Nguyen2018-05-021-1/+1
| | | | | | | | | | | | 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.
* | add_stylesheet() allows additional attributesTakeshi KOMIYA2018-04-061-2/+2
|/
* Fix #4608: epub: Invalid meta tag is generatedTakeshi KOMIYA2018-02-131-2/+2
|
* Themes: Rename 'csss' block to 'css'Aaron Carlisle2018-01-211-1/+1
| | | Was a mistake in 618ef6492c89c50f263c4c6c5794e40e35f91be8
* Fix #3620: html theme: move DOCUMENTATION_OPTIONS to independent JavaScript ↵Takeshi KOMIYA2018-01-141-11/+1
| | | | file (refs: #3620)
* Merge pull request #4245 from Blendify/patch-1Takeshi KOMIYA2018-01-131-0/+1
|\ | | | | Themes: Add language to javascript vars list
| * Themes: Add language to javascript vars listAaron Carlisle2017-11-161-0/+1
| |
* | Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\ \ | |/ |/|
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | Theme: Move body tag into a blockAaron Carlisle2017-10-101-1/+1
| | | | | | | | | | | | | | 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 %}`
* | #3537 set IE doc mode to Edge if not HTML5Timotheus Kampik2017-08-121-0/+3
| |
* | Theme: Change for HTML5Aaron Carlisle2017-07-291-1/+1
|/
* Remove unwanted whitespace in default templateJellby2017-06-111-3/+3
|
* Add rel="stylesheet" to <link> tag (ref: #3772)Takeshi KOMIYA2017-06-101-1/+1
|
* Check css.rel attributes to test str or Stylesheet objectTakeshi KOMIYA2017-06-031-3/+3
|
* #3772: 'str object' has no attribute 'filename' (again)Takeshi KOMIYA2017-06-031-0/+4
|
* fix #2762: change html template for xhtml validation error (for epub)Yoshiki Shibukawa2017-04-211-0/+8
|
* Rewrite and simplify stylesheet handlingJellby2017-04-151-18/+6
| | | | | | | 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.