Skip to content

Commit fff5c2d

Browse files
committed
add brief blog post about new code tabs
1 parent 3d55c96 commit fff5c2d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

website/blog/2018-12-29-new-site.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ authorURL: http://github.com/alexkrolick
66

77
We have a docs site now! It's built with [Docusaurus](https://docusaurus.io).
88

9-
<!--truncate-->
10-
119
The new site is the homepage for DOM Testing Library, React Testing Library, and
1210
the \*-testing-library ecosystem. Check out the landing pages for each:
1311

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Multi-Framework Code Blocks
3+
author: Alex Krolick
4+
authorURL: http://github.com/alexkrolick
5+
---
6+
7+
Many of the code samples have been updated to include tabs to switch between
8+
"plain" DOM Testing Library syntax and the wrappers for React, Cypress, etc.
9+
10+
Thanks to [@tylerthehaas](https://github.com/tylerthehaas) for pointing out that
11+
the previous examples could be confusing if you were targeting a specific
12+
library, and to the Docusaurus team for adding support for code tabs in version
13+
[1.7.2](https://github.com/facebook/Docusaurus/blob/master/CHANGELOG.md#170---2019-1-23).

0 commit comments

Comments
 (0)