Browse Source

pa11y integration

Heydon Pickering 7 năm trước cách đây
mục cha
commit
64d9b0fa97
5 tập tin đã thay đổi với 52 bổ sung34 xóa
  1. 22 16
      docs/patterns/coding/tested/index.html
  2. 22 16
      docs/print-version/index.html
  3. 0 0
      docs/service-worker.js
  4. 5 0
      lib/.pa11yci
  5. 3 2
      package.json

+ 22 - 16
docs/patterns/coding/tested/index.html

@@ -419,43 +419,49 @@
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
+        <span><strong>Firefox </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
-          <span><strong>Firefox</strong></span>
           <span class="additional">with <strong>JAWS</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
-          <span><strong>Chrome</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
+        <span><strong>Chrome </strong></span>
         
       </td>
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
+        <span><strong>Safari iOS </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
-          <span><strong>Safari iOS</strong></span>
           <span class="additional">with <strong>Voiceover</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
-          <span><strong>Edge</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
+        <span><strong>Edge </strong></span>
         
       </td>
     

+ 22 - 16
docs/print-version/index.html

@@ -2298,43 +2298,49 @@ npm run start
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
+        <span><strong>Firefox </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-firefox.svg" alt="">
-          <span><strong>Firefox</strong></span>
           <span class="additional">with <strong>JAWS</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
-          <span><strong>Chrome</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-chrome.svg" alt="">
+        <span><strong>Chrome </strong></span>
         
       </td>
     
       <td>
         
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
+        <span><strong>Safari iOS </strong></span>
+        
           
           
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-safari-ios.svg" alt="">
-          <span><strong>Safari iOS</strong></span>
           <span class="additional">with <strong>Voiceover</strong></span>
         
       </td>
     
       <td>
         
-          
-          
-          <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
-          <span><strong>Edge</strong></span>
+        
+        
+        
+        <img src="https://thepaciellogroup.github.io/cupper/images/browser-edge.svg" alt="">
+        <span><strong>Edge </strong></span>
         
       </td>
     

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
docs/service-worker.js


+ 5 - 0
lib/.pa11yci

@@ -0,0 +1,5 @@
+{
+    "defaults": {
+        "timeout": 5000
+    }
+}

+ 3 - 2
package.json

@@ -8,8 +8,9 @@
     "serve": "hugo server --baseURL http://localhost:1313",
     "clean": "node lib/clean.js",
     "build": "node lib/build.js",
-    "update": "node lib/update.js"
-    },
+    "update": "node lib/update.js",
+    "a11y": "(npm list pa11y-ci || npm install -g pa11y-ci) && pa11y-ci --sitemap http://localhost:1313/sitemap.xml --config lib/.pa11yci"
+  },
   "pre-commit": [
     "build"
   ],

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác