Skip to content

Commit 882ce84

Browse files
jadlimcacoJad Limcaco
andauthored
Fix for 'Edit this on Github' links (#1052)
* Fix typo * Fix 'Edit this on Github' links * Revert "Fix 'Edit this on Github' links" This reverts commit dfef5ab. * Fix edit on Github links Co-authored-by: Jad Limcaco <jlimcaco@apple.com>
1 parent b29bc45 commit 882ce84

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ <h2 class="docs-mainTitle">
836836
</blockquote>
837837
<p><strong>Animate.css</strong> is a library of ready-to-use, cross-browser animations for use in your web projects. Great for emphasis, home pages, sliders, and attention-guiding hints.</p>
838838

839-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/00-intro.md" title="Edit this on Github">Edit this on Github</a></p>
839+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/00-intro.md" title="Edit this on Github">Edit this on Github</a></p>
840840
</section>
841841

842842

@@ -900,7 +900,7 @@ <h4>CSS Custom Properties (CSS Variables)</h4>
900900
</code></pre>
901901
<p>Even though custom properties are not supported by some aging browsers, Animate.css provides a proper fallback, widening its support for any browser that supports CSS animations.</p>
902902

903-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/01-usage.md" title="Edit this on Github">Edit this on Github</a></p>
903+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/01-usage.md" title="Edit this on Github">Edit this on Github</a></p>
904904
</section>
905905

906906

@@ -1026,7 +1026,7 @@ <h3>Repeating classes</h3>
10261026
}
10271027
</code></pre>
10281028

1029-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/02-utilities.md" title="Edit this on Github">Edit this on Github</a></p>
1029+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/02-utilities.md" title="Edit this on Github">Edit this on Github</a></p>
10301030
</section>
10311031

10321032

@@ -1048,7 +1048,7 @@ <h3>Don't animate root elements</h3>
10481048
&lt;/body&gt;
10491049
</code></pre>
10501050
<h3>Infinite animations should be avoided</h3>
1051-
<p>Even tough Animate.css provides utility classes for repeating animations, including an infinite one, you should avoid endless animations. It will just distract your users and might annoy a good slice of them. So, use it wisely!</p>
1051+
<p>Even though Animate.css provides utility classes for repeating animations, including an infinite one, you should avoid endless animations. It will just distract your users and might annoy a good slice of them. So, use it wisely!</p>
10521052
<h3>Mind the initial and final state of your elements</h3>
10531053
<p>All the Animate.css animations include a CSS property called <code>animation-fill-mode</code> which controls the states of an element before and after animation. You can read more about it <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode">here</a>. Animate.css defaults to <code>animation-fill-mode: both</code>, but you can change it to suit your needs.</p>
10541054
<h3>Don't disable the <code>prefers-reduced-motion</code> media query</h3>
@@ -1067,7 +1067,7 @@ <h3>Overflow</h3>
10671067
<h3>Intervals between repeats</h3>
10681068
<p>Unfortunately, this isn't possible with pure CSS right now. You have to use Javascript to achieve this result.</p>
10691069

1070-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/03-best-practices.md" title="Edit this on Github">Edit this on Github</a></p>
1070+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/03-best-practices.md" title="Edit this on Github">Edit this on Github</a></p>
10711071
</section>
10721072

10731073

@@ -1119,7 +1119,7 @@ <h2>Usage with Javascript</h2>
11191119
</code></pre>
11201120
<p>If you had a hard time understanding the previous function, have a look at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const">const</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/classList">classList</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">arrow functions</a>, and <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promises</a>.</p>
11211121

1122-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/04-javascript.md" title="Edit this on Github">Edit this on Github</a></p>
1122+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/04-javascript.md" title="Edit this on Github">Edit this on Github</a></p>
11231123
</section>
11241124

11251125

@@ -1154,7 +1154,7 @@ <h2>Migration from v3.x and under</h2>
11541154
</code></pre>
11551155
<p>In the case of a new project, it's highly recommended to use the default prefixed version as it'll make sure that you'll hardly have classes conflicting with your project. Besides, in later versions, we might decide to discontinue the <code>animate.compat.css</code> file.</p>
11561156

1157-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/06-migration.md" title="Edit this on Github">Edit this on Github</a></p>
1157+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/06-migration.md" title="Edit this on Github">Edit this on Github</a></p>
11581158
</section>
11591159

11601160

@@ -1197,7 +1197,7 @@ <h3>Changing the default prefix</h3>
11971197
</code></pre>
11981198
<p>Easy peasy!</p>
11991199

1200-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/07-custom-builds.md" title="Edit this on Github">Edit this on Github</a></p>
1200+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/07-custom-builds.md" title="Edit this on Github">Edit this on Github</a></p>
12011201
</section>
12021202

12031203

@@ -1211,7 +1211,7 @@ <h2>Code of Conduct</h2>
12111211
<h2>Contributing</h2>
12121212
<p>Pull requests are the way to go here. We only have two rules for submitting a pull request: match the naming convention (camelCase, categorized [fades, bounces, etc]) and let us see a demo of submitted animations in a <a href="https://codepen.io">pen</a>. That <strong>last one is important</strong>.</p>
12131213

1214-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/08-contributing.md" title="Edit this on Github">Edit this on Github</a></p>
1214+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/08-contributing.md" title="Edit this on Github">Edit this on Github</a></p>
12151215
</section>
12161216

12171217

@@ -1239,7 +1239,7 @@ <h2>Core team</h2>
12391239
</tbody>
12401240
</table>
12411241

1242-
<p class="edit-github"><a href="https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/09-contributors.md" title="Edit this on Github">Edit this on Github</a></p>
1242+
<p class="edit-github"><a href="https://github.com/daneden/animate.css/blob/master/docsSource/sections/09-contributors.md" title="Edit this on Github">Edit this on Github</a></p>
12431243
</section>
12441244

12451245
</div>

docsSource/compileMD.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function compileMD(dir = 'sections') {
1717
const sectionTemplate = (file, content) => {
1818
const message = 'Edit this on Github';
1919
const fileName = file.replace('.md', '').match(/([a-z])\w+/)[0];
20-
const editURL = `https://github.com/daneden/animate.css/tree/master/source/docsSource/sections/${file}`;
20+
const editURL = `https://github.com/daneden/animate.css/blob/master/docsSource/sections/${file}`;
2121
const parsedContent = md.render(content);
2222

2323
return `

docsSource/sections/03-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Animating the `<html/>` or `<body/>` tags is possible, but you should avoid it.
2828

2929
### Infinite animations should be avoided
3030

31-
Even tough Animate.css provides utility classes for repeating animations, including an infinite one, you should avoid endless animations. It will just distract your users and might annoy a good slice of them. So, use it wisely!
31+
Even though Animate.css provides utility classes for repeating animations, including an infinite one, you should avoid endless animations. It will just distract your users and might annoy a good slice of them. So, use it wisely!
3232

3333
### Mind the initial and final state of your elements
3434

0 commit comments

Comments
 (0)