Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
glaucocustodio committed Jul 20, 2024
1 parent b6dec7c commit 9293586
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 36 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[html]": {
"editor.formatOnSave": false
},
}
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ theme: just-the-docs
url: https://evenbetterspecs.github.io

aux_links:
Template Repository: https://github.com/just-the-docs/just-the-docs-template
GitHub: https://github.com/evenbetterspecs/
40 changes: 40 additions & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.bad,
.good {
background: #e8e8e8;
padding: 5px 0px 0px 0;

&::before {
padding: 0 10px;
}

.highlight {
margin-top: 3px;
}
}

.bad {
color: red;

&::before {
content: "BAD";
}
}

.good {
color: green;

&::before {
content: "GOOD";
}
}

.main-content {

h2 {
&:first-child {
margin-top: 0;
}

margin-bottom: 0.75em;
}
}
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Home
layout: home
---

<article>
<h2 id="describe">
<a href="#describe">
Describe what you are testing
</a>
</h2>

<p>Be clear about what method you are describing. For instance, use the Ruby documentation convention of <code>.</code> when referring to a class method's name and <code>#</code> when referring to an instance method's name.</p>

<div class="bad">
{% highlight ruby %}
describe 'the authenticate method for User' do
describe 'if the user is an admin' do
describe 'create url' do
{% endhighlight %}
</div>

<div class="good">
{% highlight ruby %}
describe '.authenticate' do
describe '#admin?' do
describe '#create' do
{% endhighlight %}
</div>
</article>
35 changes: 0 additions & 35 deletions index.md

This file was deleted.

0 comments on commit 9293586

Please sign in to comment.