Skip to content

Commit 35808af

Browse files
authored
BC-11178 - check for cve's and update deps (#93)
1 parent 0149de8 commit 35808af

File tree

18 files changed

+1483
-2201
lines changed

18 files changed

+1483
-2201
lines changed

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/How to update the docs/congratulations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://
1313
## What's next?
1414

1515
- Read the [official documentation](https://docusaurus.io/)
16-
- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
16+
- Modify your site configuration with [`docusaurus.config.ts`](https://docusaurus.io/docs/api/docusaurus-config)
1717
- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
1818
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
1919
- Add a [search bar](https://docusaurus.io/docs/search)

docs/How to update the docs/create-a-document.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ sidebar_position: 3
3939
This is my **first Docusaurus document**!
4040
```
4141

42-
It is also possible to create your sidebar explicitly in `sidebars.js`:
42+
It is also possible to create your sidebar explicitly in `sidebars.ts`:
4343

44-
```js title="sidebars.js"
44+
```js title="sidebars.ts"
4545
module.exports = {
4646
tutorialSidebar: [
4747
'intro',

docs/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Glossary / Quick Links
44

5-
- [Getting started](#getting-started)
5+
- [Getting started](./getting-started.md)
66
- [Glossary / Quick Links](#glossary--quick-links)
77
- [Windows Installation](#windows-installation)
88
- [Prerequisites for Installation](#prerequisites-for-installation)
@@ -673,4 +673,4 @@ To work with the SuperHero Dashboard (SHD) - which is basically used as a databa
673673
**Under Mac:** For the same reason, the package "distutils" is used here, which is normally covered by the Python installation, but has not been included there since Python 3.12. Here you have to go a separate way to get the necessary functionalities. It is best to use one of the following ways using homebrew under macOS.
674674

675675
1. The installation of `brew install python-setuptools`, in the hope that everything necessary was installed there.
676-
2. If 1. doesn't work, you should use the old Python version using `brew install python@3.11` then the corresponding Env Var must be set in ".zshrc". Either with `export PYTHON=3.11` or `export npm_config_python=/opt/homebrew/bin/python3.11`, if necessary, both can be used at the same time, nothing can break for now.
676+
2. If 1. doesn't work, you should use the old Python version using `brew install python@3.11` then the corresponding Env Var must be set in ".zshrc". Either with `export PYTHON=3.11` or `export npm_config_python=/opt/homebrew/bin/python3.11`, if necessary, both can be used at the same time, nothing can break for now.

docs/topics/moin-punkt-schule/Getting started.md renamed to docs/topics/moin-punkt-schule/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Table of Contents
44

5-
- [Getting started Moin.Schule](#getting-started-moinschule)
5+
- [Getting started Moin.Schule](./getting-started.md)
66
- [Table of Contents](#table-of-contents)
77
- [General note](#general-note)
88
- [Moin.Schule (Development+Reference-instance)](#moinschule-developmentreference-instance)
@@ -191,4 +191,4 @@ This section describes special features.
191191

192192
This endpoint is a part of **system configuration** for moin.schule and is used to logout from moin.schule during logout from SVS client.
193193

194-
The pattern is: `https://<moin.schule-URL>/realms/SANIS/protocol/openid-connect/logout`
194+
The pattern is: `https://<moin.schule-URL>/realms/SANIS/protocol/openid-connect/logout`
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Getting started: CTL - Configurable Tool Links
2-
- [Getting started: CTL - Configurable Tool Links](#getting-started-ctl---configurable-tool-links)
2+
- [Getting started: CTL - Configurable Tool Links](./getting-started.md)
33
- [Parameter Overview](#parameter-overview)
44
- [Common parameters](#common-parameters)
55
- [Basic parameters](#basic-parameters)
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1-
// @ts-check
2-
// Note: type annotations allow type checking and IDEs autocompletion
3-
41
import { themes as prismThemes } from 'prism-react-renderer';
2+
import type {Config} from '@docusaurus/types';
3+
4+
5+
const originalStdErr = process.stderr.write;
56

7+
/**
8+
* Monkey-patch process.stderr.write to suppress specific warnings from the image-size package.
9+
* Otherwise, you would get a warning for every svg image during build/start.
10+
* See progress on fixing it in docusaurus: https://github.com/image-size/image-size/issues/397
11+
*/
12+
process.stderr.write = function(chunk, encoding) {
13+
const message = chunk.toString();
14+
15+
if (message.includes('unsupported file type: undefined') ||
16+
message.includes("can't be read correctly") ||
17+
message.includes('image-size')) {
18+
return true;
19+
}
20+
21+
return originalStdErr.apply(process.stderr, arguments);
22+
};
623

7-
/** @type {import('@docusaurus/types').Config} */
8-
const config = {
24+
const config: Config = {
925
title: 'Schulcloud-Verbund-Software Documentation',
1026
tagline: 'Dinosaurs are cool',
1127
favicon: 'img/favicon.ico',
@@ -42,10 +58,9 @@ const config = {
4258
presets: [
4359
[
4460
'classic',
45-
/** @type {import('@docusaurus/preset-classic').Options} */
4661
({
4762
docs: {
48-
sidebarPath: require.resolve('./sidebars.js'),
63+
sidebarPath: require.resolve('./sidebars.ts'),
4964
// Please change this to your repo.
5065
// Remove this to remove the "edit this page" links.
5166
editUrl: ({docPath, versionDocsDirPath}) => {
@@ -68,7 +83,6 @@ const config = {
6883
],
6984

7085
themeConfig:
71-
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7286
({
7387
// Replace with your project's social card
7488
image: 'img/docusaurus-social-card.jpg',
@@ -155,20 +169,6 @@ const config = {
155169
}),
156170

157171
themes: [
158-
// ... Your other themes.
159-
// [
160-
// require.resolve("@easyops-cn/docusaurus-search-local"),
161-
// /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
162-
// ({
163-
// // ... Your options.
164-
// // `hashed` is recommended as long-term-cache of index file is possible.
165-
// hashed: true,
166-
// // For Docs using Chinese, The `language` is recommended to set to:
167-
// // ```
168-
// // language: ["en", "zh"],
169-
// // ```
170-
// }),
171-
// ],
172172
'@docusaurus/theme-mermaid',
173173
],
174174
};

0 commit comments

Comments
 (0)