Giter VIP home page Giter VIP logo

docs's Introduction

Mendix Documentation hugo_badge node_badge docsy_badge

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

Build status:

  • production Build Status
  • development Build Status

Contribute

Want to contribute? Take a look at How to Contribute to Mendix Docs. It will guide you through the process of submitting updates to the docs directly from GitHub or from a local branch.

Local Build

You can clone a local copy of the repository and build local previews. The Mendix documentation is built on top of Hugo and Node.js. The theme of the page is based on Docsy. To develop the documentation locally, follow the steps in the next section.

Setting Up

Cloning the Repo

When you clone the repo, keep the following in mind:

  • If you are using 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.

Installing Dependencies

  1. Download and install the LTS version of Node.js.
  2. In a terminal at the root of the repository, run npm install.

Running the Server

To run a local version of the site:

  1. Run one of the following commands:

    • npm run build

    • ./node_modules/.bin/hugo server --environment development – in this case, you can use different parameters to build the site in different ways—for example, build a copy of the production site and save it locally.

      The path syntax prefacing hugo may be different based on the operating system and terminal you use.

    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.

  2. Go to http://localhost:1313/ and see the site live.

See the Hugo Server documentation for more options (for example, if you want to change the port on which the site is published).

Potential Issues

If you are using a Mac, you might get an error too many open files or fatal error: pipe failed. By default, your Mac is probably set to restrict the number of open files. You will need to override this, see Docsy known issues for more information.

If your system has a low memory limit, add the --renderToDisk parameter to the Hugo command (for example, hugo server --environment development --renderToDisk). With this option, Hugo only loads pages on demand; without the --renderToDisk option, Hugo loads all documentation into memory for faster access.

docs's People

Contributors

allard-mx avatar connorland avatar dbreseman avatar ethan8621 avatar feddovanede avatar grootjans avatar iisaku avatar ilagordhan avatar isamu-tanaka avatar jandevriesmendix avatar jdiehl avatar jeltemx avatar johannahemminger avatar joostverhoog avatar karuna-mendix avatar katarzyna-koltun-mx avatar kevinvlaanderen avatar loket4 avatar luyao-zhang-1 avatar mariashaposhnikova avatar markvanments avatar natasakralj avatar nidhi251289 avatar quinntracy avatar r0b1n avatar smarki avatar strategicalliances avatar yiyun333 avatar zlogic avatar zwartd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.