Skip to content

Commit

Permalink
changing master -> main in the examples docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Dec 28, 2023
1 parent 57a54d0 commit 17c8cbc
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/docs/api/observable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ The **`mobx_codegen`** package uses an `Atom` internally for all the
Here is a simple clock that relies on an `Atom` to notify every second.

> Full code can be seen
> [here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/clock).
> [here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/clock).
- When the clock gets observed the first time, we start the timer
(`_startTimer`).
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/api/spy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ specifically captured in its sub-classes:
Let us setup the spy to do some logging of the MobX activities.

> This is part of the
> [mobx_examples code](https://github.com/mobxjs/mobx.dart/blob/master/mobx_examples/lib/main.dart#L26).
> [mobx_examples code](https://github.com/mobxjs/mobx.dart/blob/main/mobx_examples/lib/main.dart#L26).
```dart {7}
import 'package:mobx/mobx.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/examples/connectivity/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ the Flutter widget tree.
:::info

The complete example can be seen
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/connectivity)
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/connectivity)

:::
4 changes: 2 additions & 2 deletions docs/docs/examples/counter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ guide. It does add a few details that were missing over there.
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/counter).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/counter).

:::

Expand Down Expand Up @@ -113,6 +113,6 @@ import counterGif from '../getting-started/mobx-counter.gif';
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/counter).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/counter).

:::
4 changes: 2 additions & 2 deletions docs/docs/examples/dice/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tap of a button and a random count is generated with every roll of dice.
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/dice).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/dice).

:::

Expand Down Expand Up @@ -208,6 +208,6 @@ The working example will be as seen in the figure below:
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/dice).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/dice).

:::
6 changes: 3 additions & 3 deletions docs/docs/examples/form/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ validations when a field changes.
:::info

See the full code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/form).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/form).

:::

Expand Down Expand Up @@ -229,7 +229,7 @@ special API or abstractions.
The `Widget` hierarchy needed here is fairly simple with a list of `Observer`
widgets for each field, wrapped in a `Column`. It is really not the most
interesting part of the example and hence been left out. Do take a look at the
[source code](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/form)
[source code](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/form)
to see its simplicity.

<img src={formGif} />
Expand All @@ -245,6 +245,6 @@ plateaus very quickly and lets you focus back on building your awesome apps.
:::info

See the full code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/form).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/form).

:::
4 changes: 2 additions & 2 deletions docs/docs/examples/github/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories for a user. This will also show the use of an `ObservableFuture`
with an `Observer`.

:::info The full source code can be seen
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/github)
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/github)
:::

## Define the observable state
Expand Down Expand Up @@ -259,5 +259,5 @@ import githubRepos from './github-repos.gif';
<img src={githubRepos} style={{ marginBottom: 20 }} />

:::info The full source code can be seen
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/github)
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/github)
:::
4 changes: 2 additions & 2 deletions docs/docs/examples/hacker-news/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defined in terms of the `ObservableFuture`.
:::info

The complete example can be seen
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/hackernews)
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/hackernews)

:::

Expand Down Expand Up @@ -250,6 +250,6 @@ store it in a `List<FeedItem>`, or even an `ObservableList<FeedItem>`.
:::info

The complete example can be seen
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/hackernews)
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/hackernews)

:::
4 changes: 2 additions & 2 deletions docs/docs/examples/random-stream/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ observing a stream of random numbers.
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/random_stream).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/random_stream).

:::

Expand Down Expand Up @@ -124,6 +124,6 @@ class _RandomNumberExampleState extends State<RandomNumberExample> {
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/random_stream).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/random_stream).

:::
8 changes: 4 additions & 4 deletions docs/docs/examples/todos/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ library.
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/todos).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/todos).

:::

Expand Down Expand Up @@ -518,14 +518,14 @@ around the state, we rely on the `Provider<T>` from the
:::info

See the complete code
[here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/todos).
[here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/todos).

:::

> ### Comprehensive TodoMVC
>
> A more comprehensive example is available in
> [Brian Egan's Flutter Architecture Samples](https://github.com/brianegan/flutter_architecture_samples/tree/master/mobx),
> [Brian Egan's Flutter Architecture Samples](https://github.com/brianegan/flutter_architecture_samples/tree/main/mobx),
> that covers few other use cases like localization, persistence, unit-testing,
> navigation, etc. Do take a look
> [here](https://github.com/brianegan/flutter_architecture_samples/tree/master/mobx).
> [here](https://github.com/brianegan/flutter_architecture_samples/tree/main/mobx).
4 changes: 2 additions & 2 deletions docs/docs/guides/json-serialization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for `mobx_codegen`.
Let's add support for `json_serializable` to the **todos** example.

> See the complete code
> [here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/todos).
> [here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/todos).
## Adding dependency in pubspec.yaml

Expand Down Expand Up @@ -226,4 +226,4 @@ With these changes, you should now be able to serialize the **Todos** to/from
generators.

> See the complete code
> [here](https://github.com/mobxjs/mobx.dart/tree/master/mobx_examples/lib/todos).
> [here](https://github.com/mobxjs/mobx.dart/tree/main/mobx_examples/lib/todos).

0 comments on commit 17c8cbc

Please sign in to comment.