From 270cd73f1fff0a5f5449fa80731ab56968ef56d8 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Fri, 19 May 2023 18:31:12 +0200 Subject: [PATCH] Improve tables display (#2670) --- .automation/build.py | 2 +- .automation/generated/flavors-stats.json | 60 ++++++++++++------------ README.md | 14 +++--- docs/plugins.md | 14 +++--- docs/stylesheets/extra.css | 25 +++++++++- 5 files changed, 69 insertions(+), 46 deletions(-) diff --git a/.automation/build.py b/.automation/build.py index af0f5911a4..f3c6a6c589 100644 --- a/.automation/build.py +++ b/.automation/build.py @@ -1801,7 +1801,7 @@ def build_plugins_md_table(): ] for plugin in plugins: md_table += [ - f"| [{plugin['name']}]({plugin['docUrl']}) | " + f"| [**{plugin['name']}**]({plugin['docUrl']}) | " f"{plugin['description']} | {plugin['author']} | " f"[Descriptor]({plugin['pluginUrl']}) |", ] diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index 849f070167..21cc4006ec 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -1493,8 +1493,8 @@ 2957431 ], [ - "2023-05-19T17:09:55", - 2958909 + "2023-05-19T18:27:46", + 2959002 ] ], "ci_light": [ @@ -2991,8 +2991,8 @@ 64933 ], [ - "2023-05-19T17:09:55", - 65135 + "2023-05-19T18:27:46", + 65149 ] ], "cupcake": [ @@ -3469,8 +3469,8 @@ 11130 ], [ - "2023-05-19T17:09:55", - 11301 + "2023-05-19T18:27:46", + 11308 ] ], "dart": [ @@ -5877,8 +5877,8 @@ 149270 ], [ - "2023-05-19T17:09:55", - 149593 + "2023-05-19T18:27:46", + 149612 ] ], "dotnet": [ @@ -7375,8 +7375,8 @@ 386087 ], [ - "2023-05-19T17:09:55", - 386577 + "2023-05-19T18:27:46", + 386599 ] ], "go": [ @@ -8873,8 +8873,8 @@ 20760 ], [ - "2023-05-19T17:09:55", - 20814 + "2023-05-19T18:27:46", + 20837 ] ], "java": [ @@ -10371,8 +10371,8 @@ 119481 ], [ - "2023-05-19T17:09:55", - 119591 + "2023-05-19T18:27:46", + 119605 ] ], "javascript": [ @@ -11869,8 +11869,8 @@ 263290 ], [ - "2023-05-19T17:09:55", - 263891 + "2023-05-19T18:27:46", + 263955 ] ], "php": [ @@ -13367,8 +13367,8 @@ 49564 ], [ - "2023-05-19T17:09:55", - 49623 + "2023-05-19T18:27:46", + 49635 ] ], "python": [ @@ -14865,8 +14865,8 @@ 206554 ], [ - "2023-05-19T17:09:55", - 207168 + "2023-05-19T18:27:46", + 207221 ] ], "ruby": [ @@ -16359,7 +16359,7 @@ 3589 ], [ - "2023-05-19T17:09:55", + "2023-05-19T18:27:46", 3601 ] ], @@ -17853,7 +17853,7 @@ 5641 ], [ - "2023-05-19T17:09:55", + "2023-05-19T18:27:46", 5654 ] ], @@ -19351,8 +19351,8 @@ 19677 ], [ - "2023-05-19T17:09:55", - 19746 + "2023-05-19T18:27:46", + 19748 ] ], "scala": [ @@ -20847,8 +20847,8 @@ 9391 ], [ - "2023-05-19T17:09:55", - 9422 + "2023-05-19T18:27:46", + 9423 ] ], "swift": [ @@ -22341,8 +22341,8 @@ 3734 ], [ - "2023-05-19T17:09:55", - 3745 + "2023-05-19T18:27:46", + 3747 ] ], "terraform": [ @@ -23839,8 +23839,8 @@ 239156 ], [ - "2023-05-19T17:09:55", - 239869 + "2023-05-19T18:27:46", + 239948 ] ] } \ No newline at end of file diff --git a/README.md b/README.md index 7fdca1cdfc..7081fa6df8 100644 --- a/README.md +++ b/README.md @@ -1176,13 +1176,13 @@ But our core architecture allows to build and publish MegaLinter Plugins ! ### External Plugins Catalog -| Name | Description | Author | Raw URL | -|:----------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [jupyfmt](https://github.com/kpj/jupyfmt#mega-linter-integration) | The uncompromising Jupyter notebook formatter | [Kim Philipp Jablonski](https://github.com/kpj) | [Descriptor](https://raw.githubusercontent.com/kpj/jupyfmt/master/mega-linter-plugin-jupyfmt/jupyfmt.megalinter-descriptor.yml) | -| [linkcheck](https://github.com/shiranr/linkcheck) | Plugin to check and validate markdown links exist and working | [Shiran Rubin](https://github.com/shiranr) | [Descriptor](https://raw.githubusercontent.com/shiranr/linkcheck/main/mega-linter-plugin-linkcheck/linkcheck.megalinter-descriptor.yml) | -| [nitpick](https://github.com/andreoliwa/nitpick#run-as-a-megalinter-plugin) | Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects | [W. Augusto Andreoli](https://github.com/andreoliwa) | [Descriptor](https://raw.githubusercontent.com/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml) | -| [mustache](https://github.com/one-acre-fund/mega-linter-plugin-logstash) | Plugin to validate [Logstash](https://www.elastic.co/guide/en/logstash/current/configuration.html) pipeline definition files using [mustache](https://github.com/breml/logstash-config) | [Yann Jouanique](https://github.com/Yann-J) | [Descriptor](https://raw.githubusercontent.com/one-acre-fund/mega-linter-plugin-logstash/main/mega-linter-plugin-logstash/logstash.megalinter-descriptor.yml) | -| [salt-lint](https://github.com/ssc-services/mega-linter-plugin-salt) | Checks Salt State files (SLS) for best practices and behavior that could potentially be improved. | [Joachim Grimm](https://github.com/grimmjo) | [Descriptor](https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml) | +| Name | Description | Author | Raw URL | +|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [**jupyfmt**](https://github.com/kpj/jupyfmt#mega-linter-integration) | The uncompromising Jupyter notebook formatter | [Kim Philipp Jablonski](https://github.com/kpj) | [Descriptor](https://raw.githubusercontent.com/kpj/jupyfmt/master/mega-linter-plugin-jupyfmt/jupyfmt.megalinter-descriptor.yml) | +| [**linkcheck**](https://github.com/shiranr/linkcheck) | Plugin to check and validate markdown links exist and working | [Shiran Rubin](https://github.com/shiranr) | [Descriptor](https://raw.githubusercontent.com/shiranr/linkcheck/main/mega-linter-plugin-linkcheck/linkcheck.megalinter-descriptor.yml) | +| [**nitpick**](https://github.com/andreoliwa/nitpick#run-as-a-megalinter-plugin) | Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects | [W. Augusto Andreoli](https://github.com/andreoliwa) | [Descriptor](https://raw.githubusercontent.com/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml) | +| [**mustache**](https://github.com/one-acre-fund/mega-linter-plugin-logstash) | Plugin to validate [Logstash](https://www.elastic.co/guide/en/logstash/current/configuration.html) pipeline definition files using [mustache](https://github.com/breml/logstash-config) | [Yann Jouanique](https://github.com/Yann-J) | [Descriptor](https://raw.githubusercontent.com/one-acre-fund/mega-linter-plugin-logstash/main/mega-linter-plugin-logstash/logstash.megalinter-descriptor.yml) | +| [**salt-lint**](https://github.com/ssc-services/mega-linter-plugin-salt) | Checks Salt State files (SLS) for best practices and behavior that could potentially be improved. | [Joachim Grimm](https://github.com/grimmjo) | [Descriptor](https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml) | > Note: Using an external plugin means you trust its author diff --git a/docs/plugins.md b/docs/plugins.md index b8918cb7a5..85cace6796 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -15,13 +15,13 @@ But our core architecture allows to build and publish MegaLinter Plugins ! ## External Plugins Catalog -| Name | Description | Author | Raw URL | -|:----------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| -| [jupyfmt](https://github.com/kpj/jupyfmt#mega-linter-integration) | The uncompromising Jupyter notebook formatter | [Kim Philipp Jablonski](https://github.com/kpj) | [Descriptor](https://raw.githubusercontent.com/kpj/jupyfmt/master/mega-linter-plugin-jupyfmt/jupyfmt.megalinter-descriptor.yml) | -| [linkcheck](https://github.com/shiranr/linkcheck) | Plugin to check and validate markdown links exist and working | [Shiran Rubin](https://github.com/shiranr) | [Descriptor](https://raw.githubusercontent.com/shiranr/linkcheck/main/mega-linter-plugin-linkcheck/linkcheck.megalinter-descriptor.yml) | -| [nitpick](https://github.com/andreoliwa/nitpick#run-as-a-megalinter-plugin) | Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects | [W. Augusto Andreoli](https://github.com/andreoliwa) | [Descriptor](https://raw.githubusercontent.com/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml) | -| [mustache](https://github.com/one-acre-fund/mega-linter-plugin-logstash) | Plugin to validate [Logstash](https://www.elastic.co/guide/en/logstash/current/configuration.html) pipeline definition files using [mustache](https://github.com/breml/logstash-config) | [Yann Jouanique](https://github.com/Yann-J) | [Descriptor](https://raw.githubusercontent.com/one-acre-fund/mega-linter-plugin-logstash/main/mega-linter-plugin-logstash/logstash.megalinter-descriptor.yml) | -| [salt-lint](https://github.com/ssc-services/mega-linter-plugin-salt) | Checks Salt State files (SLS) for best practices and behavior that could potentially be improved. | [Joachim Grimm](https://github.com/grimmjo) | [Descriptor](https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml) | +| Name | Description | Author | Raw URL | +|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [**jupyfmt**](https://github.com/kpj/jupyfmt#mega-linter-integration) | The uncompromising Jupyter notebook formatter | [Kim Philipp Jablonski](https://github.com/kpj) | [Descriptor](https://raw.githubusercontent.com/kpj/jupyfmt/master/mega-linter-plugin-jupyfmt/jupyfmt.megalinter-descriptor.yml) | +| [**linkcheck**](https://github.com/shiranr/linkcheck) | Plugin to check and validate markdown links exist and working | [Shiran Rubin](https://github.com/shiranr) | [Descriptor](https://raw.githubusercontent.com/shiranr/linkcheck/main/mega-linter-plugin-linkcheck/linkcheck.megalinter-descriptor.yml) | +| [**nitpick**](https://github.com/andreoliwa/nitpick#run-as-a-megalinter-plugin) | Command-line tool and flake8 plugin to enforce the same settings across multiple language-independent projects | [W. Augusto Andreoli](https://github.com/andreoliwa) | [Descriptor](https://raw.githubusercontent.com/andreoliwa/nitpick/master/mega-linter-plugin-nitpick/nitpick.megalinter-descriptor.yml) | +| [**mustache**](https://github.com/one-acre-fund/mega-linter-plugin-logstash) | Plugin to validate [Logstash](https://www.elastic.co/guide/en/logstash/current/configuration.html) pipeline definition files using [mustache](https://github.com/breml/logstash-config) | [Yann Jouanique](https://github.com/Yann-J) | [Descriptor](https://raw.githubusercontent.com/one-acre-fund/mega-linter-plugin-logstash/main/mega-linter-plugin-logstash/logstash.megalinter-descriptor.yml) | +| [**salt-lint**](https://github.com/ssc-services/mega-linter-plugin-salt) | Checks Salt State files (SLS) for best practices and behavior that could potentially be improved. | [Joachim Grimm](https://github.com/grimmjo) | [Descriptor](https://raw.githubusercontent.com/ssc-services/mega-linter-plugin-salt/main/mega-linter-plugin-salt/salt.megalinter-descriptor.yml) | > Note: Using an external plugin means you trust its author diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index ae1cf6ee6b..0029966ce8 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -22,6 +22,26 @@ display: table; } +/* light mode table header bgcolor */ +.md-typeset__table th { + background-color: #f2edfe; +} + +/* dark mode table header bgcolor */ +[data-md-color-scheme="slate"] .md-typeset__table th { + background-color: hsla(var(--md-hue),25%,25%,1) +} + +/* light mode alternating table bg colors */ +.md-typeset__table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +/* dark mode alternating table bg colors */ +[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) { + background-color: hsla(var(--md-hue),25%,25%,1) +} + h1[content~=Home] { display: none; } @@ -50,4 +70,7 @@ h1[content~=Home] { --md-footer-bg-color: #B95CE4; -} \ No newline at end of file + --md-typeset-table-color--light: #fff5fb; + +} +