mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
include offline copy of docs
This grabs the docs via the @pybricks/ide-docs package and copies them to the build directory with copy-webpack-plugin. The service worker automatically picks up these files for precache since they go through webpack.
This commit is contained in:
@@ -52,7 +52,7 @@ function App(): JSX.Element {
|
||||
<div className="h-100 w-100">
|
||||
{dragging && <div className="h-100 w-100 p-absolute" />}
|
||||
<iframe
|
||||
src="https://docs.pybricks.com"
|
||||
src="static/docs/index.html"
|
||||
allowFullScreen={true}
|
||||
title="docs"
|
||||
width="100%"
|
||||
|
||||
@@ -22,7 +22,7 @@ clientsClaim();
|
||||
// Their URLs are injected into the manifest variable below.
|
||||
// This variable must be present somewhere in your service worker file,
|
||||
// even if you decide not to use precaching. See https://cra.link/PWA
|
||||
precacheAndRoute(self.__WB_MANIFEST);
|
||||
precacheAndRoute(self.__WB_MANIFEST, { ignoreURLParametersMatching: [/.*/] });
|
||||
|
||||
// Set up App Shell-style routing, so that all navigation requests
|
||||
// are fulfilled with your index.html shell. Learn more at
|
||||
|
||||
Reference in New Issue
Block a user