Skip to content
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

[WIP] Redocument and refactor the sdl2.ext API #191

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
f716889
Initial update & reorganization
a-hurst Jul 30, 2021
b3f7885
Convert redocumented ext modules to autodoc
a-hurst Jul 30, 2021
868ffdb
Revamp compat.py, convert to autodoc
a-hurst Jul 31, 2021
099cbdb
Clean up, autodoc, and add tests for ext.surface
a-hurst Jul 31, 2021
63923d0
Cleaned up and autodoc'd ext.resources
a-hurst Aug 2, 2021
fc33e14
Switch to the RTD theme
a-hurst Aug 3, 2021
9e21c9e
Split msgbox into separate module, add docs
a-hurst Aug 8, 2021
3f11ce4
Split ext.sprite into smaller modules
a-hurst Aug 9, 2021
8e41299
Add minimum versions for some older functions
a-hurst Aug 12, 2021
45706fd
Add updated TTF/IMG rst docs
a-hurst Aug 12, 2021
2a0e1f9
Major rewrite/redocumentation of Renderer API
a-hurst Aug 13, 2021
9504223
Add namemap for pixel formats
a-hurst Aug 13, 2021
a4c94b2
Update the transformations example
a-hurst Aug 13, 2021
9ab3cd9
Reorganize main ext docs page
a-hurst Aug 13, 2021
b6cc0af
Revamp and redocument ext.pixelaccess
a-hurst Aug 14, 2021
2a9f242
Rearrange ext docs
a-hurst Aug 14, 2021
8e604d9
Disable rotation copy test on 2.0.5 (?)
a-hurst Aug 14, 2021
56d4d30
Improved Renderer/Texture memory safety
a-hurst Aug 20, 2021
4baaf8e
Move _get_target_surface to surface module
a-hurst Aug 20, 2021
219652f
Update SDL renderer tests
a-hurst Sep 4, 2021
8f93109
Rewrite, document, and expand ext.image
a-hurst Sep 4, 2021
eac82e9
Update pixelacces docs, style fixes
a-hurst Sep 4, 2021
6707343
Update news.rst
a-hurst Sep 4, 2021
ce413c2
Make image color tests more informative
a-hurst Sep 4, 2021
f87def1
Remove automatic re-unlocking for pixelaccess
a-hurst Sep 4, 2021
18e1f4c
Update some examples
a-hurst Sep 5, 2021
5900074
Updates to docs
a-hurst Sep 5, 2021
7e30c2e
Add private ext function for surface creation
a-hurst Sep 5, 2021
18fc5b9
Add negative indexing support for PixelView
a-hurst Sep 5, 2021
90c3353
Update news, deprecate UI system classes
a-hurst Sep 6, 2021
39aaf0b
Add blit as alias for copy in Renderer
a-hurst Sep 6, 2021
a659bb6
Redocument and refactor BitmapFont
a-hurst Sep 6, 2021
03c8dae
Split BitmapFont and FontManager into two modules
a-hurst Sep 6, 2021
c2d5bd2
Assorted docs cleanup
a-hurst Dec 22, 2021
551169b
Move path validation to resources.py
a-hurst Dec 22, 2021
d1c703e
Fix multiline BitmapFont rendering on Windows
a-hurst Dec 22, 2021
67cfdad
Add new TTF init/quit funcs, FontManager cleanup
a-hurst Dec 22, 2021
6357cf9
Initial version of the new FontTTF class
a-hurst Jan 6, 2022
9e4cfac
Make internal _create_surface more flexible
a-hurst Jan 6, 2022
d48f486
Try workaround for FontTTF on old SDL_ttf versions
a-hurst Jan 6, 2022
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
156 changes: 13 additions & 143 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,154 +1,24 @@
# Makefile for Sphinx documentation
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
SPHINXPROJ = PySDL2
SOURCEDIR = .
BUILDDIR = _build

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext

# Put it first so that "make" without argument is like "make help".
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
@rm -rf $(BUILDDIR)/*
@rm -f modules/*~ tutorial/*~ *~

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."

singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."

pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."

json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."

htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."

qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/PySDL2.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PySDL2.qhc"

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/PyMule"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/PyMule"
@echo "# devhelp"

epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."

latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."

latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."

man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."

texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."

info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."

gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
.PHONY: help Makefile view

linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
# View the built documentation
view:
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/_build/html/index.html')"
Loading