Add initial integration for questions & answers in relevant pages #4419
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Alpine.js is used on the frontend.
The backend is a static REST API generated by https://github.com/Calinou/godot-qa-api-generator.
Pages should have a
.. questions-answers:: tag1 tag2
directive at the bottom when relevant. I've edited some pages to add such tags, but we should probably go over all pages in a future PR.The API should allow CORS requests (
*
) since the JSON files will be hosted on a different domain (docs.godotengine.org
/godot.readthedocs.io
togodotengine.org
).Questions are sorted by popularity (highest score first) and the top 10 questions are displayed on relevant pages. The "(from Godot Q&A)"* link can be clicked to view all questions.
This closes godotengine/godot-proposals#481.
Preview
Light theme
Dark theme