Web: Webiste-Tools
Web: Webiste-Tools

none

Directory

Idees a implementer

Mathjax

Le site utilise MathJax pour génénrer le rendu des expressions mathématiques.

  • Expression within $...$ or \(...\) will be rendered inline.
  • Expression within $$...$$ or \[...\] or will be rendered in block.

In line: $f(x) = sin(x) + b^2$ Bloc:

Mermaid

Le site utilise mermaid pour générer des diagrames (Flow, Sequence, Gantt, UML).

Installation

  1. Download js code of mermaid: mermaid. ATM, the file is hosted here but it might change after update. We want the file named mermaid.min.js.
  2. Put this file into a folder named js in the root of the website.
  3. Open /_includes/head.html and add this line:
    <script src="/js/mermaid.min.js"></script>
    
  4. Now we can make nice graphs like this one:
graph TD; A-->B; A-->C; B-->D; C-->D;
<div class="mermaid">
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
</div>

We just need to put the graph code inside <div class="mermaid">...</div> tags.

Code chunk

python {cmd=true matplotlib=true} import matplotlib.pyplot as plt plt.plot([1,2,3, 4]) plt.show() # show figure

Plot 3

«««< HEAD

=======

0b9178d780ad152e6021e57be0007a443558e4b2