-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Custom domains: don't allow adding a custom domain on subprojects #8953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
4d14403
7901c51
73d1f3d
74c69cd
85ea9a8
60ca4cd
5e1f5fb
403d1e6
5a8b926
7fb3fb1
3a70a80
044bd0e
c0dba16
45f5c88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,22 @@ | |
{% block project_edit_content_header %}{% trans "Domains" %}{% endblock %} | ||
|
||
{% block project_edit_content %} | ||
<p class="help_text"> | ||
{% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/custom_domains.html' %} | ||
Configuring a custom domain allows you to serve your documentation from a domain other than "{{ default_domain }}". <a href="{{ docs_url }}">Learn more</a>. | ||
{% endblocktrans %} | ||
</p> | ||
{% if superproject %} | ||
{% url "projects_detail" superproject.slug as superproject_url %} | ||
<p class="help_text"> | ||
{% blocktrans trimmed with superproject=superproject.name superproject_url=superproject_url domain=project.subdomain %} | ||
This project is a subproject of <a href="{{ superproject_url }}">{{ superproject }}</a>, | ||
its documentation will always be served from the <code>{{ domain }}</code> domain. | ||
<a href="https://docs.readthedocs.io/page/subprojects.html#custom-domain-on-subprojects">Learn more</a>. | ||
{% endblocktrans %} | ||
</p> | ||
{% else %} | ||
<p class="help_text"> | ||
{% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/custom_domains.html' %} | ||
Configuring a custom domain allows you to serve your documentation from a domain other than "{{ default_domain }}". <a href="{{ docs_url }}">Learn more</a>. | ||
{% endblocktrans %} | ||
Comment on lines
+25
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so, not sure if we should show both messages when this is a subproject. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it makes sense to just show one block. We have discussed on another issue that a better UX would be to show the form as disabled, but we can come back to this as well. There are maybe a few patterns to figure out there. |
||
</p> | ||
{% endif %} | ||
|
||
{% if object_list %} | ||
<h3> {% trans "Existing Domains" %} </h3> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't think we have something like a class for a "warning" banner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not, not yet at least!