Skip to content

Commit

Permalink
Add inital mkdocs config and overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
FarisZR committed Mar 26, 2024
1 parent b6f23a3 commit fda1553
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 0 deletions.
81 changes: 81 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
site_name: أسس ترجمة
site_url: https://translation.aosus.org
repo_name: aosus/translation.aosus.org
repo_url: https://github.com/aosus/translation.aosus.org
site_description: صفحة مخصصه لجهود البرمجة في مجتمع أسس.
docs_dir: source

plugins:
- autolinks
- search
- git-revision-date-localized:
type: timeago
- minify:
minify_html: true

theme:
name: material
custom_dir: overrides
logo: images/Discourse_Bridge.webp
icon:
repo: fontawesome/brands/github
font: false
features:
- search.suggest
- search.highlight
- content.tabs.link
- navigation.instant
- navigation.tracking
- toc.integrate
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
primary: green
accent: blue

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
primary: green
accent: blue


extra:
alternate:
- name: English
link: /
lang: en

- name: العربية
link: /ar/
lang: ar

social:
- icon: fontawesome/brands/github
link: https://github.com/aosus
- icon: fontawesome/brands/twitter
link: https://twitter.com/2linuxorg
- icon: fontawesome/brands/mastodon
link: https://mastodon.online/@aosus
- icon: fontawesome/brands/telegram
link: https://t.me/aosus
- icon: matrix
link: https://matrix.to/#/#aosus:aosus.org
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/company/aosus/

markdown_extensions:
- admonition

extra_css:
- extra.css

nav:
- الرئيسية: "index.md"
52 changes: 52 additions & 0 deletions overrides/.icons/matrix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions overrides/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import url("https://aosus.org/fonts/fonts.css");

:root {
--md-text-font: "Almarai";
}
5 changes: 5 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}

{% block analytics %}
<script defer data-domain="translation.aosus.org" src="https://pa.aosus.org/js/pls4.js"></script>
{% endblock %}

0 comments on commit fda1553

Please sign in to comment.