Skip to content

ageyev/ageyev.github.io

Repository files navigation

International Law etc.

International Law etc. website code

How to use

MDX features

React Lite YouTube Embed can be used to insert a video from YouTube to .mdx file.

An example:


import LiteYouTubeEmbed from 'react-lite-youtube-embed';
import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css';

<LiteYouTubeEmbed
    id="WcPJUgz_bq4"
    title='Viktor Ageyev: How to overcome the "veto power" in the UN Security Council'
    noCookie={false}
/>

Importing Markdown ("partials")

component

Importing code snippets

link to assets (e.g. docx files, images...)

Admonitions. You can use MDX inside admonitions too.

Doc pages

Doc tags

Optionally, you can add tags to your doc pages, which introduces another dimension of categorization in addition to the docs sidebar. Tags are passed in the front matter as a list of labels:

---
id: doc-with-tags
title: A doc with tags
tags:
- Demo
- Getting started
--- 

Tags can also be declared with tags: [Demo, Getting started].

Blog

(.md) or {/* truncate */} (.mdx) marker

Blog front matter fields

Images

Illustrations for texts in 'docs' and 'blog' sections are stored in the corresponding folders in static/img/Illustrations