Coder Social home page Coder Social logo

miking-lang.github.io's Introduction

Miking Website

This repository contains the source code for the Miking website https://miking.org. Most of the content lives in markdown files located in other repositories, such as miking-lang/miking and miking-lang/miking-dppl, whereas this repository contains pictures, document structure, and source code.

The master branch contains the source code for the official Miking website. The website is deployed through the gh-pages branch. Hence, we should only commit changes to the masterbranch.

The website is built using Docusaurus 2, a modern static website generator.

Installation

Install Node.js on your computer.

Run command

npm install

to install all dependent packages (including the Docusaurus libraries).

Pull remote source files

Run the command

$ npm run pull

to populate the docs/ folder with remote Markdown content.

To add remote content, follow the procedure below.

  1. Add a placeholder file _<id>-remote.md somewhere under the docs/ folder. This file is ignored by Docusaurus as it starts with _.
  2. Add an element
    {url: <url>, remotePath: <rpath>, localPath: <lpath>},
    
    to the remoteDocs array of pull.js, where <url> is the GitHub repo, <rpath> is the path of the source file in <url>, and <lpath> is the local path under the docs/ folder. Use only <id> for the local path file name, and not _<id>-remote.md.
  3. Now, when you run npm run pull, the remote file is combined with the local placeholder _<id>-remote.md to produce a file <id>-remote.md. This produced file is ignored by git.

Local Development

$ npm run start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Use

$ npm run deploy

to deploy to the gh-pages branch. If the command fails and asks you to set the GIT_USER environment variable, try running

$ USE_SSH=true npm run deploy

instead. You can also set the GIT_USER variable if you want to use HTTPS to deploy. In such a case, run

$ GIT_USER=user_name npm run deploy

where user_name is your Github user name.

More information can be found here.

miking-lang.github.io's People

Contributors

david-broman avatar dlunde avatar elegios avatar johnwikman 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.