Apply pre-commit hooks to all files

This commit is contained in:
Tobias Hunger 2021-08-11 22:12:04 +02:00 committed by Simon Hausmann
parent 892c4c0062
commit aea4ecca99
288 changed files with 198 additions and 371 deletions

View file

@ -1 +1 @@
Pipfile.lock
Pipfile.lock

View file

@ -11,4 +11,4 @@
img.logo {
max-height: 70px;
border-radius: 12% !important;
}
}

View file

@ -3,4 +3,4 @@
{{ super() }}
{% include "../../../../docs/resources/sixtyfps-docs-preview.html" %}
{% include "../../../../docs/resources/sixtyfps-docs-highlight.html" %}
{% endblock %}
{% endblock %}

View file

@ -87,4 +87,4 @@ After extracting the artifact you can place the `lib` directory into your `CMAKE
in locating the package.
In the next section you will learn how to use the installed library in your application
and load `.60` UI files.
and load `.60` UI files.

View file

@ -18,14 +18,14 @@ import textwrap
# -- Project information -----------------------------------------------------
project = 'SixtyFPS C++'
copyright = '2021, info@sixtyfps.io'
author = 'info@sixtyfps.io'
project = "SixtyFPS C++"
copyright = "2021, info@sixtyfps.io"
author = "info@sixtyfps.io"
# The full version, including alpha/beta/rc tags
version = '0.1.1'
version = "0.1.1"
cpp_index_common_prefix = [ "sixtyfps::", "sixtyfps::interpreter::" ]
cpp_index_common_prefix = ["sixtyfps::", "sixtyfps::interpreter::"]
# -- General configuration ---------------------------------------------------
@ -34,16 +34,15 @@ cpp_index_common_prefix = [ "sixtyfps::", "sixtyfps::interpreter::" ]
# ones.
extensions = ["breathe", "myst_parser", "exhale", "sphinx_markdown_tables"]
breathe_projects = {
"SixtyFPS": "./docs/xml"
}
breathe_projects = {"SixtyFPS": "./docs/xml"}
breathe_default_project = "SixtyFPS"
exhale_args = {
"containmentFolder": "./api",
"rootFileName": "library_root.rst",
"rootFileTitle": "C++ API Reference",
"afterTitleDescription": textwrap.dedent('''
"containmentFolder": "./api",
"rootFileName": "library_root.rst",
"rootFileTitle": "C++ API Reference",
"afterTitleDescription": textwrap.dedent(
"""
The following sections present the C++ API Reference. All types are
within the :ref:`sixtyfps<namespace_sixtyfps>` namespace and are accessible by including
the :code:`sixtyfps.h` header file.
@ -52,27 +51,36 @@ exhale_args = {
you can use the classes in :ref:`sixtyfps::interpreter<namespace_sixtyfps__interpreter>`, starting at
:cpp:class:`sixtyfps::interpreter::ComponentCompiler`. You need to include
the :code:`sixtyfps_interpreter.h` header file.
'''),
"doxygenStripFromPath": "..",
"createTreeView": True,
"exhaleExecutesDoxygen": True,
"exhaleDoxygenStdin": '''INPUT = ../../api/sixtyfps-cpp/include
"""
),
"doxygenStripFromPath": "..",
"createTreeView": True,
"exhaleExecutesDoxygen": True,
"exhaleDoxygenStdin": """INPUT = ../../api/sixtyfps-cpp/include
EXCLUDE_SYMBOLS = sixtyfps::cbindgen_private* sixtyfps::private_api* vtable*
EXCLUDE = ../../api/sixtyfps-cpp/include/vtable.h ../../api/sixtyfps-cpp/include/sixtyfps_testing.h
ENABLE_PREPROCESSING = YES
PREDEFINED += DOXYGEN
WARN_AS_ERROR = YES'''
WARN_AS_ERROR = YES""",
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'html/_static/collapsible-lists/LICENSE.md', 'Thumbs.db', '.DS_Store', 'markdown/tutorial',
'markdown/building.md', 'markdown/development.md', 'markdown/install_qt.md',
'markdown/README.md', 'README.md'
exclude_patterns = [
"_build",
"html/_static/collapsible-lists/LICENSE.md",
"Thumbs.db",
".DS_Store",
"markdown/tutorial",
"markdown/building.md",
"markdown/development.md",
"markdown/install_qt.md",
"markdown/README.md",
"README.md",
]
@ -81,16 +89,14 @@ exclude_patterns = ['_build', 'html/_static/collapsible-lists/LICENSE.md', 'Thum
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = "sphinx_rtd_theme"
html_theme_options = {
"collapse_navigation" : False
}
html_theme_options = {"collapse_navigation": False}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
html_show_sourcelink = False
@ -110,5 +116,6 @@ rst_epilog = """
.. _Repetition: ../markdown/langref.html#repetition
"""
def setup(app):
app.add_css_file('theme_tweak.css')
app.add_css_file("theme_tweak.css")

View file

@ -94,4 +94,3 @@ For a quick edit and preview cycle, you can also use the :code:`sixtyfps-viewer`
if you have `Cargo <https://marketplace.visualstudio.com/items?itemName=SixtyFPS.sixtyfps-vscode>`_ installed.
In the next section you will learn how to install the SixtyFPS C++ library and the CMake build system integration.

View file

@ -19,4 +19,4 @@
<rect x="176" y="60" width="90" height="60" rx="9" ry="9" fill="#000000" stroke="#000000" transform="translate(2,3)rotate(346,221,90)" opacity="0.25"/>
<rect x="176" y="60" width="90" height="60" rx="9" ry="9" fill="#152e7b" stroke="#000000" transform="rotate(346,221,90)" pointer-events="all"/>
</g>
</svg>
</svg>

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

Before After
Before After