Skip to content

Commit 210b6ec

Browse files
Initial commit
0 parents  commit 210b6ec

File tree

1,346 files changed

+249138
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,346 files changed

+249138
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: 3.x
21+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- uses: actions/cache@v4
23+
with:
24+
key: mkdocs-material-${{ env.cache_id }}
25+
path: ~/.cache
26+
restore-keys: |
27+
mkdocs-material-
28+
- run: pip install mkdocs-material
29+
- run: mkdocs gh-deploy --force

docs/index.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# MkDocs Material Template
2+
3+
A complete starter template showcasing **all major MkDocs Material features**.
4+
5+
---
6+
7+
## ✨ Included Examples
8+
9+
- Admonitions
10+
- Tabs
11+
- Code blocks
12+
- Tables
13+
- Diagrams
14+
- Icons & Emojis
15+
16+
# Code Blocks
17+
18+
## Basic Code Block
19+
20+
```python
21+
def hello():
22+
print("Hello, MkDocs!")
23+
24+
---
25+
26+
## 4️⃣ Tabs Example (`markdown/tabs.md`)
27+
28+
```md
29+
# Tabs
30+
31+
=== "Python"
32+
```python
33+
print("Hello from Python")
34+
```
35+
36+
=== "JavaScript"
37+
```js
38+
console.log("Hello from JavaScript");
39+
```
40+
41+
=== "Bash"
42+
```bash
43+
echo "Hello from Bash"
44+
```
45+
# Tables
46+
47+
| Feature | Supported |
48+
|--------|-----------|
49+
| Tabs ||
50+
| Icons ||
51+
| Diagrams ||
52+
53+
54+
# Icons & Emojis
55+
56+
## Icons
57+
58+
:material-home: Home
59+
:material-github: GitHub
60+
61+
## Emojis
62+
63+
:rocket: :fire:
64+
65+
66+
# Diagrams
67+
68+
```mermaid
69+
graph TD
70+
A[User] --> B[MkDocs]
71+
B --> C[Material Theme]
72+

mkdocs.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
site_name: My site
2+
site_url: https://mydomain.org/mysite
3+
4+
repo_name: squidfunk/mkdocs-material
5+
repo_url: https://github.com/squidfunk/mkdocs-material
6+
7+
theme:
8+
name: material
9+
logo: assets/logo.png
10+
favicon: images/favicon.png
11+
12+
features:
13+
- navigation.instant
14+
- navigation.instant.prefetch
15+
- navigation.instant.progress
16+
- navigation.tracking
17+
- navigation.path
18+
- navigation.top
19+
- navigation.footer
20+
- search.highlight
21+
- search.suggest
22+
- search.share
23+
- content.code.copy
24+
- content.code.annotate
25+
26+
font:
27+
text: Roboto
28+
code: Roboto Mono
29+
30+
palette:
31+
- media: "(prefers-color-scheme)"
32+
toggle:
33+
icon: material/brightness-auto
34+
name: Switch to light mode
35+
36+
- media: "(prefers-color-scheme: light)"
37+
scheme: default
38+
toggle:
39+
icon: material/brightness-7
40+
name: Switch to dark mode
41+
42+
- media: "(prefers-color-scheme: dark)"
43+
scheme: slate
44+
toggle:
45+
icon: material/brightness-4
46+
name: Switch to system preference
47+
48+
plugins:
49+
- search
50+
51+
extra:
52+
social:
53+
- icon: fontawesome/brands/mastodon
54+
link: https://fosstodon.org/@squidfunk
55+
56+
consent:
57+
title: Cookie consent
58+
description: >-
59+
We use cookies to recognize your repeated visits and preferences, as well
60+
as to measure the effectiveness of our documentation.
61+
62+
analytics:
63+
provider: google
64+
property: G-XXXXXXXXXX
65+
66+
feedback:
67+
title: Was this page helpful?
68+
ratings:
69+
- icon: material/emoticon-happy-outline
70+
name: This page was helpful
71+
data: 1
72+
note: Thanks for your feedback!
73+
74+
- icon: material/emoticon-sad-outline
75+
name: This page could be improved
76+
data: 0
77+
note: >-
78+
Thanks for your feedback! Help us improve this page using our
79+
<a href="..." target="_blank" rel="noopener">feedback form</a>.
80+
81+
markdown_extensions:
82+
- attr_list
83+
- tables
84+
- md_in_html
85+
86+
- pymdownx.inlinehilite
87+
- pymdownx.snippets
88+
- pymdownx.blocks.caption
89+
90+
- pymdownx.highlight:
91+
anchor_linenums: true
92+
line_spans: __span
93+
pygments_lang_class: true
94+
95+
- pymdownx.tabbed:
96+
alternate_style: true
97+
98+
- pymdownx.superfences:
99+
custom_fences:
100+
- name: mermaid
101+
class: mermaid
102+
format: !!python/name:pymdownx.superfences.fence_code_format

0 commit comments

Comments
 (0)