This repository contains the source code for the MonoGame website. If you're looking for the documentation, visit the Documentation repository.
To build and run the MonoGame website locally, you will need
The MonoGame website is built using 11ty (Eleventy), a static site generator. To start working with the site on your local machine, follow these steps:
-
Clone this repository
git clone https://github.com/MonoGame/monogame.github.io.git
-
Install npm dependencies
In the root directory of the cloned repository, run:
npm install
-
Start the development server
To serve the site locally with hot-reloading, which allows you to see changes in real-time, use the following command
npm run dev
This will spin up a local server, the address of which will be shown in the console.
To generate a production-ready build of the site, run:
npm run build
This will generate the static HTML file in the _site
directory.
The MonoGame project is under the Microsoft Public License except for a few portions of the code. See the LICENSE file for more details.