feat(docs): add table sorting (#1258)

This commit is contained in:
Zethus Suen
2020-12-08 17:22:33 -05:00
committed by GitHub
parent 64f55c1b86
commit 5955d10a7f
4 changed files with 96 additions and 85 deletions
+6
View File
@@ -0,0 +1,6 @@
app.document$.subscribe(function() {
var tables = document.querySelectorAll("article table")
tables.forEach(function(table) {
new Tablesort(table)
})
})
+85 -85
View File
@@ -27,91 +27,91 @@
Used with the `STORES` variable. Used with the `STORES` variable.
| Stores | Environment variable | | Stores | Country | Environment variable |
|:---:|:---:| |---|---|---|
| Adorama | `adorama`| | Adorama | US | `adorama`|
| Alternate (DE) | `alternate`| | Alternate | DE | `alternate`|
| Alternate (NL) | `alternate-nl`| | Alternate | NL | `alternate-nl`|
| Amazon | `amazon`| | Amazon | US | `amazon`|
| Amazon (CA) | `amazon-ca`| | Amazon | CA | `amazon-ca`|
| Amazon (DE) | `amazon-de`| | Amazon | DE | `amazon-de`|
| Amazon (DE) Warehouse | `amazon-de-warehouse`| | Amazon Warehouse | DE | `amazon-de-warehouse`|
| Amazon (ES) | `amazon-es`| | Amazon | ES | `amazon-es`|
| Amazon (FR) | `amazon-fr`| | Amazon | FR | `amazon-fr`|
| Amazon (IT) | `amazon-it`| | Amazon | IT | `amazon-it`|
| Amazon (NL) | `amazon-nl`| | Amazon | NL | `amazon-nl`|
| Amazon (UK) | `amazon-uk`| | Amazon | UK | `amazon-uk`|
| AMD | `amd`| | AMD | US | `amd`|
| AMD (CA) | `amd-ca`| | AMD | CA | `amd-ca`|
| AMD (DE) | `amd-de`| | AMD | DE | `amd-de`|
| AMD (IT) | `amd-it`| | AMD | IT | `amd-it`|
| AntOnline | `antonline`| | AntOnline | US | `antonline`|
| Argos (UK) | `argos`| | Argos | UK | `argos`|
| Aria PC (UK) | `aria`| | Aria PC | UK | `aria`|
| ARLT (DE) | `arlt`| | ARLT | DE | `arlt`|
| ASUS | `asus` | | ASUS | US | `asus` |
| ASUS (DE) | `asus-de` | | ASUS | DE | `asus-de` |
| Azerty (NL) | `azerty`| | Azerty | NL | `azerty`|
| B&H | `bandh`| | B&H | US | `bandh`|
| Best Buy | `bestbuy`| | Best Buy | US | `bestbuy`|
| Best Buy (CA) | `bestbuy-ca`| | Best Buy | CA | `bestbuy-ca`|
| Box (UK) | `box`| | Box | UK | `box`|
| CanadaComputers (CA) | `canadacomputers` | | CanadaComputers | CA | `canadacomputers` |
| Caseking (DE) | `caseking`| | Caseking | DE | `caseking`|
| CCL (UK) | `ccl`| | CCL | UK | `ccl`|
| Comet (IT) | `comet`| | Comet | IT | `comet`|
| Computeruniverse (DE) | `computeruniverse` | | Computeruniverse | DE | `computeruniverse` |
| Coolblue (NL) | `coolblue`| | Coolblue | NL | `coolblue`|
| Coolmod (ES) | `coolmod`| | Coolmod | ES | `coolmod`|
| Corsair | `corsair`| | Corsair | US | `corsair`|
| Currys (UK) | `currys`| | Currys | UK | `currys`|
| Cyberport (DE) | `cyberport` | | Cyberport | DE | `cyberport` |
| eBuyer (UK) | `ebuyer`| | eBuyer | UK | `ebuyer`|
| El Corte Inglés | `elcorteingles`| | El Corte Inglés | US | `elcorteingles`|
| ePrice (IT) | `eprice`| | ePrice | IT | `eprice`|
| Euronics (IT) | `euronics`| | Euronics | IT | `euronics`|
| Euronics (DE) | `euronics-de`| | Euronics | DE | `euronics-de`|
| EVGA | `evga`| | EVGA | US | `evga`|
| EVGA (EU) | `evga-eu`| | EVGA | EU | `evga-eu`|
| Expert | `expert`| | Expert | DE | `expert`|
| Galaxus (DE) | `galaxus`| | Galaxus | DE | `galaxus`|
| Game (UK) | `game`| | Game | UK | `game`|
| Gamestop | `gamestop`| | Gamestop | US | `gamestop`|
| Gamestop (DE) | `gamestop-de`| | Gamestop | DE | `gamestop-de`|
| Kabum (BR) | `kabum`| | Kabum | BR | `kabum`|
| Mediamarkt (DE) | `mediamarkt`| | Mediamarkt | DE | `mediamarkt`|
| Medimax | `medimax`| | Medimax | US | `medimax`|
| Megekko (NL) | `megekko`| | Megekko | NL | `megekko`|
| MemoryExpress (CA) | `memoryexpress`| | MemoryExpress | CA | `memoryexpress`|
| Micro Center | `microcenter`| | Micro Center | US | `microcenter`|
| Mindfactory (DE) | `mindfactory` | | Mindfactory | DE | `mindfactory` |
| Newegg | `newegg`| | Newegg | US | `newegg`|
| Newegg (CA) | `newegg-ca`| | Newegg | CA | `newegg-ca`|
| Notebooksbilliger (DE) |`notebooksbilliger`| | Notebooksbilliger | DE |`notebooksbilliger`|
| Novatech (UK) | `novatech`| | Novatech | UK | `novatech`|
| Nvidia | `nvidia`| | Nvidia | US | `nvidia`|
| Nvidia (API) | `nvidia-api`| | Nvidia API | | `nvidia-api`|
| Office Depot | `officedepot`| | Office Depot | US | `officedepot`|
| Otto | `otto`| | Otto | DE | `otto`|
| Overclockers (UK) | `overclockers`| | Overclockers | UK | `overclockers`|
| PCComponentes (ES) | `pccomponentes`| | PCComponentes | ES | `pccomponentes`|
| PlayStation | `playstation`| | PlayStation | US | `playstation`|
| PNY | `pny`| | PNY | US | `pny`|
| Proshop (DE) | `proshop-de`| | Proshop | DE | `proshop-de`|
| Proshop (DK) | `proshop-dk`| | Proshop | DK | `proshop-dk`|
| Saturn (DE) | `saturn`| | Saturn | DE | `saturn`|
| Scan (UK) | `scan`| | Scan | UK | `scan`|
| Smyths Toys (UK) | `smythstoys`| | Smyths Toys | UK | `smythstoys`|
| Spielegrotte | `spielegrotte`| | Spielegrotte | DE | `spielegrotte`|
| Target | `target`| | Target | US | `target`|
| Toys R Us | `toysrus` | | Toys R Us | US | `toysrus` |
| Unieuro (IT) | `unieuro`| | Unieuro | IT | `unieuro`|
| Very (UK) | `very`| | Very | UK | `very`|
| Walmart | `walmart`| | Walmart | US | `walmart`|
| Walmart (CA) | `walmart-ca` | | Walmart | CA | `walmart-ca`|
| Wipoid | `wipoid`| | Wipoid | ES | `wipoid`|
| Zotac | `zotac`| | Zotac | US | `zotac`|
| TopAchat | `topachat`| | TopAchat | GR | `topachat`|
### Micro Center stores ### Micro Center stores
+4
View File
@@ -45,6 +45,10 @@ extra:
- icon: fontawesome/brands/linkedin - icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/jeflecompte/ link: https://www.linkedin.com/in/jeflecompte/
extra_javascript:
- https://cdnjs.cloudflare.com/ajax/libs/tablesort/5.2.1/tablesort.min.js
- javascripts/tables.js
# Extensions # Extensions
markdown_extensions: markdown_extensions:
- admonition - admonition
+1
View File
@@ -71,6 +71,7 @@
}, },
"xo": { "xo": {
"prettier": true, "prettier": true,
"ignores": "docs/javascripts",
"rules": { "rules": {
"no-warning-comments": "off", "no-warning-comments": "off",
"sort-imports": "error", "sort-imports": "error",