
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
piral-docs-tools
Advanced tools
Tools for generating a dynamic documentation experience like for docs.piral.io.
piral-docs-tools · The tools for making the documentation page of the Piral project. You can find it at docs.piral.io.
You can add the tool by installing it via NPM:
npm i piral-docs-tool --save-dev
A couple of peer dependencies also need to be resolved. If can install all peer dependencies using:
npm i piral-core piral-cli piral-cli-parcel react react-dom react-router-dom --save-dev
Place a file called docs.config.json in the project folder where piral-docs is being run. It should be adjacent to the package.json.
{
"title": "Doc Title",
"description": "The description for the documentation.",
"author": "your-orga",
"branch": "main",
"repositoryUrl": "https://github.com/your-orga/your-repo",
"rootDir": ".",
"outputDir": "./dist/docs",
"skipEditLabel": false,
"changelogFile": "./CHANGELOG.md",
"sass": {
"variables": "./src/global.scss"
},
"styles": [
"./src/styles.css"
],
"components": {
"logo": "./src/Logo.tsx",
"infoBar": "./src/InfoBar.tsx",
"breadcrumbs": "./src/Breadcrumbs.tsx",
"footer": "./src/Footer.tsx",
"notFoundPage": "./src/NotFoundPage.tsx"
},
"pages": {
"/imprint": "./src/ImprintPage.tsx"
},
"helpers": {
"setup": "./src/setup.ts",
"filter": "./src/filter.ts",
"plugins": "./src/piralPlugins.ts",
"requestPilets": "./src/requestPilets.ts"
},
"redirects": {
"/": "/chapterName"
},
"sitemap": {
"chapterName": {
"title": "Chapter 1",
"sections": []
}
}
}
A documentation page can be built using
piral-docs build
A documentation page can be watched using
piral-docs watch
An emulator package can be built using
piral-docs sdk
The structure of a sitemap is as follows:
interface SingleSection {
title: string;
links: SitemapItem | Array<SitemapItem>;
}
type GenerateContent = CustomGenerator | StandardGenerator;
interface StandardGenerator {
generator: 'markdown' | 'types';
segment: string;
dir: string;
exclude?: string;
include?: string;
}
interface CustomGenerator {
generator: 'custom';
path: string;
}
type SitemapItem = GenerateContent | SingleSection;
interface Sitemap {
[chapterName: string]: {
title: string;
sections: Array<SitemapItem>;
};
}
Thest tools are released using the MIT license. For more information see the license file.
FAQs
Tools for generating a dynamic documentation experience like for docs.piral.io.
The npm package piral-docs-tools receives a total of 65 weekly downloads. As such, piral-docs-tools popularity was classified as not popular.
We found that piral-docs-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.