diff --git a/README.md b/README.md
index 9c00932c..62618314 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,7 @@
-# react-native-owl [![github][github-image]][github-url]
+# react-native-owl [![github][github-image]][github-url] [![npm][npm-image]][npm-url] [![docs][docs-image]][docs-url]
> **Work In Progress**: Visual regression testing for React Native
-
-
## Installation
```sh
@@ -12,14 +10,14 @@ yarn add -D react-native-owl
npm install -D react-native-owl
```
-## 📃 [Documentation](https://formidable.com/open-source/react-native-owl/docs/)
+## 📃 [Documentation](https://formidable.com/open-source/react-native-owl/)
The documentation contains everything you need to know about `react-native-owl`, and contains several sections in order of importance
when you first get started:
- **[Getting started](https://formidable.com/open-source/react-native-owl/docs/introduction/getting-started)** — contains the "Getting Started" guide.
-- **[Configuration](https://formidable.com/open-source/react-native-owl/introduction/config-file)** — explains all the configuration options for `react-native-owl`.
-- **[Running on CI](https://formidable.com/open-source/react-native-owl/advanced/running-ci)** — example GitHub Action to run react-native-owl on CO.
+- **[Configuration](https://formidable.com/open-source/react-native-owl/docs/introduction/config-file)** — explains all the configuration options for `react-native-owl`.
+- **[Running on CI](https://formidable.com/open-source/react-native-owl/docs/advanced/running-ci)** — example GitHub Action to run react-native-owl on CO.
_You can find the raw markdown files inside this repository's `docs` folder._
@@ -29,3 +27,7 @@ _You can find the raw markdown files inside this repository's `docs` folder._
[github-image]: https://github.com/FormidableLabs/react-native-owl/workflows/Run%20Tests/badge.svg
[github-url]: https://github.com/FormidableLabs/react-native-owl/actions
+[npm-image]: https://img.shields.io/npm/v/react-native-owl
+[npm-url]: https://www.npmjs.com/package/react-native-owl
+[docs-image]: https://img.shields.io/badge/docs-visit%20site-blue
+[docs-url]: https://formidable.com/open-source/react-native-owl/
diff --git a/docs/advanced/running-ci.md b/docs/advanced/running-ci.md
index 4ca55948..7b9211b0 100644
--- a/docs/advanced/running-ci.md
+++ b/docs/advanced/running-ci.md
@@ -4,8 +4,6 @@ sidebar_position: 1
# Running on CI
-This is a placeholder.
-
:::info
With visual regression testing, it is all about **consistency**. Please make sure that you use the same simulator across environments. ie. Use the same emulator to generate the baseline images and the same (model) one on CI so that the library can compare the screenshots.
diff --git a/docs/api/matchers.md b/docs/api/matchers.md
index 8d8baaa1..0b626dbc 100644
--- a/docs/api/matchers.md
+++ b/docs/api/matchers.md
@@ -4,15 +4,13 @@ sidebar_position: 2
# Matchers
-This is a placeholder.
-
### toMatchBaseline(name: string)
This custom matcher will try to find and compare the baseline screenshot by using the path of the latest screenshot (returned by `takeScreenshot()`). You will have to take a screenshot before using, and pass the path of that screenshot to the expect method.
#### Example
-```js
+```js {7}
import { takeScreenshot } from 'react-native-owl';
describe('App.tsx', () => {
@@ -26,4 +24,4 @@ describe('App.tsx', () => {
The first time this test is run, or when run with the `--update` flag, the `.toMatchBaseline` expectation will always be successful.
-On subsequent test runs, the screenshot captured by `takeScreenshot` (and stored in `/current`) will be compared to the baseline screenshot. ***Any*** differences will cause the expectation to fail, and the report to be generated.
\ No newline at end of file
+On subsequent test runs, the screenshot captured by `takeScreenshot` (and stored in `/current`) will be compared to the baseline screenshot. **_Any_** differences will cause the expectation to fail, and the report to be generated.
diff --git a/docs/api/methods.md b/docs/api/methods.md
index b1b47b7d..16155815 100644
--- a/docs/api/methods.md
+++ b/docs/api/methods.md
@@ -4,15 +4,13 @@ sidebar_position: 1
# Methods
-This is a placeholder.
-
### takeScreenshot(name: string)
Grabs a screenshot from the simulator and stores it under `latest` screenshots(ie. `./owl/latest/ios/`) using the specified filename (no extension required). If running the tests using the `--update` or `-u` flag, or its the first time its being run, this will store the screenshot under the `baseline` directory.
#### Example
-```js
+```js {5}
import { takeScreenshot } from 'react-native-owl';
describe('App.tsx', () => {
@@ -26,4 +24,4 @@ describe('App.tsx', () => {
The first time this test is run, or when run with the `--update` flag, the screenshot will be stored at `./owl/baseline/ios/homescreen.png` (or `/android/` is testing on Android).
-On subsequent test runs, the screenshot will be stored at `./owl/current/ios/homescreen.png`.
\ No newline at end of file
+On subsequent test runs, the screenshot will be stored at `./owl/current/ios/homescreen.png`.
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index d3bddbc4..220b7bda 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -49,6 +49,11 @@ const config = {
disableSwitch: true,
respectPrefersColorScheme: false,
},
+ announcementBar: {
+ id: 'announcement-blogpost',
+ content: `Read the announcement "We're Building a Visual Regression Testing Library for React Native" in our blog.`,
+ isCloseable: false,
+ },
navbar: {
style: 'dark',
title: 'React Native Owl',
@@ -126,6 +131,7 @@ const config = {
],
},
prism: {
+ defaultLanguage: 'javascript',
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
diff --git a/website/src/components/Hero/index.tsx b/website/src/components/Hero/index.tsx
index 469f972f..d729d06d 100644
--- a/website/src/components/Hero/index.tsx
+++ b/website/src/components/Hero/index.tsx
@@ -20,7 +20,7 @@ export const Hero = () => {
const { siteConfig } = useDocusaurusContext();
return (
-
+