Skip to content

Commit d869112

Browse files
authored
Misc Fixes (#617)
* Add missing code block language * Fix typo * Fix syntax error * Add missing code block language * Fix wrong code block langauge * Add missing code block language * Fix wrong code block language * Fix wrong code block language * Fix syntax error in code block * Fix typos * Use color instead of colour to be consistent with Avalonia itself
1 parent 17cd040 commit d869112

File tree

59 files changed

+101
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+101
-100
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The two suggested workflows are:
5353
When you link to an image, the path and filename are case-sensitive. The convention is `kebab-case`. `import` should be used to help detect broken images and placed near the top of the document for easier maintenance.
5454

5555
> Example code for adding an image in markdown file:
56-
```
56+
```markdown
5757
import ButtonGroup from '/img/button-group.png';
5858
<img className="screenshot-full" src={ButtonGroup} alt="Button group" />
5959
```
@@ -68,13 +68,13 @@ The two suggested workflows are:
6868

6969
### Setup
7070

71-
```
71+
```bash
7272
npm install
7373
```
7474

7575
### Starting
7676

77-
```
77+
```bash
7878
npx docusaurus start
7979
npx docusaurus start --locale zh-Hans
8080
npx docusaurus start --locale ru

docs/basics/data/data-binding/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If the user edits the text in the text box, then the `FirstName` property of the
3030

3131
Bindings can be unidirectional: where changes in the properties of a bound application object are reflected in the control, but the user cannot change the control. An example of this would be the text block control, which is read-only.
3232

33-
```
33+
```xml
3434
<TextBlock Text="{Binding StatusMessage}" />
3535
```
3636

docs/basics/user-interface/styling/styles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When a match is located by the selection step, then the matched control's proper
2929

3030
The XAML for a style has two parts: a selector attribute, and one or more setter elements. The selector value contains a string that uses the _Avalonia UI_ **style selector syntax**. Each setter element identifies the property that will be changed by name, and the new value that will be substituted. The pattern is like this:
3131

32-
```
32+
```xml
3333
<Style Selector="selector syntax">
3434
<Setter Property="property name" Value="new value"/>
3535
...

docs/concepts/reactiveui/binding-to-sorted-filtered-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Then the `_sourceCache` can be populated through the `AddOrUpdate` method
1919

2020
## Creating Sorted Or Filtered Views
2121

22-
Next the `ReadOnlyObservableCollection<T>` can be bound to the filtered or sorted `_sourceCache`. The sorting/filtering is done similarly to linq.
22+
Next the `ReadOnlyObservableCollection<T>` can be bound to the filtered or sorted `_sourceCache`. The sorting/filtering is done similarly to Linq.
2323

2424
```csharp
2525
private readonly ReadOnlyObservableCollection<TestViewModel> _testViewModels;

docs/concepts/reactiveui/reactive-command.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ When you use _ReactiveUI_ to implement revealed functionality, you create an obs
6565

6666
For example, you can add this code to the above view model constructor (`public MainWindowViewModel()`) to create an observable object to validate the view model:
6767

68-
```
68+
```csharp
6969
IObservable<bool> isInputValid = this.WhenAnyValue(
7070
x => x.UserName,
7171
x => !string.IsNullOrWhiteSpace(x) && x.Length > 7

docs/concepts/services/insets-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ SafeAreaChangedArgs is a class that provides data for the SafeAreaChanged event.
6767
### SafeAreaPadding
6868
Gets the new safe area padding.
6969

70-
```
70+
```csharp
7171
public Thickness SafeAreaPadding { get; }
7272
```
7373

docs/concepts/view-locator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You can customize the View Locator to use different conventions. For example, yo
5656

5757
By default, the View Locator is referenced in App.axaml as a DataTemplate, in the content of the `Application.DataTemplates` XAML tag. Ensure that its appropriate 'using' statement is in the `xmlns:local` property of the Application root tag.
5858

59-
```xaml
59+
```xml
6060
<Application xmlns="https://github.com/avaloniaui"
6161
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6262
x:Class="LearningAvalonia.App"

docs/deployment/debian-ubuntu.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Overall, all .NET and Avalonia dependencies are required, plus any others specif
7575

7676
Below is a simple example of a `control` file.
7777

78-
```
78+
```yaml
7979
Package: myprogram
8080
Version: 3.1.0
8181
Section: devel
@@ -112,7 +112,7 @@ The desktop shortcut file follows the [freedesktop specification](https://specif
112112

113113
Below is an example of a desktop shortcut file.
114114

115-
```
115+
```conf
116116
[Desktop Entry]
117117
Name=MyProgram
118118
Comment=MyProgram, great for doing X

docs/deployment/macOS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ macOS applications are typically distributed in a `.app` [application bundle](ht
77

88
With Avalonia, you'll have a `.app` folder structure that looks like this:
99

10-
```csharp
10+
```
1111
MyProgram.app
1212
|
1313
----Contents\

docs/get-started/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The project templates will also allow for project creation from your IDE.
6464

6565
### Ensure .NET SDK is installed
6666

67-
```
67+
```bash
6868
dotnet --list-sdks
6969

7070
8.0.202 [C:\Program Files\dotnet\sdk] <-- Your version may vary
@@ -79,7 +79,7 @@ associated with the terminal. On Windows, this involves checking environment var
7979
If while installing the project templates, you receive an error stating the `Avalonia.Templates` package cannot be found,
8080
then ensure NuGet is correctly setup with .NET's standard global package source.
8181

82-
```
82+
```bash
8383
dotnet nuget list source
8484

8585
Registered Sources:
@@ -89,7 +89,7 @@ Registered Sources:
8989

9090
If this source is not listed, add it:
9191

92-
```
92+
```bash
9393
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
9494
```
9595

0 commit comments

Comments
 (0)