-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. |
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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. include:: common.txt | ||
.. include:: ../../common.txt | ||
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. I don't know that I like the relative pathing here. Is there no way around it? |
||
|
||
Named Colors | ||
============ | ||
|
@@ -673,7 +673,7 @@ Named Colors | |
.yellowgreen {background-color: #9acd32; color: #9acd32;} | ||
</style> | ||
|
||
:doc:`color` lets you specify any of these named colors when creating a new | ||
:doc:`../color` lets you specify any of these named colors when creating a new | ||
``pygame.Color`` (taken from the | ||
`colordict module <https://github.com/pygame-community/pygame-ce/blob/main/src_py/colordict.py>`_). | ||
|
||
|
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.