Git Product home page Git Product logo

docs's Introduction

Unikraft Site

Contents from this repository are published at "https://unikraft.org/" with sub-links available from the top bar:

The Unikraft site is written in Markdown and published via Hugo and the Docsy theme.

Build

You can build the site inside a Docker environment. For this, you will need to install Docker-CE. You can do that by following the instructions here, or by running:

Note: Building the site inside a Docker environment is highly recommended, since you will work in the same environment as the deployed site, so there will be no errors regarding packages version or filesystem layout.

curl -fsSL https://get.docker.com/ | sh

To then deploy the site, run:

$ make container
$ make devenv

# To be run inside the docker env
$ npm install
$ make serve

You may need admin privileges to run the first 2 commands.

You can also build the site natively. For a native build, you need to install hugo. You can do it by following the instructions here.

Then, to build and deploy the site, run:

$ hugo serve

Note: This may lead to errors due to different hugo versions or other environment problems. The problems can be avoided by building the webside inside a Docker environment. If you choose to build the site natively, make sure you use Hugo v0.98.0.

After building and deploying the site, hugo provides instructions on accessing and using it:

Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

Access the http://localhost:1313/ URL in the browser to view the site.

Tips, Tricks and Best Practices

If you are trying to add or update content on this repository, there are some things you should have in mind.

Referring pages and sections

You can refer to different pages and sections in the site by using paths starting from content/en directory. For example, say you want to add a reference to the development/booting page. Inside the repository, the file used to render the page can be found here, its location from the repository root being content/en/docs/develop/booting.md.

To achieve this, you can add the following line in your working .md page:

[your reference](docs/develop/booting)

givind the path of the file starting after the content/en directory.

You can also refer specific sections of one page by adding /#section to the end of the path. You can find the sections of a page listed on the rigth side of the page.

For example, a reference to the ARM section of the booting page would look like this:

[your reference](docs/develop/booting/#arm)

docs's People

Contributors

nderjung avatar razvand avatar stefanjum avatar radunichita avatar mariasfiraiala avatar craciunoiuc avatar gabrielmocanu avatar xymeng16 avatar razvanvirtan avatar cristian-vijelie avatar felipehuici avatar sairajkodilkar avatar hodapp87 avatar hlef avatar vladandrew avatar marcrittinghaus avatar gettsu avatar zyllee avatar h0lyalg0rithm avatar mogasergiu avatar lookfirst avatar olivierpierre avatar toast3rx avatar michpappas avatar mkroening avatar harshilbhatt2001 avatar gaulthiergain avatar fredrikbakken avatar foxeng avatar flpostolache 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.