GithubHelp home page GithubHelp logo

omay238 / fabricmc.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fabricmc/fabricmc.net

0.0 0.0 0.0 24.98 MB

The source code and content for https://fabricmc.net/

License: MIT License

JavaScript 1.66% Ruby 1.34% PHP 8.30% TypeScript 44.10% Makefile 0.29% HTML 7.15% Dockerfile 0.27% SCSS 3.93% Svelte 32.97%

fabricmc.net's Introduction

fabricmc.net

This repository contains the source code and content for https://fabricmc.net/. Jekyll is used as the static site generator. A small TypeScript Svelte project located in /scripts powers the interactive parts of the site.

License

The code is licensed as MIT as detailed in LICENSE, unless otherwise indicated.

The contents of this website, unless otherwise indicated, are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Develop using Docker dev container.

Install Docker and VSCode on the host, no need to install NodeJS or Ruby on the host.

  • Open dev container with vscode
  • Run bundle install && bundler exec jekyll serve in a terminal
  • In a second terminal, run: cd scripts, npm i, npm run dev
  • http://localhost:4000/

Build

Prerequisites

Install Jekyll

Ensure that the Ruby dependencies are installed locally, not system-wide:

bundle config set --local path 'vendor/bundle'
bundle install 

From then on, run Jekyll using bundle exec jekyll <args> to use the local version.

Build JavaScript Assets

Install the JavaScript dependencies by running npm install in the javascript subdirectory.

Then build the JavaScript bundle using npm run build.

Build Site

bundle exec jekyll build

This will build the site into the _site folder.

Developing the Site

To run a local development server to more comfortably edit the site, run:

bundle exec jekyll serve

Then open http://localhost:4000 in your browser of choice. The site should update automatically as you change the files.

Docker

Used to build and run a production like server.

  • docker build -f Dockerfile.dev -t fabricmc-net .
  • docker run -p 8080:80 fabricmc.net
  • http://localhost:8080/

fabricmc.net's People

Contributors

apple502j avatar jamieswhiteshirt avatar juuxel avatar kevinthegreat1 avatar lino-levan avatar michaelhillcox avatar modmuss50 avatar shnupbups avatar tahmid-23 avatar tiphainelaurent 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.