You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+5-13Lines changed: 5 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,11 @@ dist: jammy # or bionic | xenial | trusty | precise with xenial as defa
9
9
git:
10
10
depth: 20000# We're cloning a max of xxx commits, so the author date is correct
11
11
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
13
13
14
14
env:
15
15
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.
20
17
21
18
branches:
22
19
# build only development and production
@@ -49,14 +46,9 @@ branches:
49
46
50
47
before_install:
51
48
###############
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
55
50
- npm install # use npm rather than yarn - HUGO doesn't have that many dependencies
56
51
#
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
-
#
60
52
# Currently will use custom version of htmltest stored in /htmltest/htmltest
61
53
# This version makes the html.Parse much smaller
62
54
# For htmltest installation instructions, see https://github.com/wjdp/htmltest/blob/master/README.md
@@ -67,14 +59,14 @@ install:
67
59
# ------------------------
68
60
- 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.
69
61
# ------------------------
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
71
63
- echo "HUGO was run for environment $TRAVIS_BRANCH" > $TRAVIS_BUILD_DIR/hugo.log
72
64
# Set pipefail so that if Hugo fails the whole job fails
73
65
- set -o pipefail
74
66
# put the flags in different config files controlled by environment matching $TRAVIS_BRANCH
75
67
# Append output to hugo.log file to print at the end of the travis job
76
68
# (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
78
70
#
79
71
# normal htmltest takes too much memory - using a modified version which strips <aside> tag content
80
72
# NB - Set pipefail so that Travis CI sees the return code from `tee` and not from `htmltest` so it will always build.
This repository contains the Mendix documentation, which is served on [https://docs.mendix.com](https://docs.mendix.com).
4
4
@@ -29,28 +29,22 @@ You can clone a local copy of the repository and build local previews. The Mendi
29
29
30
30
#### Cloning the Repo
31
31
32
-
To clone the repo there are a few things to keep in mind:
32
+
To clone the repo please keep in mind:
33
33
34
34
* 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/`.
39
35
40
36
#### Installing Dependencies
41
37
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/).
43
39
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.
48
40
49
41
### Running the Server
50
42
51
43
To run a local version of the site:
52
44
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.
54
48
55
49
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.
0 commit comments