Skip to content

Commit

Permalink
rebuild and ignore nojekyll file
Browse files Browse the repository at this point in the history
  • Loading branch information
doomlab committed Dec 12, 2024
1 parent 54f2f43 commit 2f1bc90
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules/
yarn-error.log
docs/.nojekyll
!.nojekyll
2 changes: 1 addition & 1 deletion docs/elements_tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</main>
<footer id="observablehq-footer">
<nav><a rel="prev" href="./people_roles"><span>Contributors</span></a><a rel="next" href="./forms"><span>Form Data</span></a></nav>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/example-dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h2>Other</h2>
<p>Data: Jonathan C. McDowell, <a href="https://planet4589.org/space/gcat" target="_blank" rel="noopener noreferrer">General Catalog of Artificial Space Objects</a></p>
</main>
<footer id="observablehq-footer">
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</main>
<footer id="observablehq-footer">
<nav><a rel="prev" href="./elements_tasks"><span>Tasks</span></a><a rel="next" href="./timeline"><span>Events</span></a></nav>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1><observablehq-loading></observablehq-loading><!--:91f15f40:--></h1>
</main>
<footer id="observablehq-footer">
<nav><a rel="next" href="./people_roles"><span>Contributors</span></a></nav>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docs/people_roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</main>
<footer id="observablehq-footer">
<nav><a rel="prev" href="./"><span>Project Summary</span></a><a rel="next" href="./elements_tasks"><span>Tasks</span></a></nav>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
13 changes: 8 additions & 5 deletions docs/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
return {tasks,projectMembers,projectName,projectCreatedAt,projectMembersById,timelineEvents,timelineContainer,list};
}});

define({id: "10949805", inputs: ["d3","timelineEvents","Plot","calendar"], outputs: ["eventsByDate","startDate","endDate","allDates","eventsByDateMap","completeEventsCount","heatmapPlot"], body: (d3,timelineEvents,Plot,calendar) => {
define({id: "81d058a1", inputs: ["d3","timelineEvents","Plot","calendar"], outputs: ["eventsByDate","startDate","endDate","allDates","eventsByDateMap","completeEventsCount","heatmapPlot"], body: (d3,timelineEvents,Plot,calendar) => {
// Aggregate events by date
const eventsByDate = d3.rollups(
timelineEvents,
Expand All @@ -248,9 +248,12 @@
const start = d3.utcDay.offset(d3.min(completeEventsCount, (d) => new Date(d.date)));
const end = d3.utcDay.offset(d3.max(completeEventsCount, (d) => new Date(d.date)));

// Dynamically calculate width
const containerWidth = document.getElementById("plot-container").clientWidth || 1152;

return Plot.plot({
width: 1152,
height: d3.utcYear.count(start, end) * 180,
width: containerWidth, // Use dynamic width
height: d3.utcYear.count(start, end) * 200,
axis: null,
padding: 0,
x: {
Expand Down Expand Up @@ -345,7 +348,7 @@
<div class="observablehq observablehq--block"><!--:ffe673e6:--></div>
<div class="observablehq observablehq--block"><!--:32820104:--></div>
<div class="observablehq observablehq--block"><!--:1326eb29:--></div>
<div class="observablehq observablehq--block"><!--:10949805:--></div>
<div class="observablehq observablehq--block"><!--:81d058a1:--></div>
<h2 id="calendar" tabindex="-1"><a class="observablehq-header-anchor" href="#calendar">Calendar</a></h2>
<div id="plot-container" style="width: 100%; height: auto;">
<observablehq-loading></observablehq-loading><!--:9c62283f:-->
Expand All @@ -369,7 +372,7 @@ <h2 id="timeline-data" tabindex="-1"><a class="observablehq-header-anchor" href=
</style></main>
<footer id="observablehq-footer">
<nav><a rel="prev" href="./forms"><span>Form Data</span></a></nav>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:02:22">Dec 12, 2024</a>.</div>
<div>Built with <a href="https://observablehq.com/" target="_blank" rel="noopener noreferrer">Observable</a> on <a title="2024-12-12T18:16:57">Dec 12, 2024</a>.</div>
</footer>
</div>
</body>
Expand Down
7 changes: 5 additions & 2 deletions src/timeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,12 @@ const heatmapPlot = (() => {
const start = d3.utcDay.offset(d3.min(completeEventsCount, (d) => new Date(d.date)));
const end = d3.utcDay.offset(d3.max(completeEventsCount, (d) => new Date(d.date)));

// Dynamically calculate width
const containerWidth = document.getElementById("plot-container").clientWidth || 1152;

return Plot.plot({
width: 1152,
height: d3.utcYear.count(start, end) * 180,
width: containerWidth, // Use dynamic width
height: d3.utcYear.count(start, end) * 200,
axis: null,
padding: 0,
x: {
Expand Down

0 comments on commit 2f1bc90

Please sign in to comment.