diff --git a/.gitignore b/.gitignore index 0a8416e..9f4a803 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ dist/sw.js **/node_modules yarn-error.log coverage/ +local-examples/ .DS_Store +.sass-cache/ +_site/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..d88a476 --- /dev/null +++ b/Gemfile @@ -0,0 +1 @@ +gem "just-the-docs" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..14b7bac --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,67 @@ +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-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.3) + rb-inotify (0.10.1) + ffi (~> 1.0) + rouge (3.17.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 + just-the-docs + +BUNDLED WITH + 2.1.4 diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..ef7f900 --- /dev/null +++ b/_config.yml @@ -0,0 +1,22 @@ +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: + "View replayweb.page on GitHub": + - "//github.com/ikreymer/replayweb.page" + + +logo: "/static/logo.svg" + diff --git a/_includes/title.html b/_includes/title.html new file mode 100644 index 0000000..428514e --- /dev/null +++ b/_includes/title.html @@ -0,0 +1,5 @@ +{% if site.logo %} +
+{% endif %} +replay +web.page diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss new file mode 100644 index 0000000..6bb7f78 --- /dev/null +++ b/_sass/custom/custom.scss @@ -0,0 +1,33 @@ +$rwp-green: #64e986; +$rwp-yellow: #f5c71a; +//$link-color: #27a0ff; +$link-color: #4876ff; + +//$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; +} + diff --git a/docs/browsing.md b/docs/browsing.md new file mode 100644 index 0000000..3ab4a7d --- /dev/null +++ b/docs/browsing.md @@ -0,0 +1,79 @@ +--- +layout: default +title: Browsing Web Archives +nav_order: 1 +parent: Usage +permalink: /docs/browsing +--- + +# Browsing Web Archives via the ReplayWeb.page +{: .no_toc } + +## Table of contents +{: .no_toc .text-delta } + +1. TOC +{:toc} + + +## Loading Web Archives + +Using [https://replayweb.page](https://replayweb.page), you can select a web archive file from a local +file or remote URL to load into the site. + +Archives loaded by ReplayWeb.page are identified by their unique URL, which can be entered directly or selected from a local file browser. + + +### Remote Archives + +To load a remote archive, simply enter the URL of the archive and click `Replay!`. +(See: [Supported Locations](locations.md) for details on where archives can be loaded from). + +The archive will be downloaded, either fully or [only as needed (if possible)](streaming-archives.md) and presented on the archive page. + +The system supports WARC files, as well as several other formats (See: [Supported Formats](formats.md) for more details on supported formats) + +Once loaded, the page is redirected to the archive collection page. + + +### Local Archives + +Using the `Choose File` button, you can pick any local archive file to load for replay. +The click `Replay` to load the file. + +The archive is laoded in the browser directly and *not* uploaded anywhere -- it never leaves your computer! + +(This process is similar to how [Webrecorder Player](https://github.com/webrecorder/webrecorder-player) works, but happens entirely in the browser. + + +It will be identified by a `file://` URL and is not accessible outside your browser. + + +## Archive View + +Once an archive is loaded, you are taken to the archive view, and you are ready to explore and replay the web archive! + +This view has several tabs: + +- **Curated Pages** - This tab exists if the archive has curated lists of pages. Currently this is available only for Webrecorder WARCs, but may be possible +with other formats (see: [Web Archive Zip Format](webarchive-zip-format.md) + +- **URL Resources** - This tab allows searching the archive by URLs, as well as by MIME type. For many archives with no page or curatorial metadata, this is +a way to explore the archive data in more detail. + +Once a URL is selected, you will be taken to the Replay tab which renders the archived page directly in your browser. + + +## Index of Archives + +The ReplayWeb.page homepage lists an index of all archives loaded in your browser. +Once loaded, the archive remains cached in the browser for quick access. This view will be unique to your browser. +To remove the archive from your browser, click on the 'X'. (Of course, this does not delete the archive from its original location, only your local copy of it) + + +