Skip to content

Commit

Permalink
docs: fixed api-extractor version
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeeou committed Mar 20, 2024
1 parent f8825a7 commit 5d94880
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
working-directory: website
run: |
npm ci
npm install -g @microsoft/api-extractor@7
npm install -g @microsoft/api-documenter@7
npm install -g @microsoft/api-extractor@7.20.0
npm install -g @microsoft/api-documenter@7.20.0
make all
npm run build
- name: Deploy to GitHub Pages
Expand Down
4 changes: 2 additions & 2 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

- api-extractor
```
npm install -g @microsoft/api-extractor@7
npm install -g @microsoft/api-extractor@7.20.0
```
- api-documenter
```
npm install -g @microsoft/api-documenter@7
npm install -g @microsoft/api-documenter@7.20.0
```

## Install / Update plugin markdown-plugin
Expand Down
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
tagline: "A functional library for TypeScript/JavaScript programmers.",
url: "https://fxts.dev",
baseUrl: "/",
onBrokenLinks: "ignore",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "ignore",
favicon: "img/favicon.ico",
i18n: {
Expand Down
7 changes: 6 additions & 1 deletion website/markdown-plugin/src/MarkdownFeature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ class MarkdownFeature extends MarkdownDocumenterFeature {
public onBeforeWritePage(
eventArgs: IMarkdownDocumenterFeatureOnBeforeWritePageArgs,
): void {
this.header = ["---", `id: ${eventArgs.apiItem.displayName}`, "---"];
this.header = [
"---",
`id: ${eventArgs.apiItem.displayName}`,
"---",
"<!-- Do not edit this file. It is generated automatically -->",
];

this.footer = [];

Expand Down
2 changes: 1 addition & 1 deletion website/tsdoc-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.42.3"
"packageVersion": "7.20.0"
}
]
}

0 comments on commit 5d94880

Please sign in to comment.