sorted markdown and added favicon
Sonarqube Scanner / Prepare environment (push) Successful in 13s
Sonarqube Scanner / Build and test (push) Successful in 33s
Sonarqube Scanner / SonarQube analysis (push) Successful in 1m38s
Sonarqube Scanner / Deploy to Server (push) Successful in 7s

This commit is contained in:
Florian Zumpe
2026-10-04 09:06:48 +02:00
parent 497b7b8050
commit 74090723c4
22 changed files with 1133 additions and 5 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ async function read(relativePath) {
return readAppFile(relativePath);
}
async function markdownFiles(directory = root) {
async function markdownFiles(directory = path.join(root, 'docs')) {
const result = [];
const entries = await fs.readdir(directory, { withFileTypes: true });
for (const entry of entries) {
@@ -49,8 +49,8 @@ function assertMiddleware(declaration, middleware) {
test('complete REST API documentation is kept outside the README', async () => {
const files = await markdownFiles();
const readmePath = files.find(file => path.basename(file).toLowerCase() === 'readme.md');
assert.ok(readmePath, 'README.md is missing');
const readmePath = path.join(root, 'docs', 'README.md');
assert.ok(files.includes(readmePath), 'docs/README.md is missing');
const readme = await fs.readFile(readmePath, 'utf8');
const outsideReadme = files.filter(file => file !== readmePath);