diff --git a/.gitignore b/.gitignore index 6fdf8b91cf0ae36578ecc6ee2ae568d3b6b0bff4..400a50fccb68607502c35f7da6087d1a85f3979b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .idea/ *.iml *.iws +public \ No newline at end of file diff --git a/.gitlab-ci-local/.gitignore b/.gitlab-ci-local/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d6b7ef32c8478a48c3994dcadc86837f4371184d --- /dev/null +++ b/.gitlab-ci-local/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1be0bf741860f7dccd6a6a563adf3cc835fcbc4f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +variables: + WORKON_HOME: .pipenv/venvs + PIP_CACHE_DIR: .pipenv/pipcache + +# Make sure gitlab-ci knows to always cache the .pipenv path +cache: + key: pipenv + paths: + - .pipenv + +deploy_page: + image: python:3.11.5-bookworm + stage: deploy + script: + - pip install pipenv + - pipenv install + - pipenv run mkdocs build --strict --verbose -d public + artifacts: + paths: + - public \ No newline at end of file diff --git a/Pipfile b/Pipfile index 95d63eb8a66e559833563c789b8cc9b866269d39..e662061b74a3eb9945536ef9d2cbdfeac047ca1e 100644 --- a/Pipfile +++ b/Pipfile @@ -4,7 +4,7 @@ verify_ssl = true name = "pypi" [packages] -mkdocs-dsfr = "0.4.0" +mkdocs-dsfr = "0.5.0" mkdocs = "*" [dev-packages] diff --git a/README.md b/README.md index b082b3d02b3ea4fe141d4171e5e2b4e97d0002a1..6a272ad04fb3964c126c72156075505db86e9001 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Ce dépôt sert d'exemple pour le thème mkdocs-dsfr, un thème mkdocs conforme aux standards de l'État français pour la création de sites Web. +- Voir cet exemple sur [la page Gitlab](https://pub.gitlab-pages.din.developpement-durable.gouv.fr/numeco/mkdocs-dsfr-exemple) + ## Prérequis - [Python 3.x](https://www.python.org/downloads/)