aboutsummaryrefslogtreecommitdiff
path: root/docs/refman
diff options
context:
space:
mode:
Diffstat (limited to 'docs/refman')
-rw-r--r--docs/refman/generatormd.py2
-rw-r--r--docs/refman/jsonschema.py4
-rw-r--r--docs/refman/loaderbase.py4
-rw-r--r--docs/refman/templates/args.mustache2
-rw-r--r--docs/refman/templates/root.mustache2
5 files changed, 7 insertions, 7 deletions
diff --git a/docs/refman/generatormd.py b/docs/refman/generatormd.py
index 8fd0ef9..9723034 100644
--- a/docs/refman/generatormd.py
+++ b/docs/refman/generatormd.py
@@ -119,7 +119,7 @@ class GeneratorMD(GeneratorBase):
raise RuntimeError(f'Invalid argument {obj}')
def _write_file(self, data: str, file_id: str) -> None:#
- ''' Write the data to disk ans store the id for the generated data '''
+ ''' Write the data to disk and store the id for the generated data '''
self.generated_files[file_id] = self._gen_filename(file_id)
out_file = self.out_dir / self.generated_files[file_id]
diff --git a/docs/refman/jsonschema.py b/docs/refman/jsonschema.py
index 1b94856..00c0b5e 100644
--- a/docs/refman/jsonschema.py
+++ b/docs/refman/jsonschema.py
@@ -30,10 +30,10 @@ class Type(T.TypedDict):
class Argument(BaseObject):
'''
- Object that represents any type of a single function or method argumet.
+ Object that represents any type of a single function or method argument.
'''
type: T.List[Type] # A non-empty list of types that are supported.
- type_str: str # Formated version of `type`. Is guranteed to not contain any whitespaces.
+ type_str: str # Formatted version of `type`. Is guaranteed to not contain any whitespaces.
required: bool
default: T.Optional[str]
min_varargs: T.Optional[int] # Only relevant for varargs, must be `null` for all other types of arguments
diff --git a/docs/refman/loaderbase.py b/docs/refman/loaderbase.py
index 1db92e2..3011126 100644
--- a/docs/refman/loaderbase.py
+++ b/docs/refman/loaderbase.py
@@ -151,7 +151,7 @@ class _Resolver:
self.type_map[obj.name] = obj
for m in obj.methods:
mid = f'{obj.name}.{m.name}'
- assert mid not in self.type_map, f'Duplicate metod {mid}'
+ assert mid not in self.type_map, f'Duplicate method {mid}'
self.func_map[mid] = m
# Build func map for functions
@@ -169,7 +169,7 @@ class _Resolver:
mlog.log(' -- validating', mlog.bold(obj.name))
self._validate_named_object(obj)
self._validate_feature_check(obj)
- # Resolve and validate inheritence
+ # Resolve and validate inheritance
if obj.extends:
assert obj.extends in self.type_map, f'Unknown extends object {obj.extends} in {obj.name}'
obj.extends_obj = self.type_map[obj.extends]
diff --git a/docs/refman/templates/args.mustache b/docs/refman/templates/args.mustache
index 802bcd6..f3ee84b 100644
--- a/docs/refman/templates/args.mustache
+++ b/docs/refman/templates/args.mustache
@@ -16,7 +16,7 @@
<tr>
<td style="white-space: nowrap; text-align: center; padding: 6px;"><code class="language-meson">{{name}}</code></td>
<td style="white-space: revert; text-align: center; padding: 6px; word-wrap: break-word;">{{&type}}</td>
- <!-- This suboptimal formating is required to ensure hotdoc correctly generates the HTML -->
+ <!-- This suboptimal formatting is required to ensure hotdoc correctly generates the HTML -->
<td style="width: 56%; padding: 6px;">
{{&description}}
diff --git a/docs/refman/templates/root.mustache b/docs/refman/templates/root.mustache
index c793b04..a540c2c 100644
--- a/docs/refman/templates/root.mustache
+++ b/docs/refman/templates/root.mustache
@@ -55,4 +55,4 @@ or other methods.
{{/modules}}
{{/enable_modules}}
-<!-- The links used to be generated wit {>root_link}, but this is a bit hard to read -->
+<!-- The links used to be generated with {>root_link}, but this is a bit hard to read -->