Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
davy39 committed Oct 24, 2023
0 parents commit 99b7f1e
Show file tree
Hide file tree
Showing 2,905 changed files with 10,600 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-documentations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- master

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYTHONPATH: ${{github.workspace}}
CUSTOM_DOMAIN: docu.lycee-experimental.org
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
# GITHUB_DOMAIN: github.myenterprise.com
REQUIREMENTS: mkdocs-pip.txt
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# docs
docs-build
.idea
__pycache__/
__pycache__/main.cpython-38.pyc
.vscode/settings.json
44 changes: 44 additions & 0 deletions children_toc_extension.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
from markdown.extensions.toc import TocExtension
from markdown.treeprocessors import Treeprocessor
from markdown.extensions import Extension

class ChildTocTreeprocessor(Treeprocessor):
def __init__(self, page):
self.page = page
super().__init__()

def run(self, root):
# Get the current page
page = self.page
if not page or not page.children:
return

# Create a new TOC extension
toc_extension = TocExtension()

# Generate a TOC for each child page and insert it into the parse tree
for child_page in page.children:
child_toc = toc_extension.build_toc_tree(child_page.content)
if child_toc:
toc_heading = self.md.htmlStash.store('<h2>{}</h2>'.format(child_page.title))
child_toc.insert(0, toc_heading)
root.append(child_toc)

class ChildTocExtension(Extension):
def __init__(self, page=None, title='Child Pages', **kwargs):
self.config = {
'title': [title, 'Title to display above child page TOCs']
}
self.page = page
super().__init__(**kwargs)

def extendMarkdown(self, md):
md.registerExtension(self)
md.treeprocessors.register(ChildTocTreeprocessor(self.page), 'childtoc', 25)

# Add the title to the global TOC
title = self.getConfig('title')[0]
toc = md.toc
toc = toc.replace('</nav>', '</nav><h2>{}</h2>'.format(title))
md.toc = toc

2 changes: 2 additions & 0 deletions custom_fences.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def custom_formatter(source, language, css_class, options, md, classes=None, id_value='', attrs=None, **kwargs):
return '```'+css_class+'\n'+source+'\n```'
Binary file added docs/assets/images/SSEM.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/Z1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/abaqueBoulier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/abaqueIndien.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/abaqueRomain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/adaLovelace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
258 changes: 258 additions & 0 deletions docs/assets/images/additionneur.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/anticythere.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/arithmometre.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/atanasoffBerry.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/construction-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/edsac.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/eniac.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/harvardMarkI.webp
Binary file not shown.
Binary file added docs/assets/images/intelP4004.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/lorenz.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/machineAnalytiqueBabbage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/machineLeibniz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/metierBouchon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/metierJacquard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/123_machines.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/124_microbit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/1297_Selection_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/132_tabverite1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/1333_cygnes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/1433_Von Neumann.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/qcm/1437_Jeu instruc.png
Binary file added docs/assets/images/qcm/1519_algo_gecif.PNG
Binary file added docs/assets/images/qcm/151_circuit1.png
Binary file added docs/assets/images/qcm/152_circuit2.png
Binary file added docs/assets/images/qcm/1533_arbre1.png
Binary file added docs/assets/images/qcm/1533_arbreBinaire.png
Binary file added docs/assets/images/qcm/1535_arbre2.png
Binary file added docs/assets/images/qcm/1536_arbre3.png
Binary file added docs/assets/images/qcm/1552_localroads.png
Binary file added docs/assets/images/qcm/1554_matrice_graphebis.png
Binary file added docs/assets/images/qcm/1555_doc363_it1.png
Binary file added docs/assets/images/qcm/1556_grapheSocial.png
Binary file added docs/assets/images/qcm/1603_tvNAND.png
Binary file added docs/assets/images/qcm/1604_circuit1.png
Binary file added docs/assets/images/qcm/1611_tri_insertion.png
Binary file added docs/assets/images/qcm/1611_tri_mystere.png
Binary file added docs/assets/images/qcm/1707_QCM3.png
Binary file added docs/assets/images/qcm/1708_QCM3-2.png
Binary file added docs/assets/images/qcm/1759_q6.jpg
Binary file added docs/assets/images/qcm/1760_q7.jpg
Binary file added docs/assets/images/qcm/1778_Edgar_F_Codd.jpg
Binary file added docs/assets/images/qcm/1793_arbre.png
Binary file added docs/assets/images/qcm/1794_qcmimg1.png
Binary file added docs/assets/images/qcm/1795_qcmimg1.png
Binary file added docs/assets/images/qcm/1796_qcmimg1.png
Binary file added docs/assets/images/qcm/1833_Chaine.jpg
Binary file added docs/assets/images/qcm/1834_graphviz_3.png
Binary file added docs/assets/images/qcm/1844_question-form1.png
Binary file added docs/assets/images/qcm/1862_QCM1_min_abs_abs.png
Binary file added docs/assets/images/qcm/1871_float_left.png
Binary file added docs/assets/images/qcm/1933_ascii-table.png
Binary file added docs/assets/images/qcm/214_knn.png
Binary file added docs/assets/images/qcm/256_glouton1.png
Binary file added docs/assets/images/qcm/322_838_ada.jpg
Binary file added docs/assets/images/qcm/33_turing.jpg
Binary file added docs/assets/images/qcm/340_AND.png
Binary file added docs/assets/images/qcm/341_OR.png
Binary file added docs/assets/images/qcm/342_NO.png
Binary file added docs/assets/images/qcm/343_xor.png
Binary file added docs/assets/images/qcm/344_NO AND.png
Binary file added docs/assets/images/qcm/345_NOR SANS LETTRE.png
Binary file added docs/assets/images/qcm/347_table XOR.png
Binary file added docs/assets/images/qcm/348_ex3.png
Binary file added docs/assets/images/qcm/349_additionneur.png
Binary file added docs/assets/images/qcm/34_turing.jpg
Binary file added docs/assets/images/qcm/369_img.png
Binary file added docs/assets/images/qcm/443_arborescence2.png
Binary file added docs/assets/images/qcm/444_arborescence2.png
Binary file added docs/assets/images/qcm/597_233hCS.png
Binary file added docs/assets/images/qcm/729_reseau.jpg
Binary file added docs/assets/images/qcm/74_von_neumann.png
Binary file added docs/assets/images/qcm/813_graphe.png
Binary file added docs/assets/images/qcm/938_genumsi.png
Binary file added docs/assets/images/switchShannon.png
Binary file added docs/assets/images/z3.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 99b7f1e

Please sign in to comment.