Skip to content

Improve parsing of ignoreDirectories #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions demo/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<header>
Expand All @@ -20,7 +23,7 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>
<ul class="nav">
<li class="nav-item"><a href="/">Home</a></li>
<li class="nav-item"><a href="/posts/">Archive</a></li>
<li class="nav-item"><a href="/contact-me/">Contact me</a></li>
<li class="nav-item"><a href="/a11y-errors-page/">A page with some errors</a></li>
</ul>
</div>
</header>
Expand All @@ -33,7 +36,7 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>


<h1 id="content-not-found." tabindex="-1">Content not found. <a class="direct-link" href="#content-not-found." aria-hidden="true">#</a></h1>
<p>Go <a href="/" style="color:#aaa">home</a>.</p>
<p>Go <a href="/">home</a>.</p>


</main>
Expand Down
24 changes: 13 additions & 11 deletions demo/contact-me/index.html → demo/a11y-errors-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact me</title>
<title>A page with some errors</title>
<meta name="description" content="A demo site to illustrate the funcionality of netlify-plugin-a11y.">
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/prism-base16-monokai.dark.css">
Expand All @@ -12,6 +12,9 @@
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/img/favicon-16x16.png" sizes="16x16">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;1,400;1,700&display=swap" rel="stylesheet">
</head>
<body>
<header>
Expand All @@ -20,7 +23,7 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>
<ul class="nav">
<li class="nav-item"><a href="/">Home</a></li>
<li class="nav-item"><a href="/posts/">Archive</a></li>
<li class="nav-item nav-item-active"><a href="/contact-me/">Contact me</a></li>
<li class="nav-item nav-item-active"><a href="/a11y-errors-page/">A page with some errors</a></li>
</ul>
</div>
</header>
Expand All @@ -33,18 +36,17 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>


<div class="content">
<h1>Contact me</h1>`
<h1>A page with some errors</h1>

<form onsubmit="function(e){e.preventDefault()}">
<label>File your hottest takes here</label>
</br>
<textarea height="auto" rows="10" width="100%" style="width: 100%"></textarea>
</br>
<button type="submit">Submit</button>
</form>
<figure>
<img src="/img/cats-570x720.png" width="570" height="720">
<figcaption>
This image doesn't have an <code>alt</code> attribute.
</figcaption>
</figure>


</main>
<!-- Current page: /contact-me/ -->
<!-- Current page: /a11y-errors-page/ -->
</body>
</html>
10 changes: 5 additions & 5 deletions demo/posts/2018-05-01/index.html → demo/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Would you get a load of these cats</title>
<meta name="description" content="This is a post about some cats.">
<title>A page with some errors</title>
<meta name="description" content="A demo site to illustrate the funcionality of netlify-plugin-a11y.">
<link rel="stylesheet" href="/css/index.css">
<link rel="stylesheet" href="/css/prism-base16-monokai.dark.css">
<link rel="alternate" href="/feed/feed.xml" type="application/atom+xml" title="netlify-plugin-a11y">
Expand All @@ -20,7 +20,7 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>
<ul class="nav">
<li class="nav-item"><a href="/">Home</a></li>
<li class="nav-item"><a href="/posts/">Archive</a></li>
<li class="nav-item"><a href="/contact-me/">Contact me</a></li>
<li class="nav-item nav-item-active"><a href="/about/">A page with some errors</a></li>
</ul>
</div>
</header>
Expand All @@ -33,7 +33,7 @@ <h1 class="home"><a href="/">netlify-plugin-a11y</a></h1>


<div class="content">
<h1>Would you get a load of these cats</h1><time datetime="2018-05-01">01 May 2018</time><a href="/tags/another-tag/" class="post-tag">another tag</a>
<h1>A page with some errors</h1>

<figure>
<img src="/img/cats-570x720.png" width="570" height="720">
Expand All @@ -44,6 +44,6 @@ <h1>Would you get a load of these cats</h1><time datetime="2018-05-01">01 May 20


</main>
<!-- Current page: /posts/2018-05-01/ -->
<!-- Current page: /about/ -->
</body>
</html>
85 changes: 85 additions & 0 deletions demo/css/colors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/**
* Do not edit directly
* Generated on Mon, 12 Apr 2021 08:37:11 GMT
*/

:root {
--color-transparent: rgba(0, 0, 0, 0);
--color-black-default: #0e1e25;
--color-white: #ffffff;
--color-gray-darkest: #2e3c42;
--color-gray-darker: #646e73;
--color-gray-dark: #7e878b;
--color-gray-default: #a4aaad;
--color-gray-light: #eaebec;
--color-gray-lighter: #f5f5f5;
--color-gray-lightest: #f9fafa;
--color-teal-darkest: #0d544e;
--color-teal-darker: #15847b;
--color-teal-default: #00ad9f;
--color-teal-lighter: #00c7b6;
--color-teal-lightest: #c9eeea;
--color-blue-darkest: #0f456c;
--color-blue-darker: #146394;
--color-blue-default: #298fc2;
--color-blue-lighter: #46b6d8;
--color-blue-lightest: #bce4f1;
--color-gold-darkest: #66400f;
--color-gold-darker: #a46819;
--color-gold-default: #cc811e;
--color-gold-lighter: #ffad42;
--color-gold-lightest: #ffe4c2;
--color-red-darkest: #8e0b30;
--color-red-darker: #d32254;
--color-red-default: #f22c64;
--color-red-lighter: #fe7299;
--color-red-lightest: #fed7e2;
--color-purple-darkest: #5f1b51;
--color-purple-darker: #8c1773;
--color-purple-default: #bc6292;
--color-purple-lighter: #db95ba;
--color-purple-lightest: #f2d9e6;
--color-third-party-github: #151413;
--color-third-party-github-dark: #000000;
--color-third-party-gitlab: #e65528;
--color-third-party-gitlab-dark: #c43f17;
--color-third-party-bitbucket: #0047b3;
--color-third-party-bitbucket-dark: #003380;
--color-dark-black-darker: #021117;
--color-dark-black-default: #0e1e25;
--color-dark-gray-darkest: #16262c;
--color-dark-gray-darker: #1b2b32;
--color-dark-gray-dark: #243238;
--color-dark-gray-default: #48565b;
--color-dark-gray-light: #7e878b;
--color-dark-gray-lighter: #a4aaad;
--color-dark-gray-lightest: #eaebec;
--color-dark-teal-darkest: #083532;
--color-dark-teal-darker: #15847b;
--color-dark-teal-default: #00ad9f;
--color-dark-teal-lighter: #00c7b6;
--color-dark-teal-lightest: #5cebdf;
--color-dark-blue-darkest: #092e49;
--color-dark-blue-darker: #155884;
--color-dark-blue-default: #1083bc;
--color-dark-blue-lighter: #1fb3e0;
--color-dark-blue-lightest: #5cc7eb;
--color-dark-gold-darkest: #472d0b;
--color-dark-gold-darker: #855414;
--color-dark-gold-default: #cc811e;
--color-dark-gold-lighter: #ffad42;
--color-dark-gold-lightest: #ffc170;
--color-dark-red-darkest: #4b061a;
--color-dark-red-darker: #8e0b30;
--color-dark-red-default: #d32254;
--color-dark-red-lighter: #fd5383;
--color-dark-red-lightest: #ff7aa0;
--color-dark-purple-darkest: #401236;
--color-dark-purple-darker: #83166b;
--color-dark-purple-default: #bf36a1;
--color-dark-purple-lighter: #e561cb;
--color-dark-purple-lightest: #e58bd1;
--color-dark-third-party-github: #ffffff;
--color-dark-third-party-gitlab: #e65528;
--color-dark-third-party-bitbucket: #0047b3;
}
Loading