Skip to content

Commit fced172

Browse files
committed
docs: cp index for client side history routing
1 parent 2fd2f98 commit fced172

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

.execs/build.flow

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ executables:
4040
execs:
4141
- cmd: go run ./tools/docsgen/.
4242
- cmd: ./scripts/completions.sh
43+
# HACK: Copy the index.html to 404.html GitHub Pages redirect with the history router
44+
- cmd: cp docs/index.html docs/404.html
4345

4446
- verb: generate
4547
name: cli

docs/404.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>flow</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="description" content="Description">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
9+
<link rel="shortcut icon" type="image/x-icon" href="_media/favicon.ico">
10+
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/LIGMATV/docsify-theme-github/github.css">
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/LIGMATV/docsify-vite-coverpage@main/docsify-vite-coverpage.css">
12+
<style>
13+
:root {
14+
--theme-color: #83C092;
15+
--base-font-size: 14px;
16+
}
17+
18+
h1 { font-size: 1.8em !important; }
19+
h2 { font-size: 1.5em !important; }
20+
h3 { font-size: 1.3em !important; }
21+
h4 { font-size: 1.1em !important; }
22+
h5 { font-size: 1em !important; }
23+
h6 { font-size: 0.9em !important; }
24+
</style>
25+
26+
</head>
27+
<body>
28+
<div id="app">thinking...</div>
29+
<!-- Configurations -->
30+
<script>
31+
window.$docsify = {
32+
name: 'flow',
33+
repo: 'flowexec/flow',
34+
homepage: 'README.md',
35+
relativePath: true,
36+
themeColor: '#D699B6',
37+
loadSidebar: true,
38+
formatUpdated: '{MM}/{DD} {HH}:{mm}',
39+
maxLevel: 4,
40+
subMaxLevel: 3,
41+
coverpage: true,
42+
onlyCover: false,
43+
nameLink: 'README',
44+
auto2top: true,
45+
routerMode: 'history',
46+
alias: {
47+
'/releases/(.*)': 'https://github.com/flowexec/flow/releases/$1',
48+
'/schemas/(.*)': 'https://github.com/flowexec/flow/tree/main/schemas/$1',
49+
'/issues/(.*)': 'https://github.com/flowexec/flow/issues/$1',
50+
'/(.*)/_sidebar.md': '$1/_sidebar.md',
51+
},
52+
copyCode: {
53+
buttonText: 'Copy',
54+
errorText: 'Error',
55+
successText: 'Copied',
56+
},
57+
}
58+
</script>
59+
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/docsify.min.js"></script>
60+
<script src="//cdn.jsdelivr.net/npm/docsify@4/lib/plugins/search.min.js"></script>
61+
<script src="//cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
62+
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
63+
<script src="//unpkg.com/docsify-plugin-flexible-alerts"></script>
64+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
65+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-yaml.min.js"></script>
66+
</body>
67+
</html>

0 commit comments

Comments
 (0)