GithubHelp home page GithubHelp logo

wamr.dev's Introduction

wamr.dev

Linux

https://bytecodealliance.github.io/wamr.dev

Folder structure

.
├── archetypes                      # used by hugo, no need to care
├── assets                          # used by hugo, no need to care
├── config                          # global configuration files, used by maintainer
├── content                         # all content stores here, authors only add file here
│   └── en                              # english content
│       └── blog                            # blog posts
│           └── wamr_blog_system                # article name
│               ├── image.png                   # image used by the article
│               └── index.md                    # article content
├── i18n                            # internationalization
│   ├── de.yaml
│   ├── en.yaml
│   └── nl.yaml
├── images                          # default images folder
│   └── tn.png
├── layouts                         # layout templates, used by maintainer
│   ├── ......
│   ├── 404.html
│   └── index.html
├── LICENSE
├── package.json
├── README.md
├── SECURITY.md
├── static
│   ├── ......
│   ├── fonts
│   ├── images
│   └── videos
└── theme.toml                      # theme configuration, used by maintainer

Get started

Writing blog

All the blogs should put under content/en/blog/

  • using hugo for local preview

    install hugo firstly, see the installation guide in site-development section

    # create new blog
    hugo new content/en/blog/<article_name>/index.md
    code content/en/blog/<article_name>/index.md
    # write the blog ...
    # local preview
    npm install
    npm run dev
    # Open browser and navigate to preview url ...
    # submit
  • without hugo

    code content/en/blog/<article_name>/index.md
    # write the blog ...
    # submit

Markdown front matter

Hugo use markdown front matter to get the article information, please ensure your index.md has the following content at the front:

---
title: "Your blog title"
description: "your blog description, may be used by search engine"
excerpt: "Same to description, but will displayed on the blog's introduction card"
date: 2022-10-12T21:27:24+08:00
lastmod: 2022-10-12T21:27:24+08:00
draft: false
weight: 50
images: ["image.jpg"]
categories: ["some_category"]
tags: []
contributors: ["your name"]
pinned: false
homepage: false
mermaid: true
---
  • title, excerpt, date, images, categories and contributors are used to display the cover of this blog

    • if images not provided, will use a default image with WebAssembly logo
  • draft must be false, otherwise this blog will not be displayed in the final page

  • mermaid should be true if you want to draw mermaid diagram in your blog

Add an event

Event is almost the same with a blog, it's separated just for management convenience.

The article folder under content/en/events/ will be treated as an event.

Event information

An event require these two additional fields in the markdown header:

  • event_date, the event date
  • event_location, the event location

There is no format rule, the raw string will be displayed on the final page.

Add a resource

Just add the resource link to content/en/resources/index.md

Site development

For site maintainer, please follow this guide to setup development environment.

  1. install hugo

    Please refer to hugo's doc for your OS

    For ubuntu you can use snap:

    snap install hugo --channel=extended

    If snap install failed, we can also try the released deb package

    wget https://github.com/gohugoio/hugo/releases/download/v0.104.3/hugo_extended_0.104.3_linux-amd64.deb
    sudo dpkg -i hugo_extended_0.104.3_linux-amd64.deb
  2. install dependencies

    npm install
  3. launch dev server

    npm run dev
    # This will launch a server and serve the blog as localhost:1313
  4. generate static site

    hugo --minify
  5. deployment

This site is deployed by Github Pages, simply submit the commit and open a PR, the page will automatically updated once PR is merge.

Acknowledgement

This site uses the hugo theme doks. LICENSE

wamr.dev's People

Contributors

fromliqg avatar loganek avatar lum1n0us avatar tianlongliang avatar wenyongh avatar xujuntwt95329 avatar xwang98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.