MkDocs+Gitlab setup

Simó Albert i Beltran 2021-02-22 15:43:07 +01:00
commit 0513faafd4
6 changed files with 37 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public

4
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,4 @@
include:
- project: 'pages/mkdocs'
ref: 'master'
file: '/.gitlab-ci.yml'

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# DigitalDemocratic Documentation
This documentation is writed in Markdown using [MkDocs+Gitlab](https://gitlab.com/pages/mkdocs).
See `docs` directory for Markdown files or the [auto-built site](https://digitaldemocratic.gitlab.io/digitaldemocratic).

3
docs/index.md Normal file
View File

@ -0,0 +1,3 @@
# Welcome
This site is built by [MkDocs+Gitlab](https://gitlab.com/pages/mkdocs). You can [browse its source code](https://gitlab.com/digitaldemocratic/digitaldemocratic).

22
mkdocs.yml Normal file
View File

@ -0,0 +1,22 @@
site_name: DigitalDemocratic Documentation
site_dir: public
repo_url: https://gitlab.com/digitaldemocratic/digitaldemocratic
theme:
name: material
features:
- toc.integrate
plugins:
- search
- enumerate-headings
- i18n:
languages:
ca: "Català"
es: "Castellano"
en: "English"
default_language: 'en'
no_translation:
ca: "Aquesta pàgina no està traduida al català."
en: "This page isn't translated to English."
es: "Esta página no está traducida al castellano."

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
mkdocs-i18n
mkdocs-enumerate-headings-plugin