-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Project: suggest a simple config file on project import wizard #10356
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5325ef1
Project: suggest a simple config file on project import wizard
humitos 94262ab
Template: update link
humitos 9a819fa
Template: add more style to the wizard config suggestion
humitos 672620e
Template: show the file as code
humitos 4e44e80
Form: swap label/help_text
humitos 9d9226b
Tests: update wizard to add a new step
humitos 9eeeb5f
Remove checkbox from suggested YAML file page
humitos 4090fa0
Suggested YAML file CSS style
humitos e9b78db
Test: re-add `self.data` to test class
humitos 5727471
Use CSS class to style the YAML shown at import step
humitos 9bdcbec
Add required variable in tests
humitos dbb0aa9
Minor style for import config step
humitos c9bd407
Split phrase to avoid scrolling
humitos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
{% extends "projects/import_base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
<h3>{% trans "Project configuration file (<code>.readthedocs.yaml</code>)" %}</h3> | ||
|
||
<p class="info"> | ||
{% blocktrans trimmed %} | ||
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 <a href="https://docs.readthedocs.io/en/stable/config-file/v2.html">read more about this in our documentation</a>. | ||
{% endblocktrans %} | ||
</p> | ||
|
||
<p class="info"> | ||
Here you have an example for a common Sphinx project: | ||
|
||
<pre class="small"> | ||
<code> | ||
# .readthedocs.yaml | ||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optionally, but recommended, | ||
# declare the Python requirements required to build your documentation | ||
benjaoming marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
# python: | ||
# install: | ||
# - requirements: docs/requirements.txt | ||
</code> | ||
</pre> | ||
</p> | ||
|
||
{{ block.super }} | ||
{% endblock %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This was removed because it got tested in other test cases?