-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:laws-africa/peachjam
- Loading branch information
Showing
12 changed files
with
978 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.20 on 2023-11-20 10:34 | ||
|
||
import martor.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("peachjam", "0112_peachjamsettings_pagerank_pivot_value"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="book", | ||
name="content_markdown", | ||
field=martor.models.MartorField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,7 @@ | |
"polymorphic", | ||
"drf_spectacular", | ||
"django_advanced_password_validation", | ||
"martor", | ||
] | ||
|
||
MIDDLEWARE = [ | ||
|
@@ -508,6 +509,8 @@ | |
"Underline", | ||
"Strike", | ||
"Blockquote", | ||
"Superscript", | ||
"Subscript", | ||
"SpellChecker", | ||
"Undo", | ||
"Redo", | ||
|
@@ -568,3 +571,20 @@ | |
# Each item in the list should be a tuple of (Full name, email address). Example: | ||
# [('Someone', '[email protected]')] | ||
ADMINS = [] | ||
|
||
# django-markdown-editor | ||
# https://github.com/agusmakmun/django-markdown-editor | ||
MARTOR_UPLOAD_URL = "" | ||
MARTOR_SEARCH_USERS_URL = "" | ||
MARTOR_ENABLE_LABEL = True | ||
MARTOR_ENABLE_CONFIGS = { | ||
"emoji": "true", # to enable/disable emoji icons. | ||
"imgur": "false", # to enable/disable imgur/custom uploader. | ||
"mention": "false", # to enable/disable mention | ||
"jquery": "true", # to include/revoke jquery (require for admin default django) | ||
"living": "false", # to enable/disable live updates in preview | ||
"spellcheck": "false", # to enable/disable spellcheck in form textareas | ||
"hljs": "false", # to enable/disable hljs highlighting in preview | ||
} | ||
# disable the normal martor theme which pulls in another bootstrap version | ||
MARTOR_ALTERNATIVE_CSS_FILE_THEME = "martor/css/peachjam.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// deliberately empty to prevent the martor-admin.min.css file from martor from loading since it messes with our styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.ace_heading { | ||
font-weight: bold; | ||
color: darkgreen; | ||
} |
Oops, something went wrong.