Skip to content

Commit

Permalink
hugo update to 0.131.0 extended (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
js-xc authored Aug 7, 2024
1 parent b5fe21c commit ddbb9b0
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.74.3'
hugo-version: '0.131.0'
extended: true

- name: Setup Node
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ XLT Documentation is based on Docsy. Docsy is a [Hugo](https://gohugo.io/) theme

The following are basic prerequisites:

- Install a recent release of the Hugo "extended" version (we recommend version 0.74 or later).
- Install a recent release of the Hugo "extended" version (we recommend version 0.131.0 or later).
If you install from the [release page](https://github.com/gohugoio/hugo/releases), make sure you download the `_extended` version which supports SCSS.

- [Install the current Node environment](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) (version > 14.x).
Expand Down
12 changes: 2 additions & 10 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true

disableKinds = ["taxonomy", "taxonomyTerm"]
disableKinds = ["taxonomy"]

# log warning if link does not exist on build (instead of default ERROR, which fails the build)
refLinksErrorLevel = "WARNING"
Expand Down Expand Up @@ -71,20 +71,12 @@ anchor = "smart"
# Language configuration

[languages]
[languages.en]
[languages.en.params]
# title = "Xceptance Documentation Hub"
description = "Documentation for XLT and XTC including Manuals and How-Tos"
languageName ="English"
# Weight used for sorting.
weight = 1
#[languages.no]
#title = "Goldydocs"
#description = "Docsy er operativsystem for skyen"
#languageName ="Norsk"
#contentDir = "content/no"
#time_format_default = "02.01.2006"
#time_format_blog = "02.01.2006"


# Everything below this are Site Params

Expand Down
2 changes: 1 addition & 1 deletion content/en/xlt/about-xlt/000-demo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Go to [Load Testing]({{< relref "/xlt/load-testing" >}}).

Go to [XTC]({{< relref "xtc" >}}).

Go to [Release Notes]({{< relref "../../release-notes" >}}).
Go to [Release Notes]({{< relref "../release-notes" >}}).

(Actually you can build links to wherever in the hierarchy without a shortcode, [just like this](/load-testing) or [this](../../load-testing). However the `relref` shortcode should be preferred as Hugo will perform link validation for all links generated by that shortcode and log a warning or fail the build with an error depending on the [configuration](https://gohugo.io/content-management/cross-references/#ref-and-relref-configuration).)

Expand Down
4 changes: 2 additions & 2 deletions content/en/xlt/load-testing/How-Tos/load-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ We need at least a few numbers to derive our calculation from, such as:
* Peak page views/h: for example 250,000 page views
* Peak orders/h: for example 200 orders

[^1]: [What are visits?]({{< relref "/glossary#visit" >}})
[^1]: [What are visits?]({{< relref "../glossary#visit" >}})

Based on these assumptions, we can put together a fairly simple but sufficiently accurate load mix. Of course, we can also analyze the current log files and try to come up with something more precise, but that will be only a snapshot. Traffic is very volatile and hence we can be very generous when setting up this mix.

Since we do not take any daily averages as base but the peaks, we will calculate with a pretty comfortable buffer for our daily commerce life.

## Arrival Rate Calculation

There are [two different approaches]({{< relref "/load-model" >}}) (load models) available to define a load test setup: the user count model and the arrival rate model.
There are [two different approaches]({{< relref "load-model" >}}) (load models) available to define a load test setup: the user count model and the arrival rate model.

For the user count model, you define a certain number of concurrent users the system will have to handle, whereas with the arrival rate model, your criteria is the number of transactions per hour. As the latter is better fit for real world load, we will go with the arrival rate model.

Expand Down
2 changes: 1 addition & 1 deletion content/en/xtc/loadtesting/140-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
All infos that are available on the Load Tests Overview.
---

A load test project in XTC may contain a number of [XLT load and performance tests]({{< relref "/load-testing" >}}). In XTC, you can easily keep track of which tests have been run for a project and have all the data (e.g. which settings were used, how much load was applied, how did the test go) available in one place.
A load test project in XTC may contain a number of [XLT load and performance tests]({{< relref "xlt/load-testing" >}}). In XTC, you can easily keep track of which tests have been run for a project and have all the data (e.g. which settings were used, how much load was applied, how did the test go) available in one place.

## Load Tests Overview

Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/_default/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>{{ .Title }}</h1>
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.Params.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/blog/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>{{ .Title }}</h1>
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div>
{{ .Content }}
{{ if (.Site.Params.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
<br />
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/disqus-comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s.src = 'https://' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/head-css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{{ $scssMain := "scss/main.scss"}}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}}
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ $jsSearch = resources.Get "js/offline-search.js" }}
{{ end }}
{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js" }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script src="{{ $js.RelPermalink }}"></script>
{{ else }}
{{ $js := $js | minify | fingerprint }}
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/swagger/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>{{ .Title }}</h1>
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 0 additions & 4 deletions themes/xltdoc/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
{{ end -}}
{{ partialCached "favicons.html" . }}
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
{{ partialCached "head-css.html" . "asdf" }}
<script type="text/javascript" src="/js/jquery-3.5.1.min.js"></script>
{{ if .Site.Params.offlineSearch }}
Expand Down
2 changes: 1 addition & 1 deletion themes/xltdoc/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{ $jsSearch = resources.Get "js/offline-search.js" }}
{{ end }}
{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js" }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script src="{{ $js.RelPermalink }}"></script>
{{ else }}
{{ $js := $js | minify | fingerprint }}
Expand Down

0 comments on commit ddbb9b0

Please sign in to comment.