You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some additions to the project import configuration page (#185)
* Some additions to the project import configuration page
I pulled down #166 to provide a bit of guidance, but ended up with fixes
to the PR either way. I added a few features on top, to replace plain
text with visual elements and interactive components. These aren't fully
working yet (the example selector namely, see #184).
* Update JS comment to be accurate
<divclass="ui fourteen wide tablet four wide computer column">
64
+
{% block project_add_sidebar %}
65
+
<h2class="ui small header">{% trans "Help topics" %}</h2>
66
+
<divclass="ui bulleted list">
67
+
{% block project_add_sidebar_help_topics %}
68
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/page/intro/import-guide.html" text="Connecting a repository" is_external=True class="item" %}
69
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/en/stable/tutorial/index.html" text="Read the Docs tutorial" is_external=True class="item" %}
70
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/page/examples.html" text="Example projects" is_external=True class="item" %}
Make sure your project has a <code>.readthedocs.yaml</code> at the root of your repository. This file is required by Read the Docs to be able to build your documentation. You can <ahref="https://docs.readthedocs.io/en/stable/config-file/v2.html">read more about this in our documentation</a>.
13
+
A <code>.readthedocs.yaml</code>configuration file is required at the root of your repository in order to build your documentation.
<divclass="ui mini padded inverted scrolling segment">
44
+
<divclass="ui top attached label">
45
+
<code>.readthedocs.yaml</code>
46
+
</div>
47
+
<aclass="ui top right attached icon label" href="#" data-clipboard-target="#project-create-sample-sphinx">
48
+
<iclass="fas fa-copy icon"></i>
49
+
</a>
50
+
<codeclass="highlight">
51
+
<preid="project-create-sample-sphinx">
22
52
# Read the Docs configuration file
23
53
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
24
54
25
55
# Required
26
56
version: 2
27
57
28
-
# Set the OS, Python version and other tools you might need
58
+
# Set the OS, Python version, and other tools you might need
29
59
build:
30
60
os: ubuntu-22.04
31
61
tools:
@@ -50,12 +80,17 @@
50
80
# python:
51
81
# install:
52
82
# - requirements: docs/requirements.txt
53
-
</code>
54
-
</pre>
55
-
</p>
83
+
</pre>
84
+
</code>
85
+
</div>
86
+
87
+
{# Show the base form #}
88
+
{{ block.super }}
56
89
57
-
{{ block.super }}
58
-
{% endblock project_add_content_main %}
90
+
{% endblock project_add_content_form %}
59
91
60
-
{% block project_add_help_topics %}
61
-
{% endblock project_add_help_topics %}
92
+
{% block project_add_sidebar_help_topics %}
93
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/page/config-file/index.html" text="Configuration file tutorial" is_external=True class="item" %}
94
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/page/config-file/v2.html" text="Configuration file reference" is_external=True class="item" %}
95
+
{% include "includes/elements/link.html" with url="https://docs.readthedocs.io/page/guides/setup/git-repo-manual.html" text="Manually configuring a Git repository" is_external=True class="item" %}
0 commit comments