Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b01435e
refactor(docusarus): initial commit for docusaurus migration
MatanBobi Sep 12, 2020
0a1afe6
update gitignore
MatanBobi Sep 12, 2020
015abb9
fix build
MatanBobi Sep 12, 2020
a0bc949
multiple fixes for build
MatanBobi Sep 12, 2020
63fb9b6
update netlify to correct build route
MatanBobi Sep 12, 2020
f9e2241
fix sidebars
MatanBobi Sep 12, 2020
60b1b8a
add website-old temporarily to gitignore
MatanBobi Sep 12, 2020
50d17d3
update README
MatanBobi Sep 13, 2020
ae9626b
CSS Fixes and MultiLingualCodeBlock
MatanBobi Sep 14, 2020
9c53bb4
Fix help page layout
MatanBobi Sep 14, 2020
710e1de
add MarkdownBlock component
MatanBobi Sep 15, 2020
67879fd
Footer fixes
MatanBobi Sep 16, 2020
4ca3db6
fix footer github button
MatanBobi Sep 16, 2020
0ac2cc3
Remove the logos that dont look good on dark mode
MatanBobi Sep 16, 2020
0b83c14
Fix users page and buttons
MatanBobi Sep 16, 2020
df1c893
fix: broken users link from home page
MatanBobi Sep 16, 2020
7dc05f9
refactor: extract showcase and rename js to jsx
MatanBobi Sep 16, 2020
d529784
fix broken build
MatanBobi Sep 16, 2020
0d35c2b
fix: broken links in md
MatanBobi Sep 17, 2020
1886df8
merge master
MatanBobi Oct 2, 2020
341f720
Merge branch 'master' into pr/migrate-ducusaurus
MatanBobi Oct 2, 2020
80ac83b
fix: fix showcase
MatanBobi Oct 2, 2020
fa4e994
update api-events to contain new code tabs
MatanBobi Oct 3, 2020
dccc394
rename all md to mdx
MatanBobi Oct 3, 2020
5258c68
Revert "rename all md to mdx"
MatanBobi Oct 3, 2020
ad1fac6
migrate all md to mdx and change links
MatanBobi Oct 3, 2020
dfbcb46
code review fix - put imports at the top
MatanBobi Oct 3, 2020
859a470
Merge remote-tracking branch 'upstream/master' into pr/migrate-ducusa…
MatanBobi Oct 9, 2020
2eba03b
migrate to npm
MatanBobi Oct 9, 2020
29f89a5
remove unnecessary code and css
MatanBobi Oct 10, 2020
b00a780
Merge remote-tracking branch 'upstream/master'
MatanBobi Oct 13, 2020
590af0e
remove unnecessary code
MatanBobi Oct 13, 2020
33dbab9
remove yarn.lock
MatanBobi Oct 13, 2020
734dcb7
fix: multiple ui fixes and blog sidebar
MatanBobi Oct 28, 2020
a44c70c
fix help appearing in two places
MatanBobi Oct 28, 2020
e819a60
add missing global-cto-forum logo
MatanBobi Oct 28, 2020
e195402
remove docker and add code snippets for mdx
MatanBobi Nov 1, 2020
e94c990
Merge remote-tracking branch 'upstream/master'
MatanBobi Nov 1, 2020
49ce488
Merge branch 'master' into pr/migrate-ducusaurus
MatanBobi Nov 1, 2020
cf466ea
pull the website directory outside
MatanBobi Nov 3, 2020
ef64020
fix light background in stripes
MatanBobi Nov 3, 2020
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update README
  • Loading branch information
MatanBobi committed Sep 13, 2020
commit 50d17d30aafd20bf49c11d1d3fb60e2e2555392b
207 changes: 207 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# Testing Library Docs

## Contributing

This website was created with [Docusaurus](https://v2.docusaurus.io).

# What's In This Document

- [Get Started in 5 Minutes](#get-started-in-5-minutes)
- [Directory Structure](#directory-structure)
- [Editing Content](#editing-content)
- [Adding Content](#adding-content)
- [Full Documentation](#full-documentation)

# Get Started in 5 Minutes

1. Make sure all the dependencies for the website are installed:

```sh
# Install dependencies
$ yarn
```

2. Run your dev server:

```sh
# Start the site
$ yarn start
```

## Directory Structure

Your project file structure should look something like this

```
my-docusaurus/
docs/
doc-1.md
doc-2.md
doc-3.md
website/
blog/
2016-3-11-oldest-post.md
2017-10-24-newest-post.md
src/
components/
css/
pages/
node_modules/
static/
css/
img/
package.json
sidebars.json
docusaurus.config.js
```

# Editing Content

## Editing an existing docs page

Edit docs by navigating to `docs/` and editing the corresponding document:

`docs/doc-to-be-edited.mdx`

```markdown
---
id: page-needs-edit
title: This Doc Needs To Be Edited
---

Edit me...
```

For more information about docs, click [here](https://v2.docusaurus.io/docs)

## Editing an existing blog post

Edit blog posts by navigating to `website/blog` and editing the corresponding
post:

`website/blog/post-to-be-edited.mdx`

```markdown
---
id: post-needs-edit
title: This Blog Post Needs To Be Edited
---

Edit me...
```

For more information about blog posts, click
[here](https://v2.docusaurus.io/docs/blog)

# Adding Content

## Adding a new docs page to an existing sidebar

1. Create the doc as a new markdown file in `/docs`, example
`docs/newly-created-doc.mdx`:

```md
---
id: newly-created-doc
title: This Doc Needs To Be Edited
---

My new content here..
```

1. Refer to that doc's ID in an existing sidebar in `website/sidebar.json`:

```javascript
// Add newly-created-doc to the Getting Started category of docs
{
"docs": {
"Getting Started": [
"quick-start",
"newly-created-doc" // new doc here
],
...
},
...
}
```

For more information about adding new docs, click
[here](https://v2.docusaurus.io/docs/)

## Adding items to your site's top navigation bar

1. Add links to docs, custom pages or external links by editing the
`themeConfig.navbar.items` field of `website/docusaurus.config.js`:

`website/docusaurus.config.js`

```javascript
themeConfig: {
navbar: {
title: 'Testing Library',
logo: {
src: 'img/octopus-64x64.png',
},
items: [
{
to: 'docs/',
label: 'Docs',
position: 'left',
},
{
to: 'docs/recipes',
label: 'Recipes',
position: 'left',
},
{
to: '/help',
label: 'Help',
position: 'left',
},
],
}
```

## Adding custom pages

1. Docusaurus uses React components to build pages. The components are saved as
.js files in `website/src/pages`:
1. If you want your page to show up in your navigation header, you will need to
update `website/docusaurus.config.js` and add it to the `items` under
`themeConfig.navbar.items`:

`website/docusaurus.config.js`

```javascript
themeConfig: {
navbar: {
title: 'Testing Library',
logo: {
src: 'img/octopus-64x64.png',
},
items: [
{
to: 'docs/',
label: 'Docs',
position: 'left',
},
{
to: 'docs/recipes',
label: 'Recipes',
position: 'left',
},
{
to: '/help',
label: 'Help',
position: 'left',
},
],
}
```

For more information about custom pages, click
[here](https://v2.docusaurus.io/docs/creating-pages).

# Full Documentation

Full documentation can be found on the [website](https://v2.docusaurus.io).