Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/verify-website.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ for (const phrase of [
if (renderedText.includes(phrase))
throw Error(`Current-beta copy remains in the stable website: ${phrase}`)
}
if (
!renderedText.includes(
'npm install @nipe-solutions/react-data-inspector@1.0.0',
)
)
throw Error('Stable installation command is missing its concrete version')
const stableInstallCommand = 'npm install @nipe-solutions/react-data-inspector'
if (!renderedText.includes(stableInstallCommand))
throw Error('Stable installation command is missing')
if (renderedText.includes(`${stableInstallCommand}@1.0.0`))
throw Error('Stable installation command must follow the latest release')
for (const [path, doc] of pages) {
for (const anchor of doc.querySelectorAll('a[href]')) {
const href = anchor.getAttribute('href')
Expand Down
2 changes: 1 addition & 1 deletion website/site/Chrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function Installation({ compact = false }: { compact?: boolean }) {
return (
<div className={compact ? 'installation compact-install' : 'installation'}>
<p>Available on npm · {publishedVersion}</p>
<Code>{`npm install @nipe-solutions/react-data-inspector@${publishedVersion}`}</Code>
<Code>npm install @nipe-solutions/react-data-inspector</Code>
{compact && (
<a className="install-link" href="/docs/installation">
Installation and CSS setup
Expand Down