Mendix documentation repository
  • JavaScript 70.6%
  • SCSS 14.4%
  • HTML 11.5%
  • JetBrains MPS 2.9%
  • Shell 0.4%
  • Other 0.2%
Find a file
2020-02-28 14:47:29 +01:00
_assets Typo in redirects.js 2020-02-28 09:58:08 +01:00
_gulp Add updateDate to recommendations (#2074) 2019-11-08 14:17:40 +01:00
_scripts Drafts (#1501) 2019-02-08 13:40:18 +01:00
content Merge pull request #2308 from mendix/EC_proofreading_Odata_docs 2020-02-28 14:47:29 +01:00
data Draft App Store Components Guide 2020-01-31 15:40:58 +01:00
snippets Rename Common Properties doc and review page properties 2019-12-16 16:05:49 +01:00
static Rename folders for 7 2019-04-25 13:36:36 +02:00
templates Change to "Read More" heading 2019-01-28 12:36:27 +01:00
themes/mendix Update featured.html 2020-02-27 08:33:35 +01:00
.gitignore add idea to gitignore 2019-12-06 10:54:02 +01:00
.nvmrc Upgrade node to v12 and gulp to v4 2019-08-16 17:33:36 +02:00
.travis.yml Upgrade node to v12 and gulp to v4 2019-08-16 17:33:36 +02:00
config.yaml Cleanup, add Hugo config 2017-07-24 14:24:16 +02:00
CONTRIBUTING.md Test inclusion of Model Share 2019-03-08 16:16:19 +01:00
docker-compose.yml Fix local builds 2019-08-07 13:37:49 +02:00
Dockerfile Fix error installing yarn during docker build 2020-02-24 11:11:59 +01:00
Gulpfile.js Update Gulpfile for build process 2019-09-19 13:25:08 +02:00
LICENSE Documentation 2016-09-28 14:55:35 +02:00
manifest_accp.yml Set stack 2019-03-06 15:15:39 +01:00
manifest_prod.yml Make sure stack is also on production 2019-03-06 15:21:29 +01:00
package.json Upgrade node to v12 and gulp to v4 2019-08-16 17:33:36 +02:00
README.md Merge pull request #1906 from akaRem/upgrade-to-node-12 2019-08-19 08:30:01 +02:00
run_json.js Feature/json api (#821) 2017-11-07 11:01:48 +01:00
yarn.lock Upgrade node to v12 and gulp to v4 2019-08-16 17:33:36 +02:00

Mendix Documentation badge

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

Build status:

  • master Build Status
  • development Build Status

Contribute

Want to contribute? Take a look at How to Contribute to the Mendix Documentation.

Development

There are two ways to develop the documentation: you can run it locally (which is faster) or use Docker. With Docker, you will not have to install Hugo and Node, but you need Docker and Docker Compose.

Local Development

The Mendix documentation is built on top of Hugo and Node.JS. When you want to develop the documentation locally, you need to have both installed.

Prerequisites

Hugo is a static page generator that runs on Go. Make sure you install Hugo following these guides.

Node.js is a JavaScript runtime. You can install it by downloading the installer here. We are using version (12.x.x).

Installing Dependencies

  1. Open a terminal window. In Windows, you can run this by pressing Win + R, typing cmd, and pressing Enter.

  2. Go to the folder where the documentation resides: cd C:\Projects\Mendix\docs (assuming you have put it in this folder).

  3. Check if you have both Hugo, Node.JS and yarn installed correctly by typing these commands in your terminal and pressing Enter):

    hugo version

    It should show you the version: Hugo Static Site Generator v0.31.1 xxxx. Note: It is important to match this version number! Because of breaking changes this will not work with Hugo version >= 0.32

    node -v

    It should show you the version: v12.0.0 (the version number you installed)

    yarn -v

    It should show you yarn version

  4. If both commands work, there is one more command you need to type to install the dependencies:

    yarn install

    This will take a while. It will install all project dependencies specified in package.json.

Running the Server

Running the server is done by executing the following command: npm run serve.

It takes a few seconds (Windows can take longer) to build the site and setup the server.

When it's done, open a browser and go to http://localhost:4000.

Gulp Tasks

By running yarn run help, you can access the different tasks that are used when building the website.

Please note that the task check:html is currently broken in Windows.

Using Docker for Development

A Docker setup potentially makes development and deployment easier.

To use it, follow these steps:

  1. Install Docker and Docker Compose.

  2. Build the Docker images with:

    docker-compose build
    
  3. Then run:

    docker-compose up
    

    This will start up the server and watches for changes. You should be able to visit http://localhost:4000/ to view the site.