mirror of
https://github.com/pi-hole/docs.git
synced 2024-12-06 19:27:12 +01:00
Enable and use pymdownx.details extension
This fixes Markdown inside HTML which didn't work before.
This commit is contained in:
+2
-2
@@ -25,14 +25,14 @@
|
||||
"strong",
|
||||
"p",
|
||||
"sub",
|
||||
"table", "tbody", "th", "tr", "td",
|
||||
"details", "summary"
|
||||
"table", "tbody", "th", "tr", "td"
|
||||
]
|
||||
},
|
||||
"MD035": {
|
||||
"style": "---"
|
||||
},
|
||||
"MD036": false,
|
||||
"MD038": false,
|
||||
"MD040": false,
|
||||
"MD041": false,
|
||||
"MD045": false,
|
||||
|
||||
@@ -18,13 +18,12 @@ after your database modifications to have FTL flush its internal domain-blocking
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO "group" (id, name) VALUES (1, 'Group 1');
|
||||
INSERT INTO "group" (id, name) VALUES (2, 'Group 2');
|
||||
INSERT INTO "group" (id, name) VALUES (3, 'Group 3');
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO "group" (id, name) VALUES (1, 'Group 1');
|
||||
INSERT INTO "group" (id, name) VALUES (2, 'Group 2');
|
||||
INSERT INTO "group" (id, name) VALUES (3, 'Group 3');
|
||||
```
|
||||
|
||||
2. **Add three clients.**
|
||||
|
||||
@@ -32,25 +31,23 @@ after your database modifications to have FTL flush its internal domain-blocking
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO client (id, ip) VALUES (1, '192.168.0.101');
|
||||
INSERT INTO client (id, ip) VALUES (2, '192.168.0.102');
|
||||
INSERT INTO client (id, ip) VALUES (3, '192.168.0.103');
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO client (id, ip) VALUES (1, '192.168.0.101');
|
||||
INSERT INTO client (id, ip) VALUES (2, '192.168.0.102');
|
||||
INSERT INTO client (id, ip) VALUES (3, '192.168.0.103');
|
||||
```
|
||||
|
||||
3. **Link the clients to the created groups.** Don't forget to save each assignment by clicking on the corresponding green pen icon in the same row.
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (1, 1);
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (2, 2);
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (3, 3);
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (1, 1);
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (2, 2);
|
||||
INSERT INTO client_by_group (client_id, group_id) VALUES (3, 3);
|
||||
```
|
||||
|
||||
## Example 1: Exclude from blocking
|
||||
|
||||
@@ -58,11 +55,10 @@ after your database modifications to have FTL flush its internal domain-blocking
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
DELETE FROM client_by_group WHERE client_id = 1 AND group_id = 0;
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
DELETE FROM client_by_group WHERE client_id = 1 AND group_id = 0;
|
||||
```
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -83,11 +79,10 @@ All three clients got automatically assigned to the default (`Unassociated`) gro
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO adlist_by_group (adlist_id, group_id) VALUES (1,1);
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO adlist_by_group (adlist_id, group_id) VALUES (1,1);
|
||||
```
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -114,11 +109,10 @@ Add the domain to be blocked
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO domainlist (type, domain, comment) VALUES (1, 'blacklisted.com', 'Blacklisted for members of group 1');
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO domainlist (type, domain, comment) VALUES (1, 'blacklisted.com', 'Blacklisted for members of group 1');
|
||||
```
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -139,12 +133,11 @@ Assign this domain to group 1
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO domainlist_by_group (domainlist_id, group_id) VALUES (1, 1);
|
||||
```
|
||||
(the `domainlist_id` might be different for you, check with `SELECT last_insert_rowid();` after step 1)
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO domainlist_by_group (domainlist_id, group_id) VALUES (1, 1);
|
||||
```
|
||||
(the `domainlist_id` might be different for you, check with `SELECT last_insert_rowid();` after step 1)
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -164,12 +157,11 @@ Remove default assignment to all clients not belonging to a group
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
DELETE FROM domainlist_by_group WHERE domainlist_id = 1 AND group_id = 0;
|
||||
```
|
||||
(the `domainlist_id` might be different for you, see above)
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
DELETE FROM domainlist_by_group WHERE domainlist_id = 1 AND group_id = 0;
|
||||
```
|
||||
(the `domainlist_id` might be different for you, see above)
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -195,11 +187,10 @@ Add the domain to be whitelisted
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO domainlist (type, domain, comment) VALUES (0, 'doubleclick.net', 'Whitelisted for members of group 2');
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO domainlist (type, domain, comment) VALUES (0, 'doubleclick.net', 'Whitelisted for members of group 2');
|
||||
```
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -219,11 +210,10 @@ Remove default group assignment
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
DELETE FROM domainlist_by_group WHERE domainlist_id = 2 AND group_id = 0;
|
||||
```
|
||||
</details>
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
DELETE FROM domainlist_by_group WHERE domainlist_id = 2 AND group_id = 0;
|
||||
```
|
||||
|
||||
**Result**
|
||||
|
||||
@@ -243,13 +233,11 @@ Assign this domain to group 2
|
||||
|
||||

|
||||
|
||||
<details><summary>Raw database instructions</summary>
|
||||
```sql
|
||||
INSERT INTO domainlist_by_group (domainlist_id, group_id) VALUES (2, 2);
|
||||
```
|
||||
(the `domainlist_id` might be different for you, check with `SELECT last_insert_rowid();` after step 1)
|
||||
</details>
|
||||
|
||||
??? "Raw database instructions"
|
||||
```sql
|
||||
INSERT INTO domainlist_by_group (domainlist_id, group_id) VALUES (2, 2);
|
||||
```
|
||||
(the `domainlist_id` might be different for you, check with `SELECT last_insert_rowid();` after step 1)
|
||||
|
||||
**Result**
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ markdown_extensions:
|
||||
# This extension is a convenience extension which includes many pymdownx extensions
|
||||
# (https://facelessuser.github.io/pymdown-extensions/extensions/extra/)
|
||||
- pymdownx.extra
|
||||
# (https://facelessuser.github.io/pymdown-extensions/extensions/details/)
|
||||
- pymdownx.details
|
||||
# Adds syntax for defining footnotes in Markdown documents (https://python-markdown.github.io/extensions/footnotes/)
|
||||
- footnotes
|
||||
# Adds the ability to define abbreviations
|
||||
|
||||
Reference in New Issue
Block a user