diff --git a/project-words.txt b/project-words.txt index 73e68d7b8edd..da09abfbe435 100644 --- a/project-words.txt +++ b/project-words.txt @@ -119,6 +119,7 @@ immer infima inlines intelli +interactiveness interpolatable jakepartusch jamstack diff --git a/website/docs/advanced/client.md b/website/docs/advanced/client.md index fe09876169e0..6019e7328997 100644 --- a/website/docs/advanced/client.md +++ b/website/docs/advanced/client.md @@ -163,7 +163,7 @@ export function onRouteUpdate({location, previousLocation}) { Or, if you are using TypeScript and you want to leverage contextual typing: -```ts title="myClientModule.js" +```ts title="myClientModule.ts" import type {ClientModule} from '@docusaurus/types'; const module: ClientModule = { diff --git a/website/docs/advanced/ssg.md b/website/docs/advanced/ssg.md index b5b4e81f9f58..0a394f9179b4 100644 --- a/website/docs/advanced/ssg.md +++ b/website/docs/advanced/ssg.md @@ -100,6 +100,8 @@ These HTML files are the first to arrive at the user's browser screen when a URL In CSR-only apps, all DOM elements are generated on client side with React, and the HTML file only ever contains one root element for React to mount DOM to; in SSR, React is already facing a fully built HTML page, and it only needs to correlate the DOM elements with the virtual DOM in its model. This step is called "hydration". After React has hydrated the static markup, the app starts to work as any normal React app. +Note that Docusaurus is ultimately a single-page application, so static site generation is only an optimization (_progressive enhancement_, as it's called), but our functionality does not fully depend on those HTML files. This is contrary to site generators like [Jekyll](https://jekyllrb.com/) and [Docusaurus v1](https://v1.docusaurus.io/), where all files are statically transformed to markup, and interactiveness is added through external JavaScript linked with `