118 Commits

Author SHA1 Message Date
HolonProduction
4ca2ee7d1f Fix scrolling outside of content area
(cherry picked from commit 57c24d9b46)
2024-07-24 21:10:35 +02:00
Hugo Locurcio
2526852231 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.

(cherry picked from commit 474c9b8339)
2024-07-24 20:29:01 +02:00
Creeker98
2ad41558ba Fix css background color override for highlight box (#9314)
(cherry picked from commit 183d0e3147)
2024-05-07 15:15:02 +02:00
Max Hilbrunner
781bdf1f45 Merge pull request #9015 from adamscott/fix-website-highlight
Fix website highlight of text

(cherry picked from commit ac92bfb47a)
2024-05-07 12:54:34 +02:00
Max Hilbrunner
1dd3387a41 Merge pull request #8840 from Calinou/theme-fix-caption-color
Fix table caption text color on dark theme

(cherry picked from commit 87298e86bf)
2024-05-07 12:51:59 +02:00
Hugo Locurcio
87ab4cafa5 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.
2024-01-25 09:43:41 +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 Sizov
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
Yuri Sizov
093acc43c6 Dynamically adjust the compatibility notice in the latest docs 2022-12-05 15:26:31 +03:00
Yuri Sizov
7c8e820228 Improve styling of class reference pages
- General improvements to the page layout and style
- Improved styling for all class (properties, signals, annotations, theme properties, methods, operators, constructors, enumerations, constants)
- Improved styling for tabs, code tabs, standalone code blocks, and tables
2022-12-01 16:30:19 +03:00
Yuri Sizov
7f0c2e4a1d Merge pull request #6412 from YuriSizov/frontend-search-results-islands
Improve the styling of the search results page
2022-11-24 18:26:43 +03:00
Yuri Sizov
fbd4ba87b5 Improve the styling of the search results page 2022-11-22 22:07:38 +03:00
Yuri Sizov
f8bab050a5 Fix styling issues in the sidebar 2022-11-22 04:55:33 +03:00
Yuri Sizov
b3f571cf54 Merge pull request #6407 from YuriSizov/frontend-remove-search-highlight
Remove search highlights from the page and the history
2022-11-22 01:29:26 +03:00
Yuri Sizov
0209919fc2 Remove search highlights from the page and the history
Co-authored-by: the-sink <lucianedean@gmail.com>
2022-11-21 22:13:24 +03:00
Yuri Sizov
2ca8b1b5c9 Make the TOC expand button easier to click 2022-11-21 21:39:15 +03:00
Yuri Sizov
c77e4a8046 Correct exceptions for the class reference badge 2022-11-21 14:49:52 +03:00
Rémi Verschelde
2f346824cb Merge pull request #6395 from YuriSizov/frontend-cleanup-version-selector
Hide the ref badge from RTD's version selector
2022-11-21 11:22:25 +01:00
Rémi Verschelde
32d6fe49ed Merge pull request #6394 from YuriSizov/frontend-always-respect-the-ethical-banner
Update position of the Ethical banner when folding changes
2022-11-21 11:22:13 +01:00
Rémi Verschelde
9a3d5edb42 Merge pull request #6400 from YuriSizov/frontend-wider-articles
Make the maximum page width slightly bigger
2022-11-21 10:32:11 +01:00
Rémi Verschelde
0458574173 Merge pull request #6399 from YuriSizov/frontend-class-reference-reference-icon-icon
Adjust the class reference badge to use an icon
2022-11-21 10:32:01 +01:00