Update docs dependencies (#553)

This commit is contained in:
Anbraten 2021-11-27 15:13:00 +01:00 committed by GitHub
parent eb134a2e27
commit c4700e9693
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1235 additions and 3264 deletions

View file

@ -15,9 +15,9 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.7",
"@docusaurus/preset-classic": "^2.0.0-beta.7",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.7",
"@docusaurus/core": "^2.0.0-beta.9",
"@docusaurus/preset-classic": "^2.0.0-beta.9",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.9",
"@mdx-js/react": "^1.6.22",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
@ -40,14 +40,11 @@
]
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.0.0-beta.7",
"@docusaurus/module-type-aliases": "^2.0.0-beta.9",
"@tsconfig/docusaurus": "^1.0.4",
"@types/react": "^17.0.30",
"@types/react": "^17.0.37",
"@types/react-helmet": "^6.1.4",
"@types/react-router-dom": "^5.3.1",
"typescript": "^4.4.4"
},
"resolutions": {
"ua-parser-js": "^0.7.30"
"@types/react-router-dom": "^5.3.2",
"typescript": "^4.5.2"
}
}

View file

@ -1,6 +1,7 @@
{
"name": "@woodpecker-ci/plugin-index",
"version": "0.1.0",
"private": true,
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
@ -8,20 +9,20 @@
"build": "tsc && tsc -p tsconfig.jsx.json"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.0.0-beta.7",
"@docusaurus/theme-classic": "^2.0.0-beta.7",
"@docusaurus/types": "^2.0.0-beta.7",
"@docusaurus/module-type-aliases": "^2.0.0-beta.9",
"@docusaurus/theme-classic": "^2.0.0-beta.9",
"@docusaurus/types": "^2.0.0-beta.9",
"@octokit/openapi-types": "^11.2.0",
"@octokit/rest": "^18.12.0",
"@tsconfig/docusaurus": "^1.0.4",
"@types/marked": "^3.0.1",
"@types/marked": "^4.0.1",
"clsx": "^1.1.1",
"concurrently": "^6.3.0",
"marked": "^3.0.7",
"typescript": "^4.4.4"
"concurrently": "^6.4.0",
"marked": "^4.0.5",
"typescript": "^4.5.2"
},
"peerDependencies": {
"react": "^16.8.4 || ^17.0.0",
"react-dom": "^16.8.4 || ^17.0.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}

View file

@ -1,10 +1,8 @@
import marked from 'marked';
import { marked } from 'marked';
const tokens = ['---', '---'];
const regexHeader = new RegExp('^' + tokens[0] + '([\\s|\\S]*?)' + tokens[1]);
const regexContent = new RegExp(
'^ *?\\' + tokens[0] + '[^]*?' + tokens[1] + '*'
);
const regexContent = new RegExp('^ *?\\' + tokens[0] + '[^]*?' + tokens[1] + '*');
export function getHeader<T = any>(data: string): T {
const header = getRawHeader(data);

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff