Skip to content

Commit 86278ed

Browse files
author
Christopher Remde
committed
Updated Hugo to V1.8
1 parent 36cb1c4 commit 86278ed

File tree

10 files changed

+3373
-2075
lines changed

10 files changed

+3373
-2075
lines changed

docs/config/_default/hugo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
title = "Unity Geometry Sequence Player"
22
baseurl = "https://localhost/"
3-
canonifyURLs = false
3+
# canonifyURLs = false
44
disableAliases = true
55
disableHugoGeneratorInject = true
66
# disableKinds = ["taxonomy", "term"]
77
enableEmoji = true
88
enableGitInfo = false
99
enableRobotsTXT = true
1010
languageCode = "en-US"
11-
paginate = 10
11+
# paginate = 10
1212
rssLimit = 10
1313
summarylength = 20 # 70 (default)
1414

@@ -83,4 +83,7 @@ copyRight = "Copyright (c) 2020-2024 Hyas"
8383
bgColor = "#ffffff"
8484
hint = "photo"
8585
quality = 100
86-
resampleFilter = "Lanczos"
86+
resampleFilter = "Lanczos"
87+
88+
[pagination]
89+
pagerSize = 10

docs/config/_default/module.toml

Lines changed: 51 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,95 @@
1-
# mounts
2-
## archetypes
3-
[[mounts]]
4-
source = "node_modules/@hyas/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/@hyas/core/assets"
14-
target = "assets"
17+
source = "node_modules/@thulite/doks-core/data"
18+
target = "data"
1519

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

24+
## layouts
2025
[[mounts]]
21-
source = "node_modules/@hyas/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/@hyas/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]]
48-
source = "node_modules/@hyas/doks-core/i18n"
53+
source = "node_modules/@thulite/doks-core/i18n"
4954
target = "i18n"
5055

5156
[[mounts]]
5257
source = "i18n"
5358
target = "i18n"
5459

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

6065
[[mounts]]
61-
source = "node_modules/@hyas/seo/layouts"
62-
target = "layouts"
66+
source = "archetypes"
67+
target = "archetypes"
68+
69+
## assets
70+
[[mounts]]
71+
source = "node_modules/@thulite/core/assets"
72+
target = "assets"
6373

6474
[[mounts]]
65-
source = "node_modules/@hyas/images/layouts"
66-
target = "layouts"
75+
source = "node_modules/@thulite/doks-core/assets"
76+
target = "assets"
6777

6878
[[mounts]]
69-
source = "node_modules/@hyas/doks-core/layouts"
70-
target = "layouts"
79+
source = "node_modules/@tabler/icons/icons"
80+
target = "assets/svgs/tabler-icons"
7181

7282
[[mounts]]
73-
source = "node_modules/@hyas/inline-svg/layouts"
74-
target = "layouts"
83+
source = "node_modules/@thulite/images/assets"
84+
target = "assets"
7585

7686
[[mounts]]
77-
source = "layouts"
78-
target = "layouts"
87+
source = "assets"
88+
target = "assets"
7989

8090
## static
8191
[[mounts]]
82-
source = "node_modules/@hyas/doks-core/static"
92+
source = "node_modules/@thulite/doks-core/static"
8393
target = "static"
8494

8595
[[mounts]]

docs/config/postcss.config.js

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

55
module.exports = {
6-
plugins: [
7-
autoprefixer(),
8-
purgecss({
9-
content: ["./hugo_stats.json"],
10-
extractors: [
11-
{
12-
extractor: (content) => {
13-
const els = JSON.parse(content).htmlElements;
14-
return els.tags.concat(els.classes, els.ids);
15-
},
16-
extensions: ["json"]
17-
}
18-
],
19-
dynamicAttributes: [
20-
"aria-expanded",
21-
"data-bs-popper",
22-
"data-bs-target",
23-
"data-bs-theme",
24-
"data-dark-mode",
25-
"data-global-alert",
26-
"data-pane", // tabs.js
27-
"data-popper-placement",
28-
"data-sizes",
29-
"data-toggle-tab", // tabs.js
30-
"id",
31-
"size",
32-
"type"
33-
],
34-
safelist: [
35-
"active",
36-
"btn-clipboard", // clipboards.js
37-
"clipboard", // clipboards.js
38-
"disabled",
39-
"code",
40-
"hidden",
41-
"modal-backdrop", // search-modal.js
42-
"selected", // search-modal.js
43-
"show",
44-
"img-fluid",
45-
"blur-up",
46-
"lazyload",
47-
"lazyloaded",
48-
"alert-link",
49-
"container-fw ",
50-
"container-lg",
51-
"container-fluid",
52-
"offcanvas-backdrop",
53-
"figcaption",
54-
"dt",
55-
"dd",
56-
"showing",
57-
"hiding",
58-
"page-item",
59-
"page-link",
60-
...whitelister(["./assets/scss/**/*.scss", "./node_modules/@hyas/doks-core/assets/scss/components/_code.scss", "./node_modules/@hyas/doks-core/assets/scss/components/_expressive-code.scss", "./node_modules/@hyas/doks-core/assets/scss/common/_syntax.scss"])
61-
]
62-
})
63-
]
6+
plugins: [
7+
autoprefixer(),
8+
purgeCSSPlugin({
9+
content: ['./hugo_stats.json'],
10+
extractors: [
11+
{
12+
extractor: (content) => {
13+
const els = JSON.parse(content).htmlElements;
14+
return els.tags.concat(els.classes, els.ids);
15+
},
16+
extensions: ['json']
17+
}
18+
],
19+
dynamicAttributes: [
20+
'aria-expanded',
21+
'data-bs-popper',
22+
'data-bs-target',
23+
'data-bs-theme',
24+
'data-dark-mode',
25+
'data-global-alert',
26+
'data-pane', // tabs.js
27+
'data-popper-placement',
28+
'data-sizes',
29+
'data-toggle-tab', // tabs.js
30+
'id',
31+
'size',
32+
'type'
33+
],
34+
safelist: [
35+
'active',
36+
'btn-clipboard', // clipboards.js
37+
'clipboard', // clipboards.js
38+
'disabled',
39+
'hidden',
40+
'modal-backdrop', // search-modal.js
41+
'selected', // search-modal.js
42+
'show',
43+
'img-fluid',
44+
'blur-up',
45+
'lazyload',
46+
'lazyloaded',
47+
'alert-link',
48+
'container-fw ',
49+
'container-lg',
50+
'container-fluid',
51+
'offcanvas-backdrop',
52+
'figcaption',
53+
'dt',
54+
'dd',
55+
'showing',
56+
'hiding',
57+
'page-item',
58+
'page-link',
59+
'not-content',
60+
...whitelister(['./assets/scss/**/*.scss', './node_modules/@thulite/doks-core/assets/scss/components/_code.scss', './node_modules/@thulite/doks-core/assets/scss/components/_expressive-code.scss', './node_modules/@thulite/doks-core/assets/scss/common/_syntax.scss'])
61+
]
62+
})
63+
]
6464
};

docs/content/docs/tutorials/materials/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ By default, an **unlit** material will be assigned to the sequence, which means
2121

2222
## Mesh sequences
2323

24+
Assigning a custom material to a mesh sequence works nearly the same as for any other mesh in Unity. All shaders and Shadergraph Materials can be used.
25+
2426
![Difference between the default material and a custom material](Mesh_Material_Difference.jpg)
2527

2628
### Assigning materials
2729

2830
![The material options](Mesh_Material_Options.png)
2931

30-
Assigning a material to a mesh sequence works nearly identical as it is for every other mesh in Unity. But instead of assigning your material in the mesh renderer, you have to go to the **Geometry Sequence Stream** component that can be found on the same Gameobject as your _Geometry Sequence Player_. At the top you can find the **Custom Material** slot, where you can assign your material. If you assign a material there, the **Instantiate Material** checkbox will also show up. This let's you choose if your material should either be copied (instantiated) before applying it, or the material should just be assigned. In the latter case, any changes made to the material file itself will be instantly reflected on the sequence.
32+
Go to the **Geometry Sequence Stream** component that can be found on the same Gameobject as your _Geometry Sequence Player_. At the top you can find the **Custom Material** slot, where you can assign your material. If you assign a material there, the **Instantiate Material** checkbox will also show up. This let's you choose if your material should either be copied (instantiated) before applying it, or the material should just be assigned. In the latter case, any changes made to the material file itself will be instantly reflected on the sequence.
3133

3234
> ☝️ Please note that the sequence thumbnail in the editor might not always be updated automatically. Sometimes you need to enter the playmode once so that changes are visible.
3335
@@ -37,8 +39,6 @@ If you have a mesh sequence with textures, you can also control to which texture
3739

3840
## Pointcloud sequences
3941

40-
![Pointcloud shadergraph example](shadergraph-distortion.jpg)
41-
4242
Changing the appearance of the pointcloud works very differently compared to meshes, as pointclouds require special shaders for rendering correctly. If you don't assign a custom pointcloud material, there are some predefined settings you can use to easily and quickly the appearance. These settings can be found under the **Geometry Sequence Stream** component and include the **Point Size** as well as the **Point Emission Strength**.
4343

4444
![Pointcloud Settings](Pointcloud_Settings.png)
@@ -67,6 +67,8 @@ The pointcloud material is emissive by default, to give a look similar to an unl
6767

6868
### Customising the pointcloud shader
6969

70+
![Pointcloud shadergraph example](shadergraph-distortion.jpg)
71+
7072
If you don't set a custom material, a default pointcloud material will be loaded that is appropriate for the chosen rendering path. You can create your own Pointcloud shaders to more finely tune the appearance of the points. You will need some experience with writing shaders for Unitys Shaderlab/GLSL and/or Shadergraph. We strongly recommend to take a look at the [Shadergraph Example](/Unity_Geometry_Sequence_Player/docs/tutorials/materials/samples/#sample-05-shadergraph) and clone one of the available pointcloud shaders found under:
7173

7274
`Packages > Geometry Sequence Player > Runtime > Shader > Resources`

docs/layouts/partials/footer/script-footer-custom.html renamed to docs/layouts/_partials/footer/script-footer-custom.html

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)