Skip to content

Commit

Permalink
Merge pull request #3091 from AndreMiras/feature/fix_documentation_build
Browse files Browse the repository at this point in the history
💚 Fix sphinx documentation build errors
  • Loading branch information
AndreMiras authored Dec 12, 2024
2 parents 11b73f9 + ceca3da commit a0eeffe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ You can also test the master branch from Github using::
pip install git+https://github.com/kivy/python-for-android.git

Installing Prerequisites
~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~

p4a requires a few dependencies to be installed on your system to work
properly. While we're working on a way to automate pre-requisites checks,
Expand Down
5 changes: 3 additions & 2 deletions doc/source/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ For example, when downloading from a private github repository, you can specify
```

(For the DOWNLOAD_HEADERS_my-package-name environment variable - specify as a JSON formatted set of values)
```
.. code-block:: bash
[["Authorization","token <your personal access token>"],["Accept", "application/vnd.github+json"]]
```
The actual build process takes place via three core methods::

def prebuild_arch(self, arch):
Expand Down
4 changes: 2 additions & 2 deletions pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class Recipe(metaclass=RecipeMeta):
keys should be the generated libraries and the values the relative path of
the library inside his build folder. This dict will be used to perform
different operations:
- copy the library into the right location, depending on if it's shared
or static)
- check if we have to rebuild the library
Expand Down Expand Up @@ -571,7 +572,6 @@ def should_build(self, arch):
'''Should perform any necessary test and return True only if it needs
building again. Per default we implement a library test, in case that
we detect so.
'''
if self.built_libraries:
return not all(
Expand All @@ -591,7 +591,7 @@ def install_libraries(self, arch):
'''This method is always called after `build_arch`. In case that we
detect a library recipe, defined by the class attribute
`built_libraries`, we will copy all defined libraries into the
right location.
right location.
'''
if not self.built_libraries:
return
Expand Down
1 change: 1 addition & 0 deletions pythonforandroid/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ def recipes(self, args):
"""
Prints recipes basic info, e.g.
.. code-block:: bash
python3 3.7.1
depends: ['hostpython3', 'sqlite3', 'openssl', 'libffi']
conflicts: []
Expand Down

0 comments on commit a0eeffe

Please sign in to comment.