docs: Fix some warnings

This commit is contained in:
James Westman 2023-05-06 21:34:17 -05:00
parent 8fcd08c835
commit 77dc9350e9
4 changed files with 6 additions and 8 deletions

View file

@ -53,9 +53,7 @@ Features
- **Concise syntax.** No more clumsy XML! Blueprint is designed from the ground
up to match GTK's widget model, including templates, child types, signal
handlers, and menus.
- **Easy to learn.** The syntax should be very familiar to most people. Scroll
through the :doc:`examples page <examples>` for a quick overview of the whole
language.
- **Easy to learn.** The syntax should be very familiar to most people. Take a look at the :doc:`reference <reference/index>` to get started.
- **Modern tooling.** Blueprint ships a `Language Server <https://microsoft.github.io/language-server-protocol/>`_ for IDE integration.
Links

View file

@ -202,7 +202,7 @@ The template type is `Gtk.ListItem <https://docs.gtk.org/gtk4/class.ListItem.htm
template {
child: Label {
label: bind item.string;
}
};
}
}

View file

@ -174,7 +174,7 @@ Child extensions
}
Internal children
++++++++++++++++
+++++++++++++++++
.. code-block:: blueprintui

View file

@ -85,7 +85,7 @@ Translated Strings
Use ``_("...")`` to mark strings as translatable. You can put a comment for translators on the line above if needed.
.. code-block::
.. code-block:: blueprintui
Gtk.Label label {
/* Translators: This is the main text of the welcome screen */
@ -94,7 +94,7 @@ Use ``_("...")`` to mark strings as translatable. You can put a comment for tran
Use ``C_("context", "...")`` to add a *message context* to a string to disambiguate it, in case the same string appears in different places. Remember, two strings might be the same in one language but different in another depending on context.
.. code-block::
.. code-block:: blueprintui
Gtk.Label label {
/* Translators: This is a section in the preferences window */
@ -165,4 +165,4 @@ String Values
StringValue = :ref:`Translated<Syntax Translated>` | :ref:`QuotedLiteral<Syntax Literal>`
Menus, as well as some :ref:`extensions<Syntax Extensions>`, have properties that can only be string literals or translated strings.
Menus, as well as some :ref:`extensions<Syntax Extension>`, have properties that can only be string literals or translated strings.