commit 04d63d40d5662ece2ec024adcb5cb8200abc42c6 Author: Simon Vieille Date: Sun Feb 12 22:01:30 2023 +0100 init diff --git a/.env b/.env new file mode 100644 index 0000000..c56e56a --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +LIVE_RELOAD_SUPPORT=true +ADD_MODULES= +DOCS_DIRECTORY=/app +FAST_MODE=false diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c36c42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.cache diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..520cdb2 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,32 @@ +pipeline: + build: + image: gitnet.fr/deblan/mkdocs + pull: true + commands: + - sed -i 's/# site_url/site_url/' mkdocs.yml + - mkdocs build + - git checkout mkdocs.yml + + update: + image: alpine/git + commands: + - git fetch --no-tags origin +refs/heads/pages + - git switch pages + - git config --global user.email ci@gitnet.fr + - git config --global user.name CI + - mv site /tmp/ + - rm * -fr + - mv /tmp/site/* . + - git add . + - git commit -m "Build ${CI_BUILD_NUMBER}" + + deploy: + image: appleboy/drone-git-push + commands: + settings: + branch: pages + remote: git@gitnet.fr:tinternet/doc.git + force: false + commit: false + ssh_key: + from_secret: ssh_priv_key diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ff837c4 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +serve: + docker run \ + -it --rm \ + -v $$(pwd):/app \ + --env-file ./.env \ + -p 8000:8000 \ + -w /app \ + gitnet.fr/deblan/mkdocs diff --git a/docs/_static/css/extra.css b/docs/_static/css/extra.css new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/docs/_static/css/extra.css @@ -0,0 +1 @@ + diff --git a/docs/_static/img/logo.png b/docs/_static/img/logo.png new file mode 100644 index 0000000..53eae46 Binary files /dev/null and b/docs/_static/img/logo.png differ diff --git a/docs/_static/img/logo.svg b/docs/_static/img/logo.svg new file mode 100644 index 0000000..c2dd0f9 --- /dev/null +++ b/docs/_static/img/logo.svg @@ -0,0 +1,140 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..7ae53e4 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,9 @@ +--- +hide: + - navigation + - toc +--- + +# L'association Tinternet & cie + +Basée à Besançon, Tinternet & Cie est une association d'éducation numérique populaire composée de professionnels du web et de l'éducation. Nous intervenons principalement dans les établissements scolaires de Franche-Comté et proposons des ateliers sur le secteur de Besançon. diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..4d10a6a --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,41 @@ +site_name: "Tinternet & cie" +# site_url: "https://tinternet.gitnet.page/doc/" + +plugins: + - search + - social + - autolinks + +extra: + generator: false + +theme: + name: material + logo: _static/img/logo.png + favicon: _static/img/logo.png + features: + - content.code.copy + - navigation.tabs + - navigation.footer + palette: + primary: "light blue" + scheme: slate + +markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + extend_pygments_lang: + - name: php-inline + lang: php + options: + startinline: true + - pymdownx.tabbed: + alternate_style: true + - pymdownx.magiclink + - pymdownx.snippets + - pymdownx.superfences + - pymdownx.highlight + - pymdownx.inlinehilite + +nav: + - Accueil: index.md