-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addons: API response for tooltips (#11746)
Initial `addons.tooltips` object with basic data for testing purposes. We will also want to add here: - [x] ext-theme addons configurations for tooltips - [x] model fields for tooltips - [x] disable it by default for now - [x] tests for the new API response Required by readthedocs/addons#422 Closes readthedocs/addons#239
- Loading branch information
Showing
6 changed files
with
140 additions
and
1 deletion.
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
55 changes: 55 additions & 0 deletions
55
readthedocs/projects/migrations/0131_addons_linkpreviews_fields.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,55 @@ | ||
# Generated by Django 4.2.16 on 2024-11-06 09:18 | ||
|
||
from django.db import migrations, models | ||
from django_safemigrate import Safe | ||
|
||
|
||
class Migration(migrations.Migration): | ||
safe = Safe.before_deploy | ||
|
||
dependencies = [ | ||
('projects', '0130_addons_remove_old_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='addonsconfig', | ||
name='linkpreviews_doctool_name', | ||
field=models.CharField(blank=True, choices=[('sphinx', 'Sphinx'), ('other', 'Other')], max_length=128, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='addonsconfig', | ||
name='linkpreviews_doctool_version', | ||
field=models.CharField(blank=True, max_length=128, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='addonsconfig', | ||
name='linkpreviews_enabled', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='addonsconfig', | ||
name='linkpreviews_root_selector', | ||
field=models.CharField(blank=True, max_length=128, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='historicaladdonsconfig', | ||
name='linkpreviews_doctool_name', | ||
field=models.CharField(blank=True, choices=[('sphinx', 'Sphinx'), ('other', 'Other')], max_length=128, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='historicaladdonsconfig', | ||
name='linkpreviews_doctool_version', | ||
field=models.CharField(blank=True, max_length=128, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='historicaladdonsconfig', | ||
name='linkpreviews_enabled', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='historicaladdonsconfig', | ||
name='linkpreviews_root_selector', | ||
field=models.CharField(blank=True, max_length=128, 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
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