-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New RootPage and FlexPage types to support new homepage (and more) (#…
…1567) * spike a customizable page * Update tests.py * structure for root page and child pages * add aria and promote image * update link and cta structure * remove some validations on page block * allow a root page to live under the home page (for now) * block rearranging * flatten flex page content * config nesting * hero block restructure * make rich text FE ready * hero fixes * add lookup for layout snippet * squash migrations * remove squashed migrations * fussing with page fields * working on rootpage schema * fix docker environments holy cow * return a url for link values * make heroes more flexible * allow svg image uploads to images * add padding option to heroes * remove card cta, we can just use text links * allow internal links in rtf * add some more configs and fix hex validation * Remove max count on hero config * display value for LinkBlocks * add cta block to hero * add cta to cards (not hero) * ctalinkblock to cards * limit 1 list block for cta_block on cards * relabel * squashing migrations * delete squashed migrations * update failing test * refactor page test imports for maintainability * formatting test files for readability * allow blogs to be linked to impact page * update help text on book detail page * general page cache clear * remove background image from page layout * remove background image from layout api rep * update middleware for serving new home page to bots * refactor how layouts are configured (#1570) --------- Co-authored-by: tom <[email protected]>
- Loading branch information
1 parent
410b416
commit cd1178f
Showing
30 changed files
with
2,131 additions
and
489 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
27 changes: 27 additions & 0 deletions
27
books/migrations/0157_alter_book_print_isbn_13_and_more.py
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,27 @@ | ||
# Generated by Django 5.0.7 on 2024-07-22 21:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("books", "0156_book_content_warning"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="book", | ||
name="print_isbn_13", | ||
field=models.CharField( | ||
blank=True, help_text="ISBN 13 for print version (color).", max_length=255, null=True | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="book", | ||
name="print_softcover_isbn_13", | ||
field=models.CharField( | ||
blank=True, help_text="ISBN 13 for print version (black and white).", max_length=255, 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
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
cd /code/ || (echo "application code must be mounted at /code/"; exit 1); | ||
|
||
DJANGO_SETTINGS_MODULE=openstax.settings.docker python3 manage.py migrate | ||
DJANGO_SETTINGS_MODULE=openstax.settings.docker python3 manage.py createsuperuser | ||
DJANGO_SETTINGS_MODULE=openstax.settings.docker python3 manage.py runserver 0.0.0.0:8000 |
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
Oops, something went wrong.