Commit Graph

26 Commits

Author SHA1 Message Date
Lukas Tenbrink
0855668721 Migrate contributing contents to a separate documentation site. 2025-09-11 17:59:08 +02:00
Aditya K Kamath
f6879c1bc4 Add navigation buttons before user-submitted comments on all pages. 2025-01-06 17:45:34 +05:30
tetrapod00
f47af1fb9e Only show warning box if page is outdated 2024-12-16 14:45:34 -08:00
Max Hilbrunner
181206baaa Remove canonical/hreflang tags, let RTD I18N do it 2024-11-05 04:53:51 +01:00
Adam Scott
bedd304160 Remove Giscus from search page (#8777) 2024-01-23 17:41:00 +01:00
Hugo Locurcio
95fb178429 Add support for user-provided comments with Giscus
This allows users to leave comments on pages that don't have
`:allow_comments: False` somewhere in the page's source.
Both manual and class reference pages can receive comments.
Index pages cannot have comments, as discussion should occur on "leaf" pages.

GitHub Discussions is used as a backend on the same repository. This means
that Discussions *must* be enabled on godotengine/godot-docs before this
commit is merged to `master`. Users can choose to use the "Custom" watch
mode if they don't want to get notifications for discussion updates,
but still get notifications for issue and pull request updates.

User comments are intended to be used for the following purposes:

- Add a clarification or correct something in the documentation,
  without having to open a pull request. Contributors are encouraged to
  take a look at discussions from time to time, and see if there's information
  worth incorporating in the pages themselves. Don't forget to reply to
  the comment when doing so :)
- Mention a workaround for a common issue.
- Link to useful third-party resources that are relevant to the current page,
  such as tutorials or add-ons.

User comments should *not* be used for technical support. Other community
platforms should be used for that.

Page-to-discussion matching is done using the `pagename` Sphinx variable,
which is independent of the Godot version and documentation language.
Being independent of the Godot version allows keeping old comments
when the Godot version changes, while also allowing users from `/stable`
and `/4.1` to "see" each other in discussions.

See https://giscus.app for more information.
2024-01-11 17:51:53 +01:00
dylannorthrup
0a01baec10 Fix epub-related failures (#8207)
* Append closing "/" to meta description tag; do not add new description tag if one already exists

* Add closing "/" to all meta tags

* Remove URL parameters from css/js paths to fix ThemeError

* Updating package versions to reflect the latest versions in the readthedocs github repo

* noop change to trigger CI workflow

* Add verbose option to "pip3 install"

* Update python version to 3.9

* Debug Iteration

* Revert CI testing changes

* Revert module upgrades and changes it required

* Update _extensions/godot_descriptions.py

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-11-25 19:01:44 +01:00
Max Hilbrunner
ca94970356 Less intrusive 4.0 update state info (#7100)
* Less intrusive 4.0 update state info

---------

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2023-04-01 00:40:18 +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
Thiago Lages de Alencar
6e4cb63908 Update URL from "Learn how to contribute!" 2023-01-11 10:13:49 -03:00
Yuri Sizov
8d38e7501d Add a custom local template for the RTD panel 2022-12-29 19:06:54 +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
21f92e43d6 Add a link to doc writing guidelines to the header (#5947) 2022-07-18 23:42:20 +02:00
Leroy Bakker
6ae96e7b50 Implemented Algolia search (#4884)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-06-13 20:21:11 +02:00
Hugo Locurcio
9becaa5480 Add Open Graph tags for better link preview on social media
This is provided by the sphinxext-opengraph extension.

This also adds a theme color property in the HTML layout file.
2021-03-18 20:34:06 +01:00
Hugo Locurcio
d494d19dac Remove trailing whitespace and irregular whitespace 2020-05-17 00:26:19 +02:00
Max Hilbrunner
0b6d26e33d Prepend "(DEV)" to HTML titles if build locally/not on RTD 2020-04-28 16:53:08 +02:00
Max Hilbrunner
3c79f3e321 Fix locale names AGAIN :)
this time formatting to ISO 639-1 dynamically
2020-04-27 19:48:52 +02:00
Max Hilbrunner
fd5f6f4909 Appease our great search engine overlords
This hopefully fixes all translated pages showing up in search engine results, and makes the STABLE version of each page canonical.
In turn, this allows us to re-enable indexing of the version-specific pages (see robots.txt changes), as search engines should prefer the canonical (stable) version, and only show the other versions if no canonical (stable) version exists (i.e. because that feature is only in latest, or was removed in stable).

It adds proper canonical links for all generated pages, and fixes the existing links between the various translations of a page by both ensuring the pages links to itself with the proper language tag, and by properly linking to the full path of other translated versions.
2020-04-21 13:32:55 +02:00
StraToN
54c3b3e98a Adds a breadcrumb template to manage hiding 'Edit on Github' link.
To work, requires adding a meta the very beginning of files that have to hide this link:
:github_url: hide
2019-07-25 15:49:11 +02:00
Rémi Verschelde
a95cd08285 Use HTTPS for links which support it 2018-12-13 12:06:02 +01:00
Rémi Verschelde
4ef06a4135 Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
2018-11-20 11:08:34 +01:00
Rémi Verschelde
b6cb5c3ee7 Add layout.html template to set hreflang attributes
Tentative fix for search engines pointing English-seeking users
to localized docs.
2018-06-12 23:08:16 +02:00