Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
huo 0.156.0
hugo 0.156.0
19 changes: 12 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 24.15 # latest LTS version ('node' will give latest version, 'lts/*' will give LTS version )
- 20.9 # latest LTS version ('node' will give latest version, 'lts/*' will give LTS version )
arch: amd64 # optional, this is default, routes to a full VM
# arch: arm64 # this is the recommended LXD container - faster spin up but some limitations Not used as it seems very unstable.
os: linux # optional, this is default
Expand Down Expand Up @@ -37,16 +37,21 @@ branches:
# - name: hugo
# channel: extended/stable # needs extended to compile SCSS etc. Issue if snap is not updated correctly

cache:
# Cache node_modules to avoid re-downloading on every build
# See https://docs.travis-ci.com/user/caching/
directories:
- node_modules
# cache:
######## Skipped
#
# Is there anything worth cacheing that isn't currently cached?
# see https://docs.travis-ci.com/user/caching/#how-does-caching-work
# Probably NOT /static
# Docsy theme?
# Custom layouts?
# SASS/CSS
#

before_install:
###############
# Hugo, Docsy and dependencies are installed via npm
- travis_retry npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
- npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
#
# Currently will use custom version of htmltest stored in /htmltest/htmltest
# This version makes the html.Parse much smaller
Expand Down
2 changes: 1 addition & 1 deletion config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ disableKinds = ["taxonomy", "term"]
startLevel = 2

[module]
replacements = "github.com/FortAwesome/Font-Awesome -> @fortawesome/fontawesome-free, github.com/twbs/bootstrap -> bootstrap"
replacements = "github.com/FortAwesome/Font-Awesome -> ., github.com/twbs/bootstrap -> ."

# Comment out if you don't want the "print entire section" link enabled.
[outputs]
Expand Down
2 changes: 1 addition & 1 deletion config/development/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ title = "Mendix DEVELOPMENT Documentation"
# In development we want to build everything
buildDrafts=true
buildExpired=true
buildFuture=true
buildFuture=true
1 change: 0 additions & 1 deletion config/production/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ title = "Mendix Documentation"
isPlainText = true # specifies GoLang’s plain text parser for the layout, preventing automatic HTML formatting in JSON
mediaType = "application/json" # file output type
notAlternative = true # excludes from looping over .AlternativeOutputFormats page variable

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions layouts/_partials/schema.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- /* Override: schema.html is intentionally empty.
The production site does not use JSON-LD structured data, and this
partial adds significant CI build time (13s across 4,000+ renders). */ -}}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<div class="section-index">
{{ $page := .Page -}}
{{ $pages := (where .Site.Pages "Section" .Section).ByWeight -}}
{{ $pages := $page.Pages.ByWeight -}}
{{ $pages = (where $pages "Type" "!=" "search") }}
{{ $pages = (where $pages ".Params.hide_summary" "!=" true) -}}
{{ $pages = (where $pages ".Parent" "!=" nil) -}}
{{ $pages = (where $pages ".Parent.File" "!=" nil) -}}
{{ if $page.File -}}
{{ $pages = (where $pages "Parent.File.UniqueID" "==" $page.File.UniqueID) -}}
{{ end -}}
{{ if or $page.Params.no_list (eq (len $pages) 0) -}}
{{/* If no_list is true or we don't have subpages we don't show a list of subpages */}}
{{ else if $page.Params.simple_list -}}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>{{ .Title }}</h1>
{{ end }}
</header>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ partialCached "section-index.html" . .File.UniqueID }}
<!-- Olu: removed checking for .Site.Config.Services.GoogleAnalytics.ID as part of the conditions -->
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/docs/single.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ define "main" }}
{{ .Render "content" }}
{{ .Render "_td-content" }}
{{ end }}
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/swagger/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>{{ .Title }}</h1>
{{ end }}
</header>
{{ .Content }}
{{ partial "section-index.html" . }}
{{ partialCached "section-index.html" . .File.UniqueID }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
Expand Down
2 changes: 1 addition & 1 deletion layouts/swagger/single.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ define "main" }}
{{ .Render "content" }}
{{ .Render "_td-content" }}
{{ end }}
Loading