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
103 changes: 22 additions & 81 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,41 +1,13 @@
@import url('https://fonts.googleapis.com/css2?family=Lato&family=Roboto+Mono:ital,wght@0,400;0,700;1,400&family=Roboto+Slab&display=swap');

body {
font-family: Lato, sans-serif;
counter-reset: listing;
}
p, ol > li::marker {
line-height: 30px;
font-size: 18px;
}
p {
margin: 0 0 24px;
}
h1, h2 {
font-family: Roboto Slab, Georgia, serif;
font-weight: 500;
}
.toctree-wrapper.compound .caption {
font-family: Roboto Slab, Georgia, serif;
font-size: 2em;
text-transform: None;
margin-top: 5px;
margin-bottom: 8px;
}

@media screen and (min-width: 700px) {
.toctree-wrapper > ul {
columns: 2;
}
}
.toctree-wrapper.compound > ul {
margin-top: 5px;
margin-bottom: 5px;
}
section > h2 {
margin-top: 5px;
margin-bottom: 8px;
}
.toctree-l1 {
margin-left: 5px;
}
Expand All @@ -47,8 +19,29 @@ section > h2 {
}
.toc-outside-links li p, .toc-outside-links ul li {
margin-left: 5px;
font-size: 17px;
}
/* Remove link underlines from main page */
.toc-outside-links a {
text-decoration: none;
}
.toctree-wrapper a {
text-decoration: none;
}

#the-python-arcade-library h2 {
font-size: var(--font-size--small);
font-weight: 400;
margin-bottom: 0;
margin-top: .5rem;
text-align: initial;
text-transform: uppercase;
}
#the-python-arcade-library ul {
margin-top: 0;
margin-bottom: 0;
}

/* Put logo next to text */
.sidebar-brand {
flex-direction: row;
}
Expand Down Expand Up @@ -81,34 +74,6 @@ img.right-image {
margin-bottom: 4px;
margin-top: 10px;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
color: var(--color-link);
}

li {
line-height: 30px;
margin-left: 24px;
}
li p {
margin-bottom: 0;
}
.toc-tree li {
list-style: None;
margin-left: 0;
}
ul {
margin-left: 0;
margin-top: 5px;
margin-bottom: 5px;
}
/* use child selector in case someone nests an ol inside a ul */
ul > li {
list-style: disc;
}
.section-header {
display: flex;
}
Expand Down Expand Up @@ -137,16 +102,7 @@ ul > li {
width:100%;
height:100%;
}
.sidebar-tree ul {
margin-left: 12px;
}
.sidebar-tree ul li {
list-style-type: None;
line-height: 17px;
}

/* Make Function API look nice */

.sig-param .n:first-of-type {
margin-left: 10px;
}
Expand All @@ -164,14 +120,6 @@ ul > li {
font-family: 'Consolas', 'courier new', 'courier', monospace;
font-size: 15px;
}
/* Fixes for line numbers not lining up */
pre .normal {
font-size: 13px;
}
.highlighttable td.linenos {
padding-top: 0;
}

table.dataTable.display tbody tr.odd {
background-color: var(--color-background-primary);
}
Expand All @@ -198,13 +146,6 @@ table.colorTable tr > td:nth-child(3) > div {
width: 80px;
min-width: 80px;
}

p code.literal {
border: None;
}
code.literal {
background: None;
}
.dataTables_wrapper .dataTables_filter {
color: var(--color-foreground-primary);
}
Expand Down
21 changes: 1 addition & 20 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,7 @@
html_theme_options = {
"light_logo": "../_images/arcade-logo.svg",
"dark_logo": "../_images/arcade-logo.svg",
"light_css_variables": {
"font-stack--monospace": "Roboto Mono, Courier, monospace",
"toc-font-size": "16px",
"sidebar-item-font-size": "15px",
"sidebar-item-line-height": "20px",
"sidebar-caption-space-above": "0",
"sidebar-caption-font-size": "18px",
"sidebar-tree-space-above": "9px",
"sidebar-item-spacing-vertical": "4px"
},
"dark_css_variables": {
"font-stack--monospace": "Roboto Mono, Courier, monospace",
"toc-font-size": "16px",
"sidebar-item-font-size": "15px",
"sidebar-item-line-height": "20px",
"sidebar-caption-space-above": "0",
"sidebar-caption-font-size": "18px",
"sidebar-tree-space-above": "9px",
"sidebar-item-spacing-vertical": "4px"
},

}

html_title = f"Python Arcade {version}"
Expand Down
6 changes: 2 additions & 4 deletions doc/programming_guide/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Get Started Here
Installation
------------
Arcade can be installed like any other Python
Package. Arcade needs support for OpenGL 3.3+. It does not run on Raspberry
Pi or Wayland.
Package. Arcade needs support for OpenGL 3.3+.
If you are familiar with Python package management you can just
"pip install" Arcade.
For more detailed instructions see :ref:`installation-instructions`.
Expand All @@ -26,8 +25,7 @@ Starting Tutorials
------------------

If you are already familiar with basic Python programming, follow the
:ref:`platformer_tutorial` or
`Real Python article <https://realpython.com/arcade-python-game-framework/>`_.
:ref:`platformer_tutorial` as a quick way to get up and running.
If you are just learning how to program, see
the `Learn Arcade book <https://learn.arcade.academy>`_.

Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ def get_long_description() -> str:
"Sphinx==6.0.0",
"Pygments==2.14.0",
"sphinx-copybutton==0.5.1",
"sphinx-sitemap==2.4.0",
"sphinx-sitemap==2.5.0",
"dirsync==2.2.5",
"pyyaml==6.0",
"docutils==0.19",
"sphinx-sitemap",
"furo",
"sphinx_copybutton",
"dirsync",
"wheel",
]
Expand Down