Skip to content

Commit

Permalink
README - Add dependency_overrides snippet (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosilvestre authored and matthew-carroll committed Oct 24, 2023
1 parent 90b8a2e commit 335443b
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@

<p align="center">Super Editor was initiated by <a href="https://superlist.com">Superlist</a> and is implemented and maintained by the <a href="https://flutterbountyhunters.com">Flutter Bounty Hunters</a>, Superlist, and the contributors.</p>

<p align="center">Feel free to <a href="https://join.slack.com/t/superlist-community/shared_invite/zt-10cpx277q-uZ~pmjlTWg9QQzH64OK9_w">join us on Slack</a> and say hello 👋.</p>
<hr>

<p align="center">Do you use Flutter's <b>stable</b> branch? Be sure to checkout <code>super_editor</code>'s <b><a href="https://github.com/superlistapp/super_editor/commits/stable">stable</a></b> branch, for compatibility.<br>Do you use Flutter's <b>master</b> branch? Be sure to checkout <code>super_editor</code>'s <b><a href="https://github.com/superlistapp/super_editor/commits/main">main</a></b> branch, for compabitility.</p>

<hr>

<p align="center"><img src="https://raw.githubusercontent.com/superlistapp/super_editor/main/super_editor/doc/marketing/readme-header.png" width="500" alt="Super Editor"></p>

<h2 align="center">Super Editor & Super Text Field</h2>

Please see the [SuperEditor README](super_editor/README.md) about how to use the packages, or run the [sample editor](super_editor/example/README.md).
Please see the [SuperEditor README](super_editor/README.md) about how to use the packages, or run the [sample editor](super_editor/example/README.md).

A web demo is accessible at [https://superlist.com/SuperEditor](https://superlist.com/SuperEditor/).
A web demo is accessible at [https://superlist.com/SuperEditor](https://superlist.com/SuperEditor/).

<hr>

Expand All @@ -30,3 +32,31 @@ You might notice that this is a mono-repo, which includes multiple projects. Tha
<a href="attributed_text/README.md"><img src="https://user-images.githubusercontent.com/7259036/170845473-268655ac-3fec-47c1-86ab-41a1391aa1e0.png" width="300" alt="Attributed Text"></a>
</p>

<h2 align="center">Mono-repo Versioning</h2>
If you have compilation errors when using the GitHub version of super_editor, try overriding dependencies for the other packages in this mono-repo, e.g., super_editor_markdown, super_text_layout, and attributed_text. This project often makes changes to multiple packages within the mono-repo, which requires that you use the latest main or stable version of every package.

You can override your dependencies as follows:

```yaml
dependency_overrides:
super_editor:
git:
url: https://github.com/superlistapp/super_editor
path: super_editor
ref: stable # or "main"
super_editor_markdown:
git:
url: https://github.com/superlistapp/super_editor
path: super_editor_markdown
ref: stable
super_text_layout:
git:
url: https://github.com/superlistapp/super_editor
path: super_text_layout
ref: stable
attributed_text:
git:
url: https://github.com/superlistapp/super_editor
path: attributed_text
ref: stable
```

0 comments on commit 335443b

Please sign in to comment.