Gathering detailed insights and metrics for formidable-spectacle-docs
Gathering detailed insights and metrics for formidable-spectacle-docs
Gathering detailed insights and metrics for formidable-spectacle-docs
Gathering detailed insights and metrics for formidable-spectacle-docs
<deprecated> Documentation for Spectacle, a React-based presentation library.
npm install formidable-spectacle-docs
Typescript
Module System
Node Version
NPM Version
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
332 Commits
1 Forks
52 Watchers
3 Branches
59 Contributors
Updated on Jan 28, 2023
Latest Version
5.1.0
Package Id
formidable-spectacle-docs@5.1.0
Unpacked Size
14.48 MB
Size
8.08 MB
File Count
53
NPM Version
5.6.0
Node Version
8.10.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
26
40
Now built with react-static!
To install and run the docs site locally:
1yarn install 2yarn 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:
1yarn stage 2yarn 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
1npm version <newversion | major | minor | patch> (see Versioning notes below) 2git push origin master && git push --tags 3npm 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
respectivelyNo vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/8 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More