Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@docusaurus/plugin-content-pages
Advanced tools
@docusaurus/plugin-content-pages is a plugin for Docusaurus, a popular static site generator. This plugin allows you to create custom pages in your Docusaurus site using React components. It is useful for adding static content that doesn't fit into the documentation or blog categories, such as landing pages, about pages, or custom 404 pages.
Creating Custom Pages
This feature allows you to create custom pages in your Docusaurus site. You can define a new page by creating a React component in the `src/pages` directory. The example shows how to create a simple custom page with a title and some content.
module.exports = {
plugins: [
'@docusaurus/plugin-content-pages',
],
};
// src/pages/customPage.js
import React from 'react';
import Layout from '@theme/Layout';
function CustomPage() {
return (
<Layout title="Custom Page">
<div>
<h1>Custom Page</h1>
<p>This is a custom page.</p>
</div>
</Layout>
);
}
export default CustomPage;
Custom 404 Page
This feature allows you to create a custom 404 page for your Docusaurus site. By creating a `404.js` file in the `src/pages` directory, you can define the content that will be displayed when a user navigates to a non-existent page.
// src/pages/404.js
import React from 'react';
import Layout from '@theme/Layout';
function NotFound() {
return (
<Layout title="Page Not Found">
<div>
<h1>404</h1>
<p>Oops! The page you are looking for does not exist.</p>
</div>
</Layout>
);
}
export default NotFound;
gatsby-plugin-page-creator is a plugin for Gatsby, another popular static site generator. It automatically creates pages from React components in specified directories. Compared to @docusaurus/plugin-content-pages, it offers similar functionality but is tailored for use with Gatsby.
Next.js is a React framework that allows you to create static and dynamic pages. It provides a file-based routing system where you can create pages by adding React components to the `pages` directory. While it offers more advanced features like server-side rendering and API routes, it can be used similarly to @docusaurus/plugin-content-pages for creating static content.
@docusaurus/plugin-content-pages
Pages plugin for Docusaurus.
3.7.0 (2025-01-03)
docusaurus-faster
, docusaurus
docusaurus-plugin-content-blog
, docusaurus-theme-classic
create-docusaurus
, docusaurus-mdx-loader
, docusaurus-module-type-aliases
, docusaurus-plugin-client-redirects
, docusaurus-plugin-content-blog
, docusaurus-plugin-content-docs
, docusaurus-plugin-content-pages
, docusaurus-plugin-debug
, docusaurus-plugin-google-analytics
, docusaurus-plugin-google-gtag
, docusaurus-plugin-google-tag-manager
, docusaurus-plugin-ideal-image
, docusaurus-plugin-pwa
, docusaurus-plugin-rsdoctor
, docusaurus-plugin-sitemap
, docusaurus-plugin-svgr
, docusaurus-plugin-vercel-analytics
, docusaurus-preset-classic
, docusaurus-theme-classic
, docusaurus-theme-common
, docusaurus-theme-live-codeblock
, docusaurus-theme-mermaid
, docusaurus-theme-search-algolia
, docusaurus-types
, docusaurus
docusaurus-plugin-content-blog
docusaurus-module-type-aliases
, docusaurus-plugin-svgr
, docusaurus-preset-classic
, docusaurus-types
, docusaurus-utils
, docusaurus
docusaurus-remark-plugin-npm2yarn
docusaurus-theme-classic
, docusaurus-theme-common
docusaurus-bundler
, docusaurus-theme-common
docusaurus-theme-common
docusaurus-theme-translations
docusaurus-plugin-content-docs
docusaurus
docusaurus-mdx-loader
docusaurus-theme-search-algolia
docusaurus
create-docusaurus
, docusaurus-mdx-loader
, docusaurus-module-type-aliases
, docusaurus-plugin-content-blog
, docusaurus-plugin-content-docs
, docusaurus-plugin-content-pages
, docusaurus-plugin-debug
, docusaurus-plugin-ideal-image
, docusaurus-plugin-pwa
, docusaurus-theme-classic
, docusaurus-theme-common
, docusaurus-theme-live-codeblock
, docusaurus-theme-mermaid
, docusaurus-theme-search-algolia
, docusaurus-types
, docusaurus
docusaurus-theme-common
FAQs
Pages plugin for Docusaurus.
The npm package @docusaurus/plugin-content-pages receives a total of 90,794 weekly downloads. As such, @docusaurus/plugin-content-pages popularity was classified as popular.
We found that @docusaurus/plugin-content-pages demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.