-
-
Notifications
You must be signed in to change notification settings - Fork 194
New website style + docs sorting modifications #2924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
bilhox
wants to merge
4
commits into
pygame-community:main
Choose a base branch
from
bilhox:sphinx_doc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
Pygame modules | ||
============== | ||
|
||
************************************************* | ||
List of pygame modules | ||
************************************************* | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:glob: | ||
:hidden: | ||
|
||
ref/pygame.rst | ||
ref/* | ||
|
||
:doc:`ref/bufferproxy` | ||
An array protocol view of surface pixels | ||
|
||
:doc:`ref/color` | ||
Color representation. | ||
|
||
:doc:`ref/cursors` | ||
Loading and compiling cursor images. | ||
|
||
:doc:`ref/display` | ||
Configure the display surface. | ||
|
||
:doc:`ref/draw` | ||
Drawing simple shapes like lines and ellipses to surfaces. | ||
|
||
:doc:`ref/event` | ||
Manage the incoming events from various input devices and the windowing platform. | ||
|
||
:doc:`ref/examples` | ||
Various programs demonstrating the use of individual pygame modules. | ||
|
||
:doc:`ref/font` | ||
Loading and rendering TrueType fonts. | ||
|
||
:doc:`ref/freetype` | ||
Enhanced pygame module for loading and rendering font faces. | ||
|
||
:doc:`ref/gfxdraw` | ||
Anti-aliasing draw functions. | ||
|
||
:doc:`ref/image` | ||
Loading, saving, and transferring of surfaces. | ||
|
||
:doc:`ref/joystick` | ||
Manage the joystick devices. | ||
|
||
:doc:`ref/key` | ||
Manage the keyboard device. | ||
|
||
:doc:`ref/locals` | ||
Pygame constants. | ||
|
||
:doc:`ref/mixer` | ||
Load and play sounds | ||
|
||
:doc:`ref/mouse` | ||
Manage the mouse device and display. | ||
|
||
:doc:`ref/music` | ||
Play streaming music tracks. | ||
|
||
:doc:`ref/pygame` | ||
Top level functions to manage pygame. | ||
|
||
:doc:`ref/pixelarray` | ||
Manipulate image pixel data. | ||
|
||
:doc:`ref/rect` | ||
Flexible container for a rectangle. | ||
|
||
:doc:`ref/scrap` | ||
Native clipboard access. | ||
|
||
:doc:`ref/sndarray` | ||
Manipulate sound sample data. | ||
|
||
:doc:`ref/sprite` | ||
Higher level objects to represent game images. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Game images? Why not game objects |
||
|
||
:doc:`ref/surface` | ||
Objects for images and the screen. | ||
|
||
:doc:`ref/surfarray` | ||
Manipulate image pixel data. | ||
|
||
:doc:`ref/tests` | ||
Test pygame. | ||
|
||
:doc:`ref/time` | ||
Manage timing and framerate. | ||
|
||
:doc:`ref/transform` | ||
Resize and move images. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,13 @@ | |
:mod:`pygame.Color` | ||
=================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:glob: | ||
:hidden: | ||
|
||
extra_infos/color_list.rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
.. currentmodule:: pygame | ||
|
||
.. class:: Color | ||
|
@@ -53,7 +60,7 @@ | |
It can be passed as a ``color_value`` argument to :class:`Color` | ||
(useful with sets). | ||
|
||
See :doc:`color_list` for samples of the available named colors. | ||
See :doc:`extra_infos/color_list` for samples of the available named colors. | ||
|
||
:param int r: red value in the range of 0 to 255 inclusive | ||
:param int g: green value in the range of 0 to 255 inclusive | ||
|
@@ -67,7 +74,7 @@ | |
| - **Color object:** clones the given :class:`Color` object | ||
| - **Color name: str:** name of the color to use, e.g. ``'red'`` | ||
(all the supported name strings can be found in the | ||
:doc:`color_list`, with sample swatches) | ||
:doc:`extra_infos/color_list`, with sample swatches) | ||
| - **HTML color format str:** ``'#rrggbbaa'`` or ``'#rrggbb'``, | ||
where rr, gg, bb, and aa are 2-digit hex numbers in the range | ||
of 0 to 0xFF inclusive, the aa (alpha) value defaults to 0xFF | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this PR supposed to implement the new style? I'm confused by what's intended here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, thank you for the review !
After a big talk on discord, a lot mentionned the idea of making a progressive transition between the old style and the new style. So right now the ideal would be to keep it experimental, and then we make a new PR that will make it default or no.