Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
with:
hugo-version: '0.140.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
hugo-version: '0.152.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
extended: true

- name: Setup Node
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_docs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f # v3.0.0
with:
hugo-version: '0.140.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
hugo-version: '0.152.1' # renovate: datasource=github-releases depName=gohugoio/hugo versioning=loose
extended: true

- name: Setup Node
Expand Down
57 changes: 57 additions & 0 deletions docs/assets/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
title = "DefectDojo Documentation"
baseurl = "http://localhost/"
canonifyURLs = false
disableAliases = true
disableHugoGeneratorInject = true
disableKinds = ["taxonomy", "term"]
Expand Down Expand Up @@ -84,3 +83,6 @@ copyRight = "Copyright (c) 2020-2024 Thulite"
hint = "photo"
quality = 85
resampleFilter = "Lanczos"

[pagination]
pagerSize = 10
90 changes: 50 additions & 40 deletions docs/config/_default/module.toml
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
# mounts
## archetypes
[[mounts]]
source = "node_modules/@thulite/doks-core/archetypes"
target = "archetypes"
# Module Configuration File
#
# This file configures Hugo module settings, particularly module mounts which
# define how content is organized within the project.
#
# Mounts specify file paths in your project that Hugo should use when building
# the site. They allow for custom directory structures and integrating content
# from different locations.

## content
[[mounts]]
source = "archetypes"
target = "archetypes"
source = "content"
target = "content"

## assets
## data
[[mounts]]
source = "node_modules/@thulite/core/assets"
target = "assets"
source = "node_modules/@thulite/doks-core/data"
target = "data"

[[mounts]]
source = "node_modules/@thulite/images/assets"
target = "assets"
source = "data"
target = "data"

## layouts
[[mounts]]
source = "node_modules/@thulite/doks-core/assets"
target = "assets"
source = "layouts"
target = "layouts"

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

[[mounts]]
source = "assets"
target = "assets"
source = "node_modules/@thulite/core/layouts"
target = "layouts"

## content
[[mounts]]
source = "content"
target = "content"
source = "node_modules/@thulite/seo/layouts"
target = "layouts"

## data
[[mounts]]
source = "node_modules/@thulite/doks-core/data"
target = "data"
source = "node_modules/@thulite/images/layouts"
target = "layouts"

[[mounts]]
source = "data"
target = "data"
source = "node_modules/@thulite/inline-svg/layouts"
target = "layouts"

## i18n
[[mounts]]
Expand All @@ -52,30 +57,35 @@
source = "i18n"
target = "i18n"

## layouts
## archetypes
[[mounts]]
source = "node_modules/@thulite/core/layouts"
target = "layouts"
source = "node_modules/@thulite/doks-core/archetypes"
target = "archetypes"

[[mounts]]
source = "node_modules/@thulite/seo/layouts"
target = "layouts"
source = "archetypes"
target = "archetypes"

## assets
[[mounts]]
source = "node_modules/@thulite/images/layouts"
target = "layouts"
source = "node_modules/@thulite/core/assets"
target = "assets"

[[mounts]]
source = "node_modules/@thulite/doks-core/layouts"
target = "layouts"
source = "node_modules/@thulite/doks-core/assets"
target = "assets"

[[mounts]]
source = "node_modules/@thulite/inline-svg/layouts"
target = "layouts"
source = "node_modules/@tabler/icons/icons"
target = "assets/svgs/tabler-icons"

[[mounts]]
source = "layouts"
target = "layouts"
source = "node_modules/@thulite/images/assets"
target = "assets"

[[mounts]]
source = "assets"
target = "assets"

## static
[[mounts]]
Expand All @@ -84,4 +94,4 @@

[[mounts]]
source = "static"
target = "static"
target = "static"
7 changes: 3 additions & 4 deletions docs/config/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const autoprefixer = require('autoprefixer');
const purgecss = require('@fullhuman/postcss-purgecss');
const { purgeCSSPlugin } = require('@fullhuman/postcss-purgecss');
const whitelister = require('purgecss-whitelister');

module.exports = {
plugins: [
autoprefixer(),
purgecss({
purgeCSSPlugin({
content: ['./hugo_stats.json'],
extractors: [
{
Expand All @@ -18,7 +18,6 @@ module.exports = {
],
dynamicAttributes: [
'aria-expanded',
'aria-selected',
'data-bs-popper',
'data-bs-target',
'data-bs-theme',
Expand Down Expand Up @@ -62,4 +61,4 @@ module.exports = {
]
})
]
};
};
File renamed without changes.
Loading