Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs dependencies #553

Merged
merged 1 commit into from
Nov 27, 2021
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
17 changes: 7 additions & 10 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
19 changes: 10 additions & 9 deletions docs/plugins/woodpecker-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "@woodpecker-ci/plugin-index",
"version": "0.1.0",
"private": true,
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"start": "concurrently 'tsc -w' 'tsc -w -p tsconfig.jsx.json'",
"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"
}
}
6 changes: 2 additions & 4 deletions docs/plugins/woodpecker-plugins/src/markdown.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Loading