From 4d3832629bf16d3fa455667735d5697cd740e883 Mon Sep 17 00:00:00 2001 From: Rob Moffat Date: Thu, 8 Feb 2024 10:44:32 +0000 Subject: [PATCH] fixed React keys, formualas --- docs/The-Menagerie.md | 2 +- docs/bets/Start.md | 1 + docs/complexity/Start.md | 2 +- docs/estimating/Start.md | 1 + docs/presentations/Start.md | 2 +- docs/risks/Start.md | 2 +- src/components/FillTheBucket2/index.js | 1 + src/components/KitchenCabinet1/index.js | 5 +++-- src/components/KitchenCabinet2/index.js | 5 +++-- src/components/KitchenCabinet3/index.js | 20 ++++++++++++-------- src/css/custom.css | 7 +++++++ src/theme/TagList/index.js | 2 +- 12 files changed, 33 insertions(+), 17 deletions(-) diff --git a/docs/The-Menagerie.md b/docs/The-Menagerie.md index 4a00d6f4b..c8093bb9e 100644 --- a/docs/The-Menagerie.md +++ b/docs/The-Menagerie.md @@ -8,7 +8,7 @@ featured: element: '' tags: - Front -order: 4 +sidebar_position: 3 --- # The Menagerie diff --git a/docs/bets/Start.md b/docs/bets/Start.md index 00a470982..7925d2196 100644 --- a/docs/bets/Start.md +++ b/docs/bets/Start.md @@ -11,6 +11,7 @@ cat: Bets tags: - Front tweet: yes +sidebar_position: 4 --- # On Bets diff --git a/docs/complexity/Start.md b/docs/complexity/Start.md index 34a6d6046..43d7dbc76 100644 --- a/docs/complexity/Start.md +++ b/docs/complexity/Start.md @@ -10,7 +10,7 @@ layout: categories cat: Complexity tags: - Front -sidebar_position: 7 +sidebar_position: 6 tweet: yes --- diff --git a/docs/estimating/Start.md b/docs/estimating/Start.md index 455e637f9..96c50cab9 100644 --- a/docs/estimating/Start.md +++ b/docs/estimating/Start.md @@ -10,6 +10,7 @@ cat: Estimating tags: - Front tweet: yes +sidebar_position: 5 --- # On Estimating diff --git a/docs/presentations/Start.md b/docs/presentations/Start.md index 294bb73a1..4222db591 100644 --- a/docs/presentations/Start.md +++ b/docs/presentations/Start.md @@ -10,7 +10,7 @@ layout: categories cat: Presentations tags: - Front -sidebar_position: 8 +sidebar_position: 7 tweet: yes --- diff --git a/docs/risks/Start.md b/docs/risks/Start.md index 1146b0de5..68ef7a120 100644 --- a/docs/risks/Start.md +++ b/docs/risks/Start.md @@ -7,7 +7,7 @@ cat: Risks featured: class: bg1 element: 'Track 3: Risks' -sidebar_position: 4 +sidebar_position: 3 tags: - Front tweet: yes diff --git a/src/components/FillTheBucket2/index.js b/src/components/FillTheBucket2/index.js index 9436f314c..9a04454ec 100644 --- a/src/components/FillTheBucket2/index.js +++ b/src/components/FillTheBucket2/index.js @@ -79,6 +79,7 @@ const chart1 = (model) => { return { type: 'bar', + id: "1", data: { labels: range(0, 20, 1), datasets: [{ diff --git a/src/components/KitchenCabinet1/index.js b/src/components/KitchenCabinet1/index.js index 0776a7e88..de6335dff 100644 --- a/src/components/KitchenCabinet1/index.js +++ b/src/components/KitchenCabinet1/index.js @@ -55,6 +55,7 @@ const chart1 = (model) => { return { type: 'bar', + id: "1", data: { labels: [...range(0, model.time.value, 1), model.time.value + "+"], datasets: [{ @@ -68,11 +69,11 @@ const chart1 = (model) => { options: { maintainAspectRatio: false, scales: { - y: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } diff --git a/src/components/KitchenCabinet2/index.js b/src/components/KitchenCabinet2/index.js index 5c8e82b5f..123cb5590 100644 --- a/src/components/KitchenCabinet2/index.js +++ b/src/components/KitchenCabinet2/index.js @@ -31,6 +31,7 @@ const chart1 = (model) => { return { type: 'line', + id: "1", data: { labels: range(0, 20, 1), datasets: [{ @@ -47,11 +48,11 @@ const chart1 = (model) => { }, options: { scales: { - y: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } diff --git a/src/components/KitchenCabinet3/index.js b/src/components/KitchenCabinet3/index.js index 7596d2d9d..9880defd2 100644 --- a/src/components/KitchenCabinet3/index.js +++ b/src/components/KitchenCabinet3/index.js @@ -38,6 +38,7 @@ const chart1 = (model) => { return { type: 'line', + id: "1", data: { labels: range(0, days, 1), datasets: [{ @@ -54,11 +55,11 @@ const chart1 = (model) => { }, options: { scales: { - y: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } @@ -70,6 +71,7 @@ const chart2 = (model) => { return { type: 'line', + id: "2", data: { labels: range(0, days, 1), datasets: [{ @@ -88,11 +90,11 @@ const chart2 = (model) => { }, options: { scales: { - yAxes: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } @@ -106,6 +108,7 @@ const chart3 = (model) => { return { type: 'line', + id: "3", data: { labels: range(0, days, 1), datasets: [{ @@ -118,11 +121,11 @@ const chart3 = (model) => { }, options: { scales: { - yAxes: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } @@ -138,6 +141,7 @@ const chart4 = (model) => { return { type: 'bar', + id: "4", data: { labels: ['Too Early', 'Too Late', 'Total'], datasets: [{ @@ -150,11 +154,11 @@ const chart4 = (model) => { }, options: { scales: { - yAxes: [{ + y: { ticks: { beginAtZero: true } - }] + } } } } diff --git a/src/css/custom.css b/src/css/custom.css index 614b82001..8c63b2704 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -79,4 +79,11 @@ .credits { opacity: 0.5; +} + +/** + * Hide duplicated math formula + */ +.katex-html { + display: none; } \ No newline at end of file diff --git a/src/theme/TagList/index.js b/src/theme/TagList/index.js index fb8d61db9..fb03bd6f1 100644 --- a/src/theme/TagList/index.js +++ b/src/theme/TagList/index.js @@ -52,7 +52,7 @@ export default function TagList(props) { oneTag .filter(d => d.permalink.indexOf(filter) > -1) .filter(d => d.permalink != location) - .map(d => ) + .map(d => ) } );