131 Commits
Author SHA1 Message Date
Lukas Tenbrink 0535cd5443 Fix redirects in safari, by moving the redirect js script into the 404 page instead of checking if we're on 404 via the API. 2025-11-06 20:31:14 +01:00
Hugo Locurcio e4ced4004b Add JavaScript-based redirects to supplement Read the Docs redirects
Read the Docs redirects don't reliably apply when there is a
large amount of redirects defined. While this JavaScript-based
solution is not as seamless, it has no limit on how many redirects
can be defined.
2025-11-06 20:31:14 +01:00
Ste afb929b74f expands the pygments lexer to cover GDScript 2 better
(cherry picked from commit 5ebeb22bd0)
2025-09-15 09:35:02 +02:00
tetrapod00 6792402014 Add custom Sphinx roles for editor UI 2025-04-12 12:47:31 -07:00
tetrapod00 049b42989e Revert "Fix video alignment after dependency update"
This reverts commit 0e87849415.
2025-02-03 10:22:46 -08:00
tetrapod00 0e87849415 Fix video alignment after dependency update 2025-01-29 00:30:10 -08:00
tetrapod00 0da4dbe145 Add self links to shader functions page 2024-12-13 22:17:49 -08:00
c10b857b54 Improve shader function descriptions (#9338)
- Move built-in shader function descriptions from Shading Language
  to a new page, with a format like the class reference.
- Shader built-in functions are sorted by category, each with a summary
  table and then full descriptions of each function, with parameters, 
  returns, and links to the official Khronos docs.

---------

Co-authored-by: clayjohn <claynjohn@gmail.com>
Co-authored-by: ashbygeek <daniel.ashby@sern.blueskydevops.net>
Co-authored-by: Yuri Rubinsky <chaosus89@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
2024-11-19 22:41:36 -08:00
Hana - Piralein 6a9dc9b6a9 Update Sphinx version 2024-11-01 08:26:58 +01:00
HolonProduction 57c24d9b46 Fix scrolling outside of content area 2024-07-18 14:57:14 +02:00
Max Hilbrunner ab67eb8437 Merge pull request #9324 from rburing/css_self_links
Style self-links to make them appear only on hover
2024-05-30 17:02:00 +02:00
Creeker98 183d0e3147 Fix css background color override for highlight box (#9314) 2024-05-07 14:26:40 +02:00
Ricardo Buring cb35354bc4 Style self-links to make them appear only on hover 2024-05-04 10:58:50 +02:00
Max Hilbrunner ac92bfb47a Merge pull request #9015 from adamscott/fix-website-highlight
Fix website highlight of text
2024-02-26 16:17:04 +01:00
Adam Scott 6ca56a1b75 Fix website highlight of text 2024-02-24 16:50:31 -05:00
Hugo Locurcio 474c9b8339 Use Montserrat font for headings to match godotengine.org
This provides a visual look closer to the website and helps headings
stand out more thanks to their bolder weight.
2024-02-24 20:12:39 +01:00
Hugo Locurcio 1924aa4ca2 Fix table caption text color on dark theme 2024-01-26 22:31:28 +01:00
Adam Scott bedd304160 Remove Giscus from search page (#8777) 2024-01-23 17:41:00 +01:00
Hugo Locurcio 04020f1c08 Fix / keyboard shortcut to allow typing / within the search field
- Select all existing text in the field when pressing the shortcut.
- Remove broken Algolia integration (unused since 4.0) and move
  the shortcut code to the main `custom.js` file.
2023-12-04 15:45:04 +01:00
Thaddeus Crews 9c5cc147cd Reimplement space-to-tab regex without lookbehind 2023-10-26 11:31:26 -05:00
Max Hilbrunner 17b652d181 Merge pull request #7863 from dalexeev/use-relative-font-size-for-code
Use relative font size for `code` elements
2023-10-09 01:55:55 +02:00
Max Hilbrunner 7a46f2332d Merge pull request #7470 from panreyes/docsearch_not_available_fix
Fix issue with Algolia's docsearch object being missing in pages with tabs
2023-10-06 13:15:44 +02:00
Max Hilbrunner a9c8519217 Merge pull request #7752 from Ymanawat/Scrollbar-dark-theme
Made scrollbar follow user's color theme
2023-10-06 13:09:01 +02:00
Thaddeus Crews acf09b8551 Automatically convert spaces to tabs in codeblocks
• Adds codeblock css rule for tab-size
• Only applies to GDScript/C++
• Fix some inconsistent cpp codeblock filters
2023-10-05 19:04:26 -05:00
Danil Alexeev 621e48e3ed Use relative font size for code elements 2023-08-30 18:02:42 +03:00
Yogendra Manawat 0b79eea969 Added 'color-scheme: light dark` 2023-07-30 11:21:02 +05:30
Hugo Locurcio 1dd38c2e4a Use different color for control flow keywords in GDScript syntax highlighting
This matches the Godot script editor's behavior.

Note that this does not apply to C# and shaders
(which currently use GLSL highlighting), as it would require copying
their respective highlighters to this repository and modifying them.
2023-07-27 11:39:06 +02:00
panreyes c2f08b3659 Fix issue with Algolia's docsearch object being missing in pages with tabs
Fixes https://github.com/godotengine/godot-docs/issues/7469
2023-06-05 02:17:56 +02:00
Hugo Locurcio b57807b618 Make it possible to read abbreviations by tapping on mobile 2023-05-24 11:59:17 +02:00
Justin McGettigan 2f919ba970 Add the 'sphinx-copybutton' Sphinx extension. (#6918)
* Added the 'sphinx-copybutton' Sphinx extension.
2023-04-17 18:32:15 +02:00
Yuri Sizov d14d924470 Display Godot version more clearly 2023-03-02 20:19:50 +01:00
Yuri SizovandJustin McGettigan f45c014fb1 Update admonition styling
Co-authored-by: Justin McGettigan <jwmcgettigan@gmail.com>
2023-03-01 16:09:59 +01:00
Yuri Sizov ff4f111677 Add a warning that docs are WIP and a status flag for articles
By default (no flag) articles are considered up-to-date, with the end goal to have no
articles marked as outdated.
Use `:article_outdated: True` at the top of an article to mark it as being outdated.
2023-02-26 12:57:38 +01:00
Yuri Sizov 1da407b921 Move the latest branch warning into templates 2023-02-24 19:42:51 +01:00
Yuri Sizov 3b4328fb52 Update <kbd> style overrides 2023-01-14 19:07:41 +03:00
Max Hilbrunner c19fece5da Merge pull request #6572 from YuriSizov/about-fix-the-links
Fix links to sections in the Introduction
2023-01-11 00:04:29 +01:00
Yuri Sizov 0ba3029d24 Remove breadcrumb styling adjustments after the base theme update 2023-01-10 18:12:39 +03:00
Yuri Sizov 02d1e1b5e2 Fix links to sections in the Introduction 2023-01-10 02:47:41 +03:00
Max Hilbrunner 1e985a4f13 Merge pull request #6523 from YuriSizov/rtd-versions-local
Add a custom local template for the RTD panel
2023-01-08 15:58:14 +01:00
Yuri Sizov 8d38e7501d Add a custom local template for the RTD panel 2022-12-29 19:06:54 +03:00
Yuri Sizov 98e96ced67 Make the navigation sidebar less crowded and noisy 2022-12-29 19:05:50 +03:00
Yuri Sizov 52903b7778 Simplify midword break regex to avoid unsupported features 2022-12-29 18:54:29 +03:00
Adam Scott 2b06a3822d Fix midword link wrapping issues
Adds <wbr> which is suggested linebreaks to each class reference link
in the sidebar once the page is ready.
2022-12-27 20:42:22 +03:00
Yuri Sizov e2076762e1 Merge pull request #6510 from YuriSizov/home-update-structure
Update the structure of the home page
2022-12-26 16:56:25 +03:00
Yuri Sizov 058f325193 Hide excessive elements from the RTD panel, improve the looks 2022-12-24 22:31:26 +03:00
Yuri Sizov ff6bf3edd3 Update the structure of the home page
- Improve phrasing of certain paragraphs
- Break up into subsections
- Hide the table of content at the bottom of it to reduce visual noise
- Correctly reference that translated docs apply to the stable branch, not the latest branch
- Fix styling of breadcrumbs
2022-12-24 21:31:56 +03:00
Yuri Sizov 15719033bd Adjust global table styles for better spacing and head styling 2022-12-12 20:17:26 +03:00
Yuri Sizov 88e2d3893e Disable font ligatures globally 2022-12-06 20:08:14 +03:00
Yuri Sizov faaf0dddab Improve the new class reference look based on feedback 2022-12-06 13:58:29 +03:00
Yuri Sizov 913ff5e602 Merge pull request #6445 from YuriSizov/frontend-classref-fitness
Improve styling of class reference pages
2022-12-05 20:30:38 +03:00