Skip to content
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

Add project: change copy for "Finish" button #434

Merged
merged 9 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions readthedocsext/theme/templates/projects/import_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
{% load i18n %}
{% load crispy_forms_tags %}

{% block title %}{% trans "Add project" %}{% endblock %}
{% block title %}
{% trans "Add project" %}
{% endblock title %}

{% block content %}
{% block project_add_grid %}
<div class="ui very padded centered stackable grid" {% block project_add_data_bind %}{% endblock %}>
<div class="ui very padded centered stackable grid"
{% block project_add_data_bind %}
{% endblock project_add_data_bind %}>

{% block project_add_header %}
<div class="ui five wide computer four wide large screen computer only column">
Expand Down Expand Up @@ -50,9 +54,12 @@ <h2 class="ui small header">{% trans "Help topics" %}</h2>
{% endblock project_add_sidebar %}

{% block project_add_content %}

<div class="ui sixteen wide tablet eleven wide computer ten wide large screen column">
{% block project_add_content_form %}
<form class="ui form" action="{% url "projects_import_manual" %}" method="post">
<form class="ui form"
action="{% url "projects_import_manual" %}"
method="post">

{% block wizard_form %}
{% if wizard.form.forms %}
Expand All @@ -72,15 +79,17 @@ <h2 class="ui small header">{% trans "Help topics" %}</h2>
{% block wizard_actions %}
<div>
{% if wizard.steps.prev %}
<button class="ui button" name="wizard_goto_step" value="{{ wizard.steps.prev }}">
{% trans "Previous" %}
</button>
<button class="ui button"
name="wizard_goto_step"
value="{{ wizard.steps.prev }}">{% trans "Previous" %}</button>
{% endif %}

{% if wizard.steps.next %}
<input class="ui button primary" type="submit" value="{% trans "Next" %}" />
{% else %}
<input class="ui button primary" type="submit" value="{% trans "Finish" %}" />
<input class="ui button primary"
type="submit"
value="{% trans "This file exists" %}" />
{% endif %}
</div>
{% endblock wizard_actions %}
Expand All @@ -91,4 +100,4 @@ <h2 class="ui small header">{% trans "Help topics" %}</h2>
{% endblock project_add_content %}
</div>
{% endblock project_add_grid %}
{% endblock %}
{% endblock content %}
38 changes: 27 additions & 11 deletions readthedocsext/theme/templates/projects/import_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
{% trans "Add a configuration file to your project" %}
{% endblock project_add_subheader %}

{% block project_add_content_classes %}ui fourteen wide tablet twelve wide computer column{% endblock %}
{% block project_add_content_classes %}
ui fourteen wide tablet twelve wide computer column
{% endblock project_add_content_classes %}

{% block project_add_content_form %}
<div class="ui small info message">
{% blocktrans trimmed %}
Save and commit the following example configuration to your repository root as <code>.readthedocs.yaml</code>.
A <strong><code>.readthedocs.yaml</code> file is required at the root of your repository</strong> to build your project's documentation.
You can pick an example for your documentation tool as a starting point below,
and save and commit it to your repository.
{% endblocktrans %}
</div>

Expand All @@ -27,9 +31,9 @@
<div class="item" data-tab="jekyll">Jekyll</div>
<div class="item" data-tab="others">{% trans "Others" %}</div>
{# The `actionable` class here prevents the select from selecting the text #}
<a class="actionable item" href="https://docs.readthedocs.io/page/config-file/index.html#getting-started-with-a-template" target="_blank">
{% trans "See more examples" %}
</a>
<a class="actionable item"
href="https://docs.readthedocs.io/page/config-file/index.html#getting-started-with-a-template"
target="_blank">{% trans "See more examples" %}</a>
</div>
</div>
</div>
Expand All @@ -39,7 +43,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-sphinx">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-sphinx">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down Expand Up @@ -76,7 +82,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-mkdocs">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-mkdocs">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down Expand Up @@ -113,7 +121,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-docusaurus">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-docusaurus">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down Expand Up @@ -148,7 +158,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-pelican">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-pelican">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down Expand Up @@ -180,7 +192,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-jekyll">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-jekyll">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down Expand Up @@ -213,7 +227,9 @@
<div class="ui top attached label">
<code>.readthedocs.yaml</code>
</div>
<a class="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-others">
<a class="ui top right attached icon label"
href="#"
data-clipboard-target="#project-create-sample-others">
<i class="fas fa-copy icon"></i>
</a>
<code class="highlight">
Expand Down