Fix GitHub stars on the home page, our pyglet intersphinx config, and small issues on resources by pushfoo · Pull Request #2524 · pythonarcade/arcade · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions doc/_includes/resources_Top-Level_Resources.rst
5 changes: 0 additions & 5 deletions doc/_includes/resources_Video.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. _resources_video:

Video
-----

Arcade offers experimental support for video playback through :py:mod:`pyglet` and other libraries.

.. warning:: These features are works-in-progress!
Expand Down
17 changes: 12 additions & 5 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,15 @@ title + list appear like other categories */
width: 100%;
}

/* Wrappers and formatting for sprinter, START HERE, github star button
to align them neatly */
/* Align the GitHub stars button since Sphinx doesn't offer us great control over headings */
.main-page-item-wrapper-header {
align-items: center;
display: flex;
margin: 10px;
float: right;
display: relative;
}
/* IMPORTANT: unlike flex, you have to clear float! */
.main-page-item-wrapper-header::after {
float: clear;
}
.main-page-box {
width: 100%;
Expand Down Expand Up @@ -97,7 +100,8 @@ to align them neatly */
width: 100%;
display: flex;
} */
.main-page-box > .main-page-box-gh {

.main-page-box-gh {
display: flex;
align-items: center;
margin-right: 0px;
Expand Down Expand Up @@ -342,6 +346,9 @@ table.resource-table td > .resource-thumb.file-icon {
li .arcade-ezcopy.doc-ui-example-dummy {
margin-left: 0.2em;
margin-right: 0.2em;
/* Override 12 px bottom margin */
margin-top: inherit !important;
margin-bottom: inherit !important;
}

table.colorTable {
Expand Down
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ def run_util(filename, run_name="__main__", init_globals=None):
# Configuration for intersphinx enabling linking other projects
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'pyglet': ('https://pyglet.readthedocs.io/en/development/', None),
# As of January 25th, pyglet's 2.1.X branch is on this URL and their
# development build on readthedocs is for their in-progress 3.0.0 alpha.
'pyglet': ('https://pyglet.readthedocs.io/en/latest/', None),
'PIL': ('https://pillow.readthedocs.io/en/stable', None),
'pymunk': ('https://www.pymunk.org/en/latest/', None),
}
Expand Down
34 changes: 14 additions & 20 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
:hide-toc:

.. container:: main-page-item-wrapper-header

.. raw:: html

<div class="main-page-box-gh">
<iframe id="github-stars" style="align-self: center; margin: 0 auto; display: block;"
src="https://ghbtns.com/github-btn.html?user=pythonarcade&repo=arcade&type=star&count=true&size=large"
frameborder="0"
scrolling="0"
title="GitHub">
</iframe>
</div>

.. _main_page:

The Python Arcade Library
=========================


.. container:: main-page-item-wrapper-header

.. raw:: html

<div class="main-page-box">
<div class="main-page-link">
</div>
<div class="main-page-box-gh">
<iframe id="github-stars" style="align-self: center; margin: 0 auto; display: block;"
src="https://ghbtns.com/github-btn.html?user=pythonarcade&repo=arcade&type=star&count=true&size=large"
frameborder="0"
scrolling="0"
title="GitHub">
</iframe>
</div>
</div>

Arcade is an easy-to-learn Python library for creating 2D games and more. The
friendly API caters to both beginners and experts alike. Do you want to make
something small, or explore the full power of shaders? It's up to you.
friendly API caters to both beginners and experts alike. Do you want to craft
craft your take on a 2D classic, or explore the full power of shaders? It's up to you.

What will you make?

Expand Down
46 changes: 31 additions & 15 deletions util/create_resources_listing.py