jekyll: move jekyll back to root, but simpler setup, exclude via _config.yml

app: bundle jekyll docs into app, add 'yarn run docs' to build
ui: add back/forward arrows for app only, adjust responsiveness for app, add IS_APP flag injected via preload
ui: add animated logo, friendly message on empty replay frame
app: improve serve logic:
- serve static files from static root
- serve replay from http localhost instead to avoid proxying https for remote requests
- serve local lookup from http prefix also
- catch any fallthrough from replay as 404
- add timestamp to response channels to ensure uniqness
This commit is contained in:
Ilya Kreymer
2020-05-21 18:49:26 -07:00
parent da1e5c03df
commit 220d14aea3
29 changed files with 528 additions and 304 deletions
-11
View File
@@ -1,11 +0,0 @@
<!doctype html>
<html class="no-overflow">
<head>
</head>
<body>
Loading SW, Please wait...
<script>
navigator.serviceWorker.register("/swonly.js?replayPrefix=wabac&stats=true", {scope: window.location.origin + "/"}).then(() => window.location.reload());
</script>
</body>
</html>
-1
View File
@@ -1 +0,0 @@
replayweb.page
-3
View File
@@ -1,3 +0,0 @@
gem "just-the-docs"
gem "jekyll-remote-theme"
-73
View File
@@ -1,73 +0,0 @@
GEM
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.6)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.12.2)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.6)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-remote-theme (0.4.1)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
rubyzip (>= 1.3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
just-the-docs (0.2.7)
jekyll (~> 3.8.5)
jekyll-seo-tag (~> 2.0)
rake (~> 12.3.1)
kramdown (1.17.0)
liquid (4.0.3)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.3)
rake (12.3.3)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rouge (3.17.0)
rubyzip (2.3.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
PLATFORMS
ruby
DEPENDENCIES
jekyll-remote-theme
just-the-docs
BUNDLED WITH
2.1.4
-24
View File
@@ -1,24 +0,0 @@
remote_theme: pmarsceill/just-the-docs
#theme: "just-the-docs"
title: ReplayWeb.Page
# Enable or disable the site search
search_enabled: false
# Set the search token separator for hyphenated-word search:
search_tokenizer_separator: /[\s/]+/
# Enable or disable heading anchors
heading_anchors: true
# Aux links for the upper right navigation
aux_links:
"Back to ReplayWeb.page":
- "https://replayweb.page/"
logo: "/assets/logo.svg"
plugins:
- jekyll-remote-theme
-5
View File
@@ -1,5 +0,0 @@
{% if site.logo %}
<div class="site-logo"></div>
{% endif %}
<span class="rwp-logo-font rwp-green">replay</span>
<span class="rwp-logo-font rwp-blue">web.page</span>
-37
View File
@@ -1,37 +0,0 @@
$rwp-green: #55be6f;
$rwp-yellow: #f5c71a;
$rwp-blue: #4876ff;
//$link-color: #27a0ff;
$link-color: #384ea2;
//$content-width: 960px;
$nav-width-md: $nav-width;
.side-bar {
@include mq(md) {
//max-width: calc(0.5rem + #{$nav-width});
max-width: $nav-width;
}
}
.site-title {
padding-right: 1.5rem !important;
}
.rwp-logo-font {
font-variant-caps: all-small-caps;
font-size: 20px;
font-weight: bold;
}
.rwp-green {
color: $rwp-green;
}
.rwp-yellow {
color: $rwp-yellow;
}
.rwp-blue {
color: $rwp-blue;
}
-208
View File
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
-939
View File
File diff suppressed because one or more lines are too long
-10
View File
@@ -1,10 +0,0 @@
<!doctype html>
<html class="no-overflow">
<head>
<script src="./frontend.js"></script>
<!--<link href="./dist/frontend.css" rel="stylesheet"/>-->
</head>
<body>
<app-main></app-main>
</body>
</html>
-4
View File
@@ -1,4 +0,0 @@
#!/bin/bash
export PATH=/usr/local/opt/ruby/bin:$PATH
bundle update
bundle exec jekyll serve --trace
-24
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -4,7 +4,7 @@ title: Usage
nav_order: 1
description: 'Usage'
has_children: true
permalink: /docs
permalink: /docs/index.html
---
# ReplayWeb.Page