Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
formidable-spectacle-docs
Advanced tools
Now built with react-static!
To install and run the docs site locally:
yarn install
yarn start
Note that paths in local development are based on a root of "/" but be careful when defining relative and absolute paths inline or doing url parsing, as the production output root will be "open-source/spectacle."
To build the staging build output and serve it with the canonical path it'll have when built as a lander for formidable.com:
yarn stage
yarn serve
This step is important for validating that both the basePath
used by the static HTML output and the basename
used
by the client-side router are working as expected. This is also where you'll want to validate that there are no hardcoded,
inlined, or malformed asset paths that worked locally but will not resolve correctly in production!
To publish to NPM run
This package must be published with npm@5.6.0
npm version <newversion | major | minor | patch> (see Versioning notes below)
git push origin master && git push --tags
npm publish
OSS landers are deployed by the formidable.com package, see DEPLOYMENT.md
or lib/actions.js
there for how the build output is consumed.
Almost all of your code will be executed in two contexts, first in node for server-side rendering and static html generation, then client-side as a PWA. In addition to writing node-safe code, this also means that it's necessary to validate that both the static html and and the PWA are working as expected.
In addition to two execution contexts, there are three stages: development, staging, and production. yarn start
uses
a local dev server with live reload that takes about one second to rebuild. This is a good choice for most local development,
but it's important to keep in mind that the development server does not build the static html. For that, you will
want to use yarn stage && yarn serve
. The yarn build
command is used by formidable.com within its build script that
moves the output of this lander into the correct location within the overall site output.
When debugging an issue with the static html output, don't be shy about cracking open the dist
folder and looking at
the output!
When debugging an issue with the PWA or SSR-PWA coordination, consider using yarn stage-debug
-- this builds
the staging output without minification/uglification and propagates warnings/errors.
We have seen errors related to minification, uglification, and codesplitting before, please do not treat the debug build or the local dev server as 1:1 with production output!
We are on react-static v5 due to blocking stability issues with v6, which means...
You'll want to make sure that when you refer to the docs you're in the v5 branch.
When you install the react-static CLI tool globally, you'll want to use the v5 version (npm install -g react-static@^5.9.12
)
which currently has a wider selection of working templates that can be very useful as executable canonical references.
If you're looking for the client-side router documentation for react-static to see how to implement a certain behavior, the best place to start is in the react-router docs, which react-static v5 uses under the hood. There are a few additional react-static specific properties for Router, Routes, and Link but if you need something from the routing that doesn't seem to covered in the react-static api, the react-router docs are pretty likely to have you covered.
You'll want need to use Webpack 3 plugins. Webpack has an interesting approach
to documenting old versions. The existing documentation is broadly usable but you may want to familiarize yourself
with this introductory v3 to v4 migration guide and the relevant react-static
docs
Interestingly, some webpack v4 loaders still work with v3, while some webpack v3 loaders don't work with webpack v3. Version-twiddling or using a different loader for reasons that are unclear may be required. When tweaking webpack, it's extra-important to validate both PWA and static html output and clear out cached files.
This lander is designed to be easily re-used as a template for other projects.
What to change:
src/content/docs
. Any markdown files placed here will be rendered as separate pages, and header tags will be rendered into a hierarchical sidebar. (Please make sure header tags do not include any special symbols as they will be used to create anchor tags and hashes)src/screens/home/_content.js
includes section titles, descriptions, and assets urlssrc/screens/home/hero.js
src/constants.js
and static-config-parts/constants.js
respectivelyFAQs
Documentation site for Spectacle
The npm package formidable-spectacle-docs receives a total of 12 weekly downloads. As such, formidable-spectacle-docs popularity was classified as not popular.
We found that formidable-spectacle-docs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 33 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.