Commit Graph

1524 Commits

Author SHA1 Message Date
Mirko Galimberti 6161417835
Update Copyright and LICENSE dates (#8175) 2023-03-18 11:51:47 +01:00
Akshay Arora 6a29251604
Add libxext-dev as a requirement for ubuntu build. 2023-03-09 14:38:06 +05:30
Mirko Galimberti ff7960be84 Docs: Update the Ubuntu prereq to build Kivy and its dependencies 2023-03-06 20:33:14 +01:00
Dexer f222bfb8a6
`BoxShadow`: Accept values for vertical and horizontal `spread_radius` (#8138)
* Accept values for vertical and horizontal `spread_radius`

* fix image

* update docs
2023-02-22 21:04:11 +01:00
Dexer bc766c64b5
Improve docs about `BoxShadow` behavior and usage. (#8139)
* update BoxShadow docs

* update images
2023-02-19 05:51:18 +01:00
Akshay Arora 2f1d20dd50
Merge pull request #8096 from misl6/feat/build-dependencies
Introduce build script for SDL dependencies and `KIVY_DEPS_ROOT`
2023-02-18 23:54:46 +05:30
Dexer 0bd9901d6a
`BoxShadow`: Add `inset` feature (#8132)
* add inset feature

* update docs

* Refactor shadow calculation
2023-02-18 15:50:33 +01:00
Mirko Galimberti cad29c6331 Update docs 2023-02-04 12:07:36 +01:00
Mirko Galimberti f84f8c9478 Update docs 2023-01-07 17:26:49 +01:00
Mirko Galimberti 88905bbc17
Add support sphinx 6.0.0 (#8088) 2023-01-01 10:30:12 +01:00
Dexer a7c6688027
Add `BoxShadow` graphic instruction (#8056)
* add BoxShadow instruction

* update docs, fix shader for some devices

* assign texture only on initialization

* check initial attributes

* change to tuple

* refactoring

* update docs

* add unit tests
2022-12-18 10:09:16 +01:00
Peter Tripp 4b5b7a1021
Update installation-osx.rst (#8041)
Remove extraneous backticks.
2022-10-26 21:16:20 +02:00
Gabriel Pettier bfd90c4d6f
Link to buildozer installation instructions instead of duplicating them (#8039) 2022-10-23 10:20:00 +02:00
Tomasz CEDRO a4ae5e3d01
doc: Initial remarks on *BSD compatibility. (#8032)
Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>

Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
2022-10-22 19:34:36 +02:00
Tom Dudley 0455d2008b
Fix backticks typo in pong tutorial (#8034) 2022-10-16 09:19:30 +02:00
Romain Heller dd4ae807e1
Typo : missing coma in the doc (#8026) 2022-10-05 20:15:02 +02:00
Paul Cochrane b873d82e9a
Use consistent source code notes in pong tutorial (#7929)
* Highlight parenthetical expression with hyphens

The expression "and source code files for each step" was only partially
in a parenthesis: there wasn't a closing comma after the word "step" to
highlight that the expression was extra information in the sentence.
This commit changes the punctuation around the parenthetical expression
to use hyphpens to make it stand out more and adds the missing closing
punctuation.

* Add missing full stop at end of note sentence

Since this note is a sentence, it probably should have a full-stop at
the end.

* Mention source location consistently in pong tutorial

The two notes mentioning the source code location were formatted
differently.  To be consistent, they both now use the same formatting.
2022-10-02 20:49:15 +02:00
Paul Cochrane ce0bf8c7dc
Purge trailing whitespace in docs source files (#7930)
Trailing whitespace is forbidden in source code for this project
(implemented as part of the PEP8 checks), however the documentation
source files contained trailing whitespace.  It seemed appropriate to
remove trailing whitespace in the documentation source files as well.
2022-10-02 20:47:05 +02:00
RobertF fd12906efa
Android Lifecycle convergence (#7989)
* Android pause on back key/gesture

Replaces previous divergence between Android and Kivy state machines.

* Android exit app when on_pause returns False

Corrects previous behavior where Kivy app stops, but Android does not stop.

* stop() - set Android state

Let Kivy app state follow Android state.

* Add pause()

* typo

* Disambiguate

It is unclear it "default case" refers to existence of a return statement, or existence of a method.

* add versionadded

* pep8

* pep8

* pep8

* Update kivy/app.py

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>

* Update app.py

Co-authored-by: Mirko Galimberti <me@mirkogalimberti.com>
2022-10-01 11:27:05 +02:00
luzpaz 2efdc26461
Fix typos (#7915)
Found via `codespell -q 3 -S ./doc/sources/changelog.rst -L als,ba,childrens,childs,co-ordinate,co-ordinates,datas,enew,everytime,inout,iself,quitted,tesselate,tesselated,tesselator,ths`
2022-08-24 20:05:42 +02:00
Mirko Galimberti 6d3c7ba105
Fixes NO DOCUMENTATION (module kivy.uix.recycleview) (#7916) 2022-08-16 15:34:56 +02:00
Paul Cochrane 97a6d0bb82
Add missing closing paren in hint text (#7928)
The hint at the end of the pong tutorial associated with making the game
end after a certain score was missing its closing parenthesis.
2022-07-28 16:07:45 +02:00
Cecil Curry 93ccd2058c
Documentation: bump Gentoo install instructions (#7870) 2022-04-25 21:46:01 +02:00
Mirko Galimberti b9939282c1
Add 2.1.0 changelog (#7831) 2022-03-06 08:15:12 +01:00
Alexander Lais 27dff1fadb
Use the `KIVY_RPI_VERSION` env variable to force the build of `egl_rpi` in non Raspi CI builds (#7804)
* Use the `USE_RPI` env variable to force the platform to `rpi`

* Update doc/sources/installation/installation-rpi.rst

Co-authored-by: Matt Einhorn <matt@einhorn.dev>

* Introduce new env variable `FORCE_RPI_VERSION` for forcing `egl_rpi`
instead of reusing `USE_RPI`, which has a different connotation.

* Update docs for `FORCE_RPI_VERSION` variable

* Update setup.py

Co-authored-by: Matt Einhorn <matt@einhorn.dev>

* Rename variable to `KIVY_RPI_VERSION`

Co-authored-by: Matt Einhorn <matt@einhorn.dev>

Co-authored-by: Matt Einhorn <matt@einhorn.dev>
2022-02-17 02:17:23 -05:00
Vibhakar Solanki 1390d54b3a
Merge branch 'master' into fix_gp_selectable 2022-02-13 21:38:25 +05:30
Vibhakar Solanki 68935bf6fa
Dark Theme support for docs (#7799)
* added dark theme css

* merged both theme files; removed dark.css

* removed unrequired variable

* add fuction to switch themes

* add button to switch themes; removed dark.css; load fresh.css after pygements.css;

* Update doc/sources/.templates/layout.html

* add jquery to keep the current 'active' element on API reference be always in center

* remove DRY voilations; beautify css

* removed unnecessary rules

* add toggle button to switch between themes

* add button callback; store prefered theme in localStorage

* made theme toggle button responsive

* improved alingment for mobile screens

* removed unnecessary css; added comments; formated css

* use prefers-color-scheme when localStorage is not initlized

* fix FOIT

* removed code to center active li element in api index (left side panel)
2022-02-12 22:39:02 +01:00
p0lygun 8948bf61b4 made Generic Prompt unselectable; fixes #7800 2022-02-13 03:00:16 +05:30
Vibhakar Solanki 0f5f8bfc21
made code examples user friendly; fixes #7720 [WIP] (#7790)
* fixes #7720; see sphinx-doc/sphinx#8320 for reference

* applied vendor prefix for safari

* use ::before pseudo element to make line numbers unselectable

* removed trim

* css cleanup; moved the rule to appropriate posotion

* more descriptive comment
2022-02-06 13:40:05 +01:00
Mirko Galimberti 10dceb180b
Docs review before release 2.1.0 (#7773)
* Docs review - part 1

* Docs review - part 2

* Docs review - part 3

* Docs review - part 4

* Docs review - part 5

* Docs review - part 6

* Docs review - part 6 (Fixes linters automations :/ )

* Docs review - part 7

* Docs review - part 8
2022-01-30 17:57:33 +01:00
Mirko Galimberti 54c6f298c9 Add support for older Sphinx versions 2022-01-23 12:33:21 +01:00
Mirko Galimberti b79cd3cafc Improves docs on mobile, fixes duplicated getting started 2022-01-16 10:47:53 +01:00
Mirko Galimberti 7d12150ee7
Add support for Apple Silicon on CI/CD [build wheel osx] [build app osx] (#7678)
* Added support for universal2 wheels, and adds unit testing on our self-hosted Apple Silicon M1 runner

* Improve job name readability
2022-01-04 19:12:39 +01:00
Richard Larkin 9a1794e8c3
Merge pull request #7614 from wxllow/patch-1
Fix install command for zsh
2021-10-05 19:35:42 +02:00
Geo Maciolek 0ca10a893f
Update line number refs (& remove one unclear one) (#7625) 2021-09-19 17:40:08 +02:00
Mirko b1b3492d4e
Fixes missing documentation_options (#7624) 2021-09-17 21:39:47 +02:00
Mirko 6a99134255
Sphinx: Use class instead of instance in add_lexer + Fixes search on sphinx>1.7.9 (#7623)
* Use class instead of instance in add_lexer

* Fixes search with newer sphinx
2021-09-14 21:27:19 +02:00
willow 32a71278fd
Fix install command for zsh
`python -m pip install kivy[base] kivy_examples --no-binary kivy` throws the error `zsh: no matches found: kivy[base]`, you need to use `python -m pip install "kivy[base]" kivy_examples --no-binary kivy` instead
2021-09-05 12:21:39 -04:00
oshotton 31ec7df0e6 Fix missing word in doc/guide/events.rst 2021-08-04 15:16:13 +01:00
outdooracorn c0665964a3
Fix line number references in basic.rst (#7580) 2021-07-24 01:07:05 +02:00
meow464 143ba31a0a
Typo on docs, missing word (#7561) 2021-06-26 10:15:24 +02:00
meow464 9eb4bded17
Comment references the wrong layout (#7560)
There is no BoxLayout anywhere, it should be FloatLayout.
2021-06-24 23:50:58 +02:00
Anthon van der Neut fe1ab549e0
Update events.rst (#7497)
Remove the Python 2 compatible use of `super()`, it still works in Python 3, but is no longer idiomatic for  a framework supporting Python 3.5-3.9.
2021-04-25 12:39:22 -04:00
luzpaz db86b06b9b
Fix misc. typos (#7432)
* Fix misc. typos

Found via `codespell`
2021-03-18 22:06:43 +01:00
Ilya Kochankov e3459c0c1f replace --build-bottle with --build-from-source 2021-02-27 18:49:02 +03:00
Tomas Krizek d18e6086d7 python 3: use print() in docs, comment and generated code
Since kivy has moved on to Python 3, let's use the print() function
instead of statement in docs etc.
2021-02-05 22:37:32 +01:00
André Sbrocco Figueiredo a02efa311f
TabbedPanel: Doc calling `switch_to` from `__init__` (#7342)
* Fixed reference

Previous reference didn't link to anywhere, and now it links to the
dev-install page.

* Added link for example usage

As discussed in the issue #3493, when calling this method from the
python script, it has to be scheduled to the next clock cycle.

* Update kivy/uix/tabbedpanel.py

Co-authored-by: matham <moiein2000@gmail.com>

Co-authored-by: matham <moiein2000@gmail.com>
2021-01-24 04:45:34 -05:00
pwoolvett 88dee323b7
Fix/disable kivy no args (#7326)
* FIX: Disable `KIVY_NO_ARGS` depending on its value

This fix enables the environment value `KIVY_NO_ARGS` to be present but still
not disabling kivy cli parsing.

Before this, kivy only checked for `KIVY_NO_ARGS` environment variable to be
existent, wihout checking its value. Setting it to a "falsy" value (eg 0,
"false", etc) would still disable cli arg parsing, which is could be
misleading.

With this fix, only setting it to one of ('true', '1', 'yes') actually
disables it.

* TEST: passing unit tests

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* implemented suggestions

* updated patchenv func
* added `KIVY_ENVS_TO_EXCLUDE = ('KIVY_UNITTEST', 'KIVY_PACKAGING')` because `__init__.py` treats them equal. 
* removed remanent lower

* FIX: web edit typos

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* PEP8

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* FMT: auto (black) + unused imports

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* PEP8

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* FIX: nonzero exit on subprocess import

Signed-off-by: Pablo Woolvett <pablowoolvett@gmail.com>

* Update kivy/tests/test_environ_cli.py

Co-authored-by: matham <moiein2000@gmail.com>

* Update kivy/tests/test_environ_cli.py

Co-authored-by: matham <moiein2000@gmail.com>

Co-authored-by: matham <moiein2000@gmail.com>
2021-01-11 19:16:20 -05:00
Lindström Mathias 3e37301b29
Doc cleanups (#7295)
* ⬆️ Removed the last part of pw.js/pw.php

* ⬆️ Removed the last part of pw.js/pw.php
2020-12-29 10:53:27 -05:00
Mirko Galimberti 36582222cd Update docs for kivy-ios 2020-12-25 16:50:37 +01:00