Skip to content

Commit bf6aea1

Browse files
committed
Merge branch 'development' into ufc/state-handling
2 parents 375ee8d + ecc180e commit bf6aea1

542 files changed

Lines changed: 10465 additions & 3905 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ dist: jammy # or bionic | xenial | trusty | precise with xenial as defa
99
git:
1010
depth: 20000 # We're cloning a max of xxx commits, so the author date is correct
1111
quiet: true # prevent commit numbers appearing in the log and being flagged as potential security leaks.
12-
submodules: false # turn off submodules and specifically update them in before_install - preventing the commit numbers appearing in the log
12+
submodules: false # turn off submodules
1313

1414
env:
1515
global:
16-
# =============================================
17-
# UPDATE VERSION MANUALLY AND TEST BEFORE MERGE
18-
# =============================================
19-
- HUGO_VERSION=0.91.0 # Choose Hugo version explicitly, in case there is an issue with published version.
16+
# Global variables can go here, for example HUGO_VERSION if we were using Netlify to publish.
2017

2118
branches:
2219
# build only development and production
@@ -49,14 +46,9 @@ branches:
4946

5047
before_install:
5148
###############
52-
# Added the submodule update here so that I can add the --quiet flag
53-
- git submodule update --init --recursive --quiet
54-
#
49+
# Hugo, Docsy and dependencies are installed via npm
5550
- npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
5651
#
57-
- travis_retry curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar xz # Install Hugo manually - Snap is too fragile
58-
- chmod +x ./hugo # installed into $TRAVIS_BUILD_DIR/hugo
59-
#
6052
# Currently will use custom version of htmltest stored in /htmltest/htmltest
6153
# This version makes the html.Parse much smaller
6254
# For htmltest installation instructions, see https://github.com/wjdp/htmltest/blob/master/README.md
@@ -67,14 +59,14 @@ install:
6759
# ------------------------
6860
- mkdir public # This because <Maybe> the process of syncing to public is probably deadlocked behind waiting for the public folder to be made, and is never signalled that the folder is created, which ends up stalling the build on Travis CI.
6961
# ------------------------
70-
- ./hugo config --environment $TRAVIS_BRANCH # report the config we are using
62+
- ./node_modules/.bin/hugo config --environment $TRAVIS_BRANCH # report the config we are using
7163
- echo "HUGO was run for environment $TRAVIS_BRANCH" > $TRAVIS_BUILD_DIR/hugo.log
7264
# Set pipefail so that if Hugo fails the whole job fails
7365
- set -o pipefail
7466
# put the flags in different config files controlled by environment matching $TRAVIS_BRANCH
7567
# Append output to hugo.log file to print at the end of the travis job
7668
# (see https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout)
77-
- ./hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log
69+
- ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log
7870
#
7971
# normal htmltest takes too much memory - using a modified version which strips <aside> tag content
8072
# NB - Set pipefail so that Travis CI sees the return code from `tee` and not from `htmltest` so it will always build.

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Mendix Documentation [![badge](https://img.shields.io/badge/hugo-0.91.0-green.svg)](https://gohugo.io/) [![badge](https://img.shields.io/badge/node-16.14.0-green.svg)](https://nodejs.org/en/) [![badge](https://img.shields.io/badge/docsy-0.1.0-green.svg)](https://www.docsy.dev/)
1+
# Mendix Documentation [![badge](https://img.shields.io/badge/hugo-0.109.0-green.svg)](https://gohugo.io/) [![badge](https://img.shields.io/badge/node-18.14.0-green.svg)](https://nodejs.org/en/) [![badge](https://img.shields.io/badge/docsy-0.6.0-green.svg)](https://www.docsy.dev/)
22

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

@@ -29,28 +29,22 @@ You can clone a local copy of the repository and build local previews. The Mendi
2929

3030
#### Cloning the Repo
3131

32-
To clone the repo there are a few things to keep in mind:
32+
To clone the repo please keep in mind:
3333

3434
* If you are running on Windows, the directory path for the local directory should not be too long, otherwise some files will reach the limits of git’s file length. A base path of up to 50 characters works - 64 characters is currently too long.
35-
* If you are using a Git GUI-based tool (such as Sourcetree), make sure you have **Recurse submodules** checked. Github Desktop does this automatically for you.
36-
* If you are cloning the repo via Git commands from a terminal, run: `git clone --recurse-submodules https://github.com/mendix/docs`
37-
38-
Clone the repo through one of the above mentioned methods. Check that you have content within the directory `/themes/docsy/`.
3935

4036
#### Installing Dependencies
4137

42-
1. Download and install [NodeJS](https://nodejs.org/en/download/). Use the version indicated at the top of this readme.
38+
1. Download and install the LTS version of [NodeJS](https://nodejs.org/en/download/).
4339
1. In a terminal at the root of the repository run: `npm install`.
44-
1. Download the [0.91 Hugo](https://github.com/gohugoio/hugo/releases/tag/v0.91.0) *extended* version.
45-
1. Extract hugo.exe from the archive and place it in the root of the repo directory. None of the other files are needed.
46-
47-
Changes made to your local repository, such as adding the Hugo executable, should be excluded from git control. If any new/changed files are added to your uncommitted files, please do not commit the changes.
4840

4941
### Running the Server
5042

5143
To run a local version of the site:
5244

53-
1. Run cmd: `hugo server --environment development`
45+
1. Run cmd: `./node_modules/.bin/hugo server --environment development`
46+
47+
The path syntax prefacing `hugo` may be different based on your operating system and terminal you use.
5448

5549
Once the site is built you will see a table indicating how many pages have been created. You will need to wait until the server is set up before you can see the site.
5650

assets/scss/_alerts.scss

Lines changed: 0 additions & 21 deletions
This file was deleted.

assets/scss/_code.scss

Lines changed: 0 additions & 57 deletions
This file was deleted.

assets/scss/_content.scss

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)