Skip to content

Commit 21e6b8c

Browse files
authored
Merge pull request #41 from ONS-Innovation/dashboard-refactor
KEH-1009 | Dashboard Refactor
2 parents 8ceca23 + 14db605 commit 21e6b8c

41 files changed

Lines changed: 2169 additions & 1491 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
@TotalDwarf03
21
@ONS-Innovation/keh-dev

.github/workflows/md_lint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# A GitHub Action to run Markdown linting on pull requests and pushes using markdownlint.
2+
---
3+
name: Markdown Lint
4+
permissions:
5+
contents: read
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
push:
11+
branches:
12+
- main
13+
jobs:
14+
markdown-lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '16'
24+
25+
- name: Install markdownlint
26+
run: |
27+
npm install -g markdownlint-cli
28+
29+
- name: Run markdownlint
30+
run: |
31+
markdownlint .

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 ONS Innovation
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,13 @@ install-dev: ## Install the dependencies including dev.
6363
.PHONY: run-local
6464
run-local: ## Run locally.
6565
streamlit run src/app.py
66+
67+
.PHONY: md_lint
68+
md_lint: ## Lint Markdown files using Markdownlint.
69+
sh shell_scripts/md_lint.sh
70+
@echo "Markdownlint can fix some issues automatically. To fix them, run 'make md_fix'.";
71+
72+
.PHONY: md_fix
73+
md_fix: ## Fix Markdown files using Markdownlint.
74+
sh shell_scripts/md_fix.sh
75+

0 commit comments

Comments
 (0)