From 6ee5db598748cff766687a2762157700345a0c1a Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 31 Oct 2023 15:54:28 +0100 Subject: [PATCH] extend examples --- papyri/examples.py | 60 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/papyri/examples.py b/papyri/examples.py index f542ef17..e80d7b08 100644 --- a/papyri/examples.py +++ b/papyri/examples.py @@ -1,7 +1,7 @@ """" -Examples Modules ----------------- +Examples Modules Heading 1 +========================== This module contains examples, none of the functions, classes or other attribute should have any effects when called. @@ -37,6 +37,62 @@ Definition 2, paragraph 2. +.. note:: + + An admonition note ! + +This is a link to `Jupyter website `__ + +Code (title 2) +-------------- + +.. code:: + + from package import module + module.call("string") + +Math +---- + + +.. math:: + + \pi = 3.14159 + + +""" + +""" + +term +: definition + +## Math + + +## Figures + +```{figure} https://via.placeholder.com/150 +:width: 100px +:align: center + +Figure caption +``` + +## Tables + +```{list-table} +:header-rows: 1 +:align: center + +* - Header 1 + - Header 2 +* - Item 1 a + - Item 2 a +* - Item 1 b + - Item 2 b +``` + """ from typing import Optional, Union