diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 373acccf3d066b3b160d9be72090489216cdadae..607022ff77f1765e336fc7b33e2d3f18e81ad42b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: GIT_STRATEGY: fetch - GIT_DEPTH: 1 + GIT_DEPTH: 0 # Git revision date plugin # Builds the static website with MkDocs. The whole sequence of command is # implemented into the before_script section for enhanced composability. diff --git a/README.md b/README.md index 8cbfc799cfc1fec42bfd1b112992078f0619c961..354a675843b8e17f86645665f72b0829ae804536 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,8 @@ Prepare your environment: ``` bash python3 -m venv pyvenv -source pyvenv/bin/activate -python3 -m pip install --upgrade pip -python3 -m pip install -r requirements.txt -deactivate +pyvenv/bin/pip install --upgrade pip +pyvenv/bin/pip install -r requirements.txt ``` Start a local web server to visualize your changes: diff --git a/mkdocs.yml b/mkdocs.yml index d95349a682e8e8c3a4f15315e658b105130c6e47..279a1a4c43f2e7181ce9ce5c11eba84af89b2472 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ site_name: CMS GEM DAQ Documentation site_url: https://cmsgemonline.web.cern.ch/doc/latest repo_url: https://gitlab.cern.ch/cmsgemonline/gem-ops/gem-daq-doc -repo_name: gem-daq-doc +repo_name: GitLab edit_uri: edit/main/docs/ theme: @@ -12,6 +12,8 @@ theme: - navigation.sections - navigation.tabs - navigation.top + icon: + repo: fontawesome/brands/gitlab markdown_extensions: - admonition @@ -28,6 +30,10 @@ extra_javascript: - https://polyfill.io/v3/polyfill.min.js?features=es6 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js +plugins: + - git-revision-date-localized + - search + nav: - Getting started: - index.md diff --git a/requirements.txt b/requirements.txt index a4df8bf3e2462909b5e1fd6f1fb3719595bca8c2..3a0add1a6ab2ebc9ba9002fae996bd4d3312ea64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ mkdocs-material==8.4.2 +mkdocs-git-revision-date-localized-plugin==1.2.0