Skip to content

Commit 2e9b187

Browse files
Merge branch 'master' into feature/42
2 parents 1305a45 + 6a99714 commit 2e9b187

Some content is hidden

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

57 files changed

+2727
-2127
lines changed

LAST_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.9
1+
0.1.0

LICENSE

Lines changed: 674 additions & 21 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ We use GitHub issues for tracking bugs and feature requests and have limited ban
5858
- ⚠️ SECURITY
5959
6060
## License
61-
![GitHub](https://img.shields.io/github/license/FernandoCelmer/mkdocs-simple-blog?style=flat-square)
61+
![GitHub License](https://img.shields.io/github/license/FernandoCelmer/mkdocs-simple-blog)
6262
63-
This project is licensed under the terms of the MIT license.
63+
This project is licensed under the terms of the GNU General Public License v3.0.

docs/assets/custom.js

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
let t = {
3+
dark: {
4+
"--text": "white",
5+
"--title": "white",
6+
"--primary": "white",
7+
"--background": "black",
8+
},
9+
light: {
10+
"--text": "black",
11+
"--title": "black",
12+
"--primary": "black",
13+
"--background": "white",
14+
},
15+
};
16+
[...document.querySelectorAll(".color-button")].forEach((e) => {
17+
e.addEventListener("click", () => {
18+
let n = t[e.dataset.theme];
19+
for (var r in n) document.documentElement.style.setProperty(r, n[r]);
20+
});
21+
});
22+
23+
var e = document.querySelectorAll("button[color-primary]");
24+
e.forEach(function (t) {
25+
t.addEventListener("click", function () {
26+
var t = this.getAttribute("color-primary");
27+
document.documentElement.style.setProperty("--primary", t);
28+
});
29+
});
30+
31+
var e = document.querySelectorAll("button[color-text]");
32+
e.forEach(function (t) {
33+
t.addEventListener("click", function () {
34+
var t = this.getAttribute("color-text");
35+
document.documentElement.style.setProperty("--text", t);
36+
});
37+
});
38+
39+
var e = document.querySelectorAll("button[color-title]");
40+
e.forEach(function (t) {
41+
t.addEventListener("click", function () {
42+
var t = this.getAttribute("color-title");
43+
document.documentElement.style.setProperty("--title", t);
44+
});
45+
});
46+
47+
var e = document.querySelectorAll("button[color-background]");
48+
e.forEach(function (t) {
49+
t.addEventListener("click", function () {
50+
var t = this.getAttribute("color-background");
51+
document.documentElement.style.setProperty("--background", t);
52+
});
53+
});
54+
55+
var e = document.querySelectorAll("button[style-site-name]");
56+
e.forEach(function (t) {
57+
t.addEventListener("click", function () {
58+
var t = this.getAttribute("style-site-name");
59+
(title = document.getElementById("component-site-name").classList).remove(
60+
"bold"
61+
),
62+
title.remove("italic"),
63+
title.remove("scratched"),
64+
title.remove("underline"),
65+
title.remove("overline"),
66+
title.add(t);
67+
});
68+
});
69+
70+
var e = document.querySelectorAll("button[style-title]");
71+
e.forEach(function (t) {
72+
t.addEventListener("click", function () {
73+
var t = this.getAttribute("style-title");
74+
(title = document.getElementById("component-title").classList).remove(
75+
"bold"
76+
),
77+
title.remove("italic"),
78+
title.remove("scratched"),
79+
title.remove("underline"),
80+
title.remove("overline"),
81+
title.add(t);
82+
});
83+
});
84+
85+
var e = document.querySelectorAll("button[component-id]");
86+
e.forEach(function (t) {
87+
t.addEventListener("click", function () {
88+
var t = this.getAttribute("component-id"),
89+
e = this.getAttribute("status");
90+
document.getElementById(t).hidden = JSON.parse(e);
91+
});
92+
});
93+
94+
var e = document
95+
.getElementById("sidebar-true")
96+
.addEventListener("click", function () {
97+
document.getElementById("component-sidebar").style.display = null;
98+
document
99+
.getElementById("component-sidebar")
100+
.classList.replace("col-0", "col-3");
101+
document
102+
.getElementById("component-content")
103+
.classList.replace("col-12", "col-9");
104+
});
105+
106+
var e = document
107+
.getElementById("sidebar-false")
108+
.addEventListener("click", function () {
109+
document.getElementById("component-sidebar").style.display = "none";
110+
document
111+
.getElementById("component-sidebar")
112+
.classList.replace("col-3", "col-0");
113+
document
114+
.getElementById("component-content")
115+
.classList.replace("col-9", "col-12");
116+
});
117+
});

docs/assets/simple-blog.png

306 KB
Loading

docs/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Jan 15, 2024
1+
# Home
2+
3+
February 4, 2025
24

35
---
46

@@ -20,23 +22,23 @@ docs/
2022
... # Other markdown pages, images and other files.
2123
```
2224

23-
### Installation MkDocs
25+
## Installation MkDocs
2426

2527
To install MkDocs, run the following command from the command line:
2628

2729
```bash
2830
pip install mkdocs
2931
```
3032

31-
### Installation theme
33+
## Installation theme
3234

3335
Install the theme using PIP:
3436

3537
```bash
3638
pip install mkdocs-simple-blog
3739
```
3840

39-
### Activating theme
41+
## Activating theme
4042

4143
After the theme is installed, edit your `mkdocs.yml` file and set the theme name to `simple-blog`:
4244

@@ -67,6 +69,6 @@ We use GitHub issues for tracking bugs and feature requests and have limited ban
6769
- ⚠️ SECURITY
6870
6971
## License
70-
![GitHub](https://img.shields.io/github/license/FernandoCelmer/mkdocs-simple-blog?style=flat-square)
72+
![GitHub License](https://img.shields.io/github/license/FernandoCelmer/mkdocs-simple-blog)
7173
72-
This project is licensed under the terms of the MIT license.
74+
This project is licensed under the terms of the GNU General Public License v3.0.

docs/nav/components/footer.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Footer
2+
3+
January 28, 2025
4+
5+
---
6+
## Enable and Disable
7+
8+
- Default: true
9+
10+
```yml
11+
theme:
12+
components:
13+
footer: true
14+
```
15+
16+
<button component-id="component-footer" status="false"><code>true</code></button>
17+
<button component-id="component-footer" status="true"><code>false</code></button>

docs/nav/components/preview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Preview
2+
3+
January 28, 2025
4+
5+
---
6+
## Enable and Disable
7+
8+
- Default: true
9+
10+
```yml
11+
theme:
12+
components:
13+
preview: true
14+
```
15+
16+
<button component-id="component-preview" status="false"><code>true</code></button>
17+
<button component-id="component-preview" status="true"><code>false</code></button>

docs/nav/components/sidebar.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Sidebar
2+
3+
January 28, 2025
4+
5+
---
6+
7+
## How to activate?
8+
9+
- Default: false
10+
11+
```yml
12+
theme:
13+
sidebar: false
14+
```
15+
16+
<button id="sidebar-true"><code>true</code></button>
17+
<button id="sidebar-false"><code>false</code></button>
18+
19+
## Navigation depth
20+
21+
- Default: 2
22+
23+
```yml
24+
theme:
25+
navigation_depth: 2
26+
```

docs/nav/components/site-name.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Site Name
2+
3+
January 28, 2025
4+
5+
---
6+
## Enable and Disable
7+
8+
- Default: true
9+
10+
```yml
11+
theme:
12+
components:
13+
site_name: true
14+
```
15+
16+
<button component-id="component-site-name" status="false"><code>true</code></button>
17+
<button component-id="component-site-name" status="true"><code>false</code></button>
18+
19+
## Changing the fonts
20+
21+
- Default: normal
22+
23+
```yml
24+
theme:
25+
site_name_style: normal
26+
```
27+
28+
<button style-site-name="normal">
29+
<code class="normal" style="background: var(--color-white) !important; color: #000000 !important;">normal</code>
30+
</button>
31+
<button style-site-name="bold">
32+
<code class="bold" style="background: var(--color-white) !important; color: #000000 !important;">bold</code>
33+
</button>
34+
<button style-site-name="italic">
35+
<code class="italic" style="background: var(--color-white) !important; color: #000000 !important;">italic</code>
36+
</button>
37+
<button style-site-name="scratched">
38+
<code class="scratched" style="background: var(--color-white) !important; color: #000000 !important;">scratched</code>
39+
</button>
40+
<button style-site-name="underline">
41+
<code class="underline" style="background: var(--color-white) !important; color: #000000 !important;">underline</code>
42+
</button>
43+
<button style-site-name="overline">
44+
<code class="overline" style="background: var(--color-white) !important; color: #000000 !important;">overline</code>
45+
</button>

0 commit comments

Comments
 (0)