From 7cbd2356653676c0f7169ae4ff73a6ef611cdb8c Mon Sep 17 00:00:00 2001
From: Adam Fekete <adam@fekete.co.uk>
Date: Mon, 12 Jun 2023 13:41:33 +0200
Subject: [PATCH] ci/cd + cleanup

---
 .gitlab-ci.yaml       | 15 +++++++++++++++
 .python-version       |  1 +
 .vscode/settings.json | 12 ++++++++++++
 mkdocs.yml            | 33 +++++++++++++++++++++++++++++++++
 requirements.txt      |  2 +-
 5 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 .gitlab-ci.yaml
 create mode 100644 .python-version
 create mode 100644 .vscode/settings.json
 create mode 100644 mkdocs.yml

diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml
new file mode 100644
index 0000000..633b942
--- /dev/null
+++ b/.gitlab-ci.yaml
@@ -0,0 +1,15 @@
+image: pyhton:3.9
+
+pages:
+  stage: deploy
+  before_script:
+    - pip install -r requirement.txt
+    - pip install -e '.[docs]'
+  script:
+    - mkdocs build --site-dir public
+  artifacts:
+    paths:
+      - public
+  # rules:
+  #   - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+
diff --git a/.python-version b/.python-version
new file mode 100644
index 0000000..bd28b9c
--- /dev/null
+++ b/.python-version
@@ -0,0 +1 @@
+3.9
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..5288ddc
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,12 @@
+{
+    "yaml.schemas": {
+      "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
+    },
+    "yaml.customTags": [
+      "!ENV scalar",
+      "!ENV sequence",
+      "tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
+      "tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
+      "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
+    ]
+  }
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000..b912154
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,33 @@
+# Project information
+site_name: Atomistic features package
+site_url: https://squidfunk.github.io/mkdocs-material/
+
+# Repository
+repo_name: atomic-features-package
+repo_url: https://gitlab.mpcdf.mpg.de/nomad-lab/ai-toolkit/atomic-features-package
+
+
+# Configuration
+theme:
+  name: material
+  icon:
+    repo: fontawesome/brands/gitlab
+
+
+# Plugins
+plugins:
+- search
+- mkdocstrings
+
+
+# Extensions
+markdown_extensions:
+ - pymdownx.snippets
+
+
+# Page tree
+nav:
+  - Home: index.md
+  - Getting started: getting_started.md
+  - Atomic features: atomicfeatures.md
+  - Metainfo: metainfo.md
diff --git a/requirements.txt b/requirements.txt
index acda1d5..dfc008a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 #
-# This file is autogenerated by pip-compile with python 3.10
+# This file is autogenerated by pip-compile with python 3.9
 # To update, run:
 #
 #    pip-compile pyproject.toml
-- 
GitLab