Skip to content

Commit

Permalink
docs: various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding committed Jul 27, 2024
1 parent 262b3af commit 2550cf0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/styles/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ See the [layout](../guide/layout.md) guide for more information.
## Example

Note how the `layout` style affects the arrangement of widgets in the example below.
To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](../grid.md).
To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](./grid/index.md).

=== "Output"

Expand Down
2 changes: 1 addition & 1 deletion src/textual/css/query.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This module contains the `DOMQuery` class and related objects.s
This module contains the `DOMQuery` class and related objects.
A DOMQuery is a set of DOM nodes returned by [query][textual.dom.DOMNode.query].
Expand Down
4 changes: 2 additions & 2 deletions src/textual/dom.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def get_component_styles(self, *names: str) -> RenderStyles:
"""Get a "component" styles object (must be defined in COMPONENT_CLASSES classvar).
Args:
name: Name of the component.
names: Names of the components.
Raises:
KeyError: If the component class doesn't exist.
Expand Down Expand Up @@ -1537,7 +1537,7 @@ def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | No
Args:
action: The name of an action.
action_parameters: A tuple of any action parameters.
parameters: A tuple of any action parameters.
Returns:
`True` if the action is enabled+visible,
Expand Down
2 changes: 1 addition & 1 deletion src/textual/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def with_height(self, height: int) -> Size:
"""Get a new Size with just the height changed.
Args:
width: New height.
height: New height.
Returns:
New Size instance.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/renderables/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Bar:
highlight_style: The style of the highlighted range of the bar.
background_style: The style of the non-highlighted range(s) of the bar.
width: The width of the bar, or `None` to fill available width.
gradient. Optional gradient object.
gradient: Optional gradient object.
"""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def get_component_rich_style(self, *names: str, partial: bool = False) -> Style:
"""Get a *Rich* style for a component.
Args:
name: Name of component.
names: Names of components.
partial: Return a partial style (not combined with parent).
Returns:
Expand Down

0 comments on commit 2550cf0

Please sign in to comment.