Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit 205eb5d

Browse files
committed
Add mkdocs-mdpo-plugin, mkdocs-material, and some config
I've been doing proof of concept experiments which often lead to messy commits with too many things in them to make sense. I will try harder to make more granular commits in the future I promise. :) * Add mkdocs-mdpo-plugin for localization of markdown content via gnutext PO files which are compatible with translatewiki.net workflows. * Add mkdocs-material theme as a base to customize from. * Add config for mkdocs theme and current extensions. * Custom CSS to apply Wikimedia colors to theme. * Placeholder quality translations to Spanish to show POC function.
1 parent 04d274e commit 205eb5d

File tree

6 files changed

+268
-1
lines changed

6 files changed

+268
-1
lines changed

docs/assets/css/theme.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root {
2+
--md-primary-fg-color: #3366CC; /* accent50 */
3+
--md-primary-fg-color--light: #EAF3FF; /* accent90 */
4+
--md-primary-fg-color--dark: #2A4B8D; /* accent30 */
5+
--md-text-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif;
6+
}

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
Learn about, interact with, and contribute to the open source technology that
44
powers [Wikipedia](https://www.wikipedia.org/) and other [Wikimedia projects](https://wikimediafoundation.org/our-work/wikimedia-projects/).
5+
6+
Hello world!
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
msgid ""
3+
msgstr ""
4+
5+
msgid "Discover Wikimedia technical documentation and communities"
6+
msgstr "Descubra la documentación técnica y las comunidades de Wikimedia"
7+
8+
msgid ""
9+
"Learn about, interact with, and contribute to the open source technology "
10+
"that powers [Wikipedia](https://www.wikipedia.org/) and other [Wikimedia "
11+
"projects](https://wikimediafoundation.org/our-work/wikimedia-projects/)."
12+
msgstr ""
13+
"Conozca, interactúe y contribuya a la tecnología de código abierto que "
14+
"impulsa a [Wikipedia](https://www.wikipedia.org/) y otros [proyectos de "
15+
"Wikimedia](https://wikimediafoundation.org/our-work/wikimedia-projects/)."
16+
17+
msgid "Hello world!"
18+
msgstr "¡Hola Mundo!"
19+
20+
msgid "Permanent link"
21+
msgstr "Enlace Permanente"

mkdocs.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,62 @@
11
site_name: Wikimedia Developer Portal
2+
site_url: https://developer.wikimedia.org/
3+
site_description: Portal for discovering technical documentation about Wikimedia projects
4+
site_author: Wikimedia Foundation and contributors
5+
copyright: Copyright © 2021 Wikimedia Foundation and contributors
6+
7+
docs_dir: docs
8+
theme:
9+
name: material
10+
language: en
11+
font: false
12+
palette:
13+
- media: "(prefers-color-scheme: light)"
14+
scheme: default
15+
toggle:
16+
icon: material/lightbulb-outline
17+
name: Switch to dark mode
18+
- media: "(prefers-color-scheme: dark)"
19+
scheme: slate
20+
toggle:
21+
icon: material/lightbulb
22+
name: Switch to light mode
23+
features:
24+
- navigation.instant
25+
- navigation.tracking
26+
- navigation.tabs
27+
- navigation.sections
28+
- toc.integrate
29+
- navigation.top
30+
- search.share
31+
32+
extra_css:
33+
- assets/css/theme.css
34+
#extra_javascript:
35+
# - assets/js/extra.js
36+
37+
extra:
38+
alternate:
39+
- name: English
40+
lang: en
41+
- name: Español
42+
link: /es/
43+
lang: es
44+
45+
markdown_extensions:
46+
- meta
47+
- toc:
48+
permalink: true
49+
toc_depth: 3
50+
- tables
51+
- fenced_code
52+
- attr_list
53+
- pymdownx.highlight
54+
- pymdownx.superfences
55+
- pymdownx.inlinehilite
56+
57+
plugins:
58+
- search:
59+
lang: en
60+
- mdpo:
61+
locale_dir: locale
62+
lc_messages: true

0 commit comments

Comments
 (0)