Skip to content

Commit 35934f7

Browse files
authored
Merge pull request #13539 from DefectDojo/master-into-dev/2.51.3-2.52.0-dev
Release: Merge back 2.51.3 into dev from: master-into-dev/2.51.3-2.52.0-dev
2 parents 236d8b1 + 12e1eb3 commit 35934f7

37 files changed

Lines changed: 2548 additions & 1398 deletions

.github/renovate.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"/^.github/workflows//"
3131
],
3232
"matchStrings": [
33-
"\\w*:\\s[\"']?(?<currentValue>\\S*[^\"']?)[\"']?\\s#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s"
33+
"\\w*:\\s\"(?<currentValue>\\S+)\"\\s#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s",
34+
"\\w*:\\s'(?<currentValue>\\S+)'\\s#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s",
35+
"\\w*:\\s(?<currentValue>\\S+)\\s#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s"
3436
],
3537
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
3638
}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Hugo
1616
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
1717
with:
18-
hugo-version: '0.140.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
18+
hugo-version: '0.152.1' # renovate: datasource=github-releases depName=gohugoio/hugo
1919
extended: true
2020

2121
- name: Setup Node

.github/workflows/k8s-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup Minikube
2828
uses: manusa/actions-setup-minikube@b589f2d61bf96695c546929c72b38563e856059d # v2.14.0
2929
with:
30-
minikube version: 'v1.37.0' # renovate: datasource=github-releases depName=kubernetes/minikube versioning=loose
30+
minikube version: 'v1.37.0' # renovate: datasource=github-releases depName=kubernetes/minikube
3131
kubernetes version: ${{ matrix.k8s }}
3232
driver: docker
3333
start args: '--addons=ingress --cni calico'

.github/workflows/shellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
env:
66
SHELLCHECK_REPO: 'koalaman/shellcheck'
7-
SHELLCHECK_VERSION: 'v0.9.0' # renovate: datasource=github-releases depName=koalaman/shellcheck versioning=loose
7+
SHELLCHECK_VERSION: 'v0.9.0' # renovate: datasource=github-releases depName=koalaman/shellcheck
88
SHELLCHECK_SHA: '038fd81de6b7e20cc651571362683853670cdc71' # Renovate config is not currently adjusted to update hash - it needs to be done manually for now
99
jobs:
1010
shellcheck:

.github/workflows/validate_docs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Hugo
1313
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
1414
with:
15-
hugo-version: '0.140.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
15+
hugo-version: '0.152.1' # renovate: datasource=github-releases depName=gohugoio/hugo
1616
extended: true
1717

1818
- name: Setup Node

docs/assets/favicon.svg

Lines changed: 57 additions & 0 deletions
Loading

docs/config/_default/hugo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
title = "DefectDojo Documentation"
22
baseurl = "http://localhost/"
3-
canonifyURLs = false
43
disableAliases = true
54
disableHugoGeneratorInject = true
65
disableKinds = ["taxonomy", "term"]
@@ -84,3 +83,6 @@ copyRight = "Copyright (c) 2020-2024 Thulite"
8483
hint = "photo"
8584
quality = 85
8685
resampleFilter = "Lanczos"
86+
87+
[pagination]
88+
pagerSize = 10

docs/config/_default/module.toml

Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,52 @@
1-
# mounts
2-
## archetypes
3-
[[mounts]]
4-
source = "node_modules/@thulite/doks-core/archetypes"
5-
target = "archetypes"
1+
# Module Configuration File
2+
#
3+
# This file configures Hugo module settings, particularly module mounts which
4+
# define how content is organized within the project.
5+
#
6+
# Mounts specify file paths in your project that Hugo should use when building
7+
# the site. They allow for custom directory structures and integrating content
8+
# from different locations.
69

10+
## content
711
[[mounts]]
8-
source = "archetypes"
9-
target = "archetypes"
12+
source = "content"
13+
target = "content"
1014

11-
## assets
15+
## data
1216
[[mounts]]
13-
source = "node_modules/@thulite/core/assets"
14-
target = "assets"
17+
source = "node_modules/@thulite/doks-core/data"
18+
target = "data"
1519

1620
[[mounts]]
17-
source = "node_modules/@thulite/images/assets"
18-
target = "assets"
21+
source = "data"
22+
target = "data"
1923

24+
## layouts
2025
[[mounts]]
21-
source = "node_modules/@thulite/doks-core/assets"
22-
target = "assets"
26+
source = "layouts"
27+
target = "layouts"
2328

2429
[[mounts]]
25-
source = "node_modules/@tabler/icons/icons"
26-
target = "assets/svgs/tabler-icons"
30+
# Exclude 'home.html' to avoid conflicts with a custom home page layout defined in the local 'layouts' directory.
31+
excludeFiles = "home.html"
32+
source = "node_modules/@thulite/doks-core/layouts"
33+
target = "layouts"
2734

2835
[[mounts]]
29-
source = "assets"
30-
target = "assets"
36+
source = "node_modules/@thulite/core/layouts"
37+
target = "layouts"
3138

32-
## content
3339
[[mounts]]
34-
source = "content"
35-
target = "content"
40+
source = "node_modules/@thulite/seo/layouts"
41+
target = "layouts"
3642

37-
## data
3843
[[mounts]]
39-
source = "node_modules/@thulite/doks-core/data"
40-
target = "data"
44+
source = "node_modules/@thulite/images/layouts"
45+
target = "layouts"
4146

4247
[[mounts]]
43-
source = "data"
44-
target = "data"
48+
source = "node_modules/@thulite/inline-svg/layouts"
49+
target = "layouts"
4550

4651
## i18n
4752
[[mounts]]
@@ -52,30 +57,35 @@
5257
source = "i18n"
5358
target = "i18n"
5459

55-
## layouts
60+
## archetypes
5661
[[mounts]]
57-
source = "node_modules/@thulite/core/layouts"
58-
target = "layouts"
62+
source = "node_modules/@thulite/doks-core/archetypes"
63+
target = "archetypes"
5964

6065
[[mounts]]
61-
source = "node_modules/@thulite/seo/layouts"
62-
target = "layouts"
66+
source = "archetypes"
67+
target = "archetypes"
6368

69+
## assets
6470
[[mounts]]
65-
source = "node_modules/@thulite/images/layouts"
66-
target = "layouts"
71+
source = "node_modules/@thulite/core/assets"
72+
target = "assets"
6773

6874
[[mounts]]
69-
source = "node_modules/@thulite/doks-core/layouts"
70-
target = "layouts"
75+
source = "node_modules/@thulite/doks-core/assets"
76+
target = "assets"
7177

7278
[[mounts]]
73-
source = "node_modules/@thulite/inline-svg/layouts"
74-
target = "layouts"
79+
source = "node_modules/@tabler/icons/icons"
80+
target = "assets/svgs/tabler-icons"
7581

7682
[[mounts]]
77-
source = "layouts"
78-
target = "layouts"
83+
source = "node_modules/@thulite/images/assets"
84+
target = "assets"
85+
86+
[[mounts]]
87+
source = "assets"
88+
target = "assets"
7989

8090
## static
8191
[[mounts]]
@@ -84,4 +94,4 @@
8494

8595
[[mounts]]
8696
source = "static"
87-
target = "static"
97+
target = "static"

docs/config/postcss.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const autoprefixer = require('autoprefixer');
2-
const purgecss = require('@fullhuman/postcss-purgecss');
2+
const { purgeCSSPlugin } = require('@fullhuman/postcss-purgecss');
33
const whitelister = require('purgecss-whitelister');
44

55
module.exports = {
66
plugins: [
77
autoprefixer(),
8-
purgecss({
8+
purgeCSSPlugin({
99
content: ['./hugo_stats.json'],
1010
extractors: [
1111
{
@@ -18,7 +18,6 @@ module.exports = {
1818
],
1919
dynamicAttributes: [
2020
'aria-expanded',
21-
'aria-selected',
2221
'data-bs-popper',
2322
'data-bs-target',
2423
'data-bs-theme',
@@ -62,4 +61,4 @@ module.exports = {
6261
]
6362
})
6463
]
65-
};
64+
};

docs/content/en/ai/_index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "🪄 AI Features"
3+
description: ""
4+
summary: ""
5+
date: 2023-09-07T16:06:50+02:00
6+
lastmod: 2023-09-07T16:06:50+02:00
7+
draft: false
8+
weight: 2
9+
chapter: true
10+
seo:
11+
title: "" # custom title (optional)
12+
description: "" # custom description (recommended)
13+
canonical: "" # custom canonical URL (optional)
14+
robots: "" # custom robot tags (optional)
15+
exclude_search: true
16+
---

0 commit comments

Comments
 (0)