Skip to content

Commit 94fcbb3

Browse files
committed
Added a design note regarding building a static website
1 parent fb061b4 commit 94fcbb3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

bin/create_db_pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const databases = require("../src/config/databases.json");
44

55
const fs = require("fs").promises;
66

7+
// design_notes/0001_using_regular_links.md
78
(async () => {
89
await fs.mkdir("build/databases");
910

design_notes/0001_using_regular_links.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ You may have noticed that Visualizer uses regular `<a>` tags for navigation inst
77
The reason is the following exception that's thrown when you follow a link to render another dataset:
88

99
![Error with React Router links](./files/error_with_router_links.png)
10+
11+
## Github Pages
12+
13+
Since we're using static links, we need to generate static pages so links like `/databases/bindle` work on a live website.
14+
15+
Good news, is that we simply need to clone a built `index.html` file for every database.

0 commit comments

Comments
 (0)