Skip to content
Draft
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
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
language: node_js
node_js:
- 24.15 # 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
dist: jammy # or bionic | xenial | trusty | precise with xenial as default - Recommended here: https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
arch: arm64 # https://docs.travis-ci.com/user/reference/overview/#arm64-builds
virt: lxd # https://docs.travis-ci.com/user/reference/overview/
os: linux #
dist: jammy # https://docs.travis-ci.com/user/reference/overview/
group: edge #

git:
depth: 20000 # We're cloning this many commits as it is roughly covering the last 4 years of commits, thus letting us show the last changed date on the documentation pages.
Expand Down Expand Up @@ -42,16 +43,16 @@ cache:
# See https://docs.travis-ci.com/user/caching/
directories:
- node_modules
# - $HOME/.cache/hugo_cache

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
#
# Currently will use custom version of htmltest stored in /htmltest/htmltest
# This version makes the html.Parse much smaller
# For htmltest installation instructions, see https://github.com/wjdp/htmltest/blob/master/README.md
# - travis_retry curl https://htmltest.wjdp.uk | bash # install htmltest into $TRAVIS_BUILD_DIR/bin/htmltest
# htmltest v0.17.0 for arm64 stored in /htmltest/htmltest
# Behavior configured via .htmltest.yml
# For htmltest documentation, see https://github.com/wjdp/htmltest/blob/master/README.md

install:
########
Expand All @@ -71,7 +72,7 @@ install:

- ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log

# normal htmltest takes too much memory - using a modified version which strips <aside> tag content
# Run htmltest to validate HTML output
# NB - Set pipefail so that Travis CI sees the return code from `tee` and not from `htmltest` so it will always build.
- set +o pipefail
# Additional info in bold white on green
Expand All @@ -85,9 +86,8 @@ install:

before_script:
##############
- pyenv versions # list python versions supported by pyenv in case version in next command is removed
- pyenv global 3.8 # this version needs to be already installed in the travis build
- python -V
# pyenv is not available on arm64-graviton2 images, use system Python
- python3 -V

script:
#######
Expand Down Expand Up @@ -130,14 +130,14 @@ script:

before_deploy:
##############
# - curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" # arm version
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" # amd version
- curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" # arm64 version (for arch: arm64)
# - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" # x86_64 version (for arch: amd64)
- unzip -q awscliv2.zip
- sudo ./aws/install # install AWS command line
- aws --version
- chmod +x $TRAVIS_BUILD_DIR/_scripts/deploy.sh
- python --version
- pip install --upgrade 'algoliasearch>=2.0,<3.0' # install Algolia Python API Client version 2
- python3 --version
- pip3 install --upgrade 'algoliasearch>=2.0,<3.0' # install Algolia Python API Client version 2

deploy:
#######
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mendix Documentation [![hugo_badge](https://img.shields.io/badge/hugo-0.156.0-green.svg)](https://gohugo.io/) [![node_badge](https://img.shields.io/badge/node-24.15.0-green.svg)](https://nodejs.org/en/) [![docsy_badge](https://img.shields.io/badge/docsy-0.15.0-green.svg)](https://www.docsy.dev/)
# Mendix Documentation [![hugo_badge](https://img.shields.io/badge/hugo-0.157.0-green.svg)](https://gohugo.io/) [![node_badge](https://img.shields.io/badge/node-24.15.0-green.svg)](https://nodejs.org/en/) [![docsy_badge](https://img.shields.io/badge/docsy-0.15.0-green.svg)](https://www.docsy.dev/)

This repository contains the Mendix documentation, which is served on [https://docs.mendix.com](https://docs.mendix.com).

Expand Down
4 changes: 2 additions & 2 deletions _scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ pwd

if ([ "${TRAVIS_BRANCH}" == "production" ])
then
python --version
python _scripts/pushmxdocsalgolia.py
python3 --version
python3 _scripts/pushmxdocsalgolia.py
fi


Expand Down
8 changes: 8 additions & 0 deletions config/development/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ title = "Mendix DEVELOPMENT Documentation"
buildDrafts=true
buildExpired=true
buildFuture=true

# Speed up development builds by disabling Git info lookup (which means last modified date won't show)
# enableGitInfo = false

# Disable print during development
# [outputs]
# section = ["HTML"]
# page = ["HTML"]
Binary file modified htmltest/htmltest
100644 → 100755
Binary file not shown.
Loading